# # spec file for package liboggz # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _SO_nr 2 %define noarch_sub_pkg 0 %if %suse_version > 1110 %define noarch_sub_pkg 1 %endif Name: liboggz Version: 1.1.1 Release: 15.34 Summary: Shared libraries for oggz License: BSD-3-Clause Group: System/Libraries Url: http://xiph.org/oggz/ Source0: http://downloads.xiph.org/releases/liboggz/%name-%{version}.tar.gz Source1: baselibs.conf # PATCH-FIX-UPSTREAM liboggz-1.1.1-docdir.patch https://trac.xiph.org/ticket/1758 reddwarf@opensuse.org -- This patch makes configure honor --docdir Patch0: liboggz-1.1.1-docdir.patch BuildRequires: doxygen BuildRequires: libogg-devel BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build %description liboggz is a library that provides simple parsing and seeking of files and streams based on the Ogg file format. liboggz requires libogg to work. liboggz knows about Ogg speex, Ogg vorbis, Ogg theora, and the Ogg based Annodex formats, thus allows parsing (though not decoding) of these files. %package -n liboggz%{_SO_nr} Summary: Shared Libraries For Oggz Group: System/Libraries %description -n liboggz%{_SO_nr} liboggz is a library that provides simple parsing and seeking of files and streams based on the Ogg file format. liboggz requires libogg to work. liboggz knows about Ogg speex, Ogg vorbis, Ogg theora, and the Ogg based Annodex formats, thus allows parsing (though not decoding) of these files. %package -n oggz-tools Summary: A library that provides parsing and seeking of Ogg-files Group: Productivity/Multimedia/Sound/Utilities %description -n oggz-tools liboggz knows about Ogg speex, Ogg vorbis, Ogg theora, and the Ogg based Annodex formats, thus allows parsing (though not decoding) of these files. For getting decoding and encoding functionality you will require in addition libspeex, libvorbis, libtheora, and libannodex respectively. %package devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: %{name}%{_SO_nr} = %{version} Requires: libogg-devel %description devel This package contains all necessary include files and libraries needed to develop applications that require these. %package doc Summary: Documentation for Oggz Group: Documentation/HTML Requires: %{name}%{_SO_nr} = %{version} %if %{noarch_sub_pkg} BuildArch: noarch %endif %description doc This package contains HTML documentation needed for development using liboggz %prep %setup -q %patch0 %build %configure --disable-static --docdir=%{_docdir}/%{name} %__make %{?_smp_mflags} %install %makeinstall %__rm %{buildroot}%{_libdir}/lib*.la rm -rf %{buildroot}%{_docdir}/%{name}/latex %check %__make check %post -n liboggz%{_SO_nr} -p /sbin/ldconfig %postun -n liboggz%{_SO_nr} -p /sbin/ldconfig %files -n liboggz%{_SO_nr} %defattr(0644,root,root,0755) %{_libdir}/%{name}.so.* %files -n oggz-tools %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README %doc %{_mandir}/man1/oggz* %{_bindir}/oggz* %files devel %defattr(-,root,root) %{_libdir}/%{name}.so %{_includedir}/oggz/ %{_libdir}/pkgconfig/oggz.pc %files doc %defattr(-,root,root) %doc %{_docdir}/%{name} %changelog * Thu Jan 8 2015 olaf@aepfle.de - Avoid noarch sub package in SLE_11 * Sun Feb 23 2014 andreas.stieger@gmx.de - fix build - remove source service - add source URL * Tue May 17 2011 coolo@opensuse.org - fix build (do not patch configure.ac) * Sun May 1 2011 toddrme2178@gmail.com - Added 32bit compatibility libraries - Removed test for obsolete openSUSE versions * Sat Jan 15 2011 coolo@novell.com - fix requires of doc subpackage * Mon Dec 6 2010 reddwarf@opensuse.org - run spec-cleaner - updated to 1.1.1 * This is a maintenance release of the current 1.1.x series, containing fixes for Mozilla bugs #498380, #496063, #487519, #559338 and Debian bug #557537. Additionally, vorbiscomment parsing was modified to tolerate comments which lack a value, ie. of form "KEY=" and "KEY". - fixed license tag - added liboggz-1.1.1-docdir.patch - removed speex dependency * Fri Nov 26 2010 davejplater@gmail.com - Clean up spec file * Fri Nov 6 2009 mseben@novell.com - reworked package from packman - added doc and oggz-tools subpackage and switched to liboggz2 spec name - updated to 1.1.0 * This release introduces a new API structure for reporting the byte offsets of the start and end pages for each packet. * Added : add oggz_packet definition, and implement reader to return oggz_packet in OggzReadPacket callback. * Updated shared version info to 8.0.6 * Improved accuracy of byte position tracking during reading, as reported by oggz_tell() - version 1.0.1 * This release corrects timestamp calculation for Theora files with duplicate frames, which are produced by the recently-released libtheora-1.1 encoder. * Updated shared version info to 7:1:6 * Mozilla #516847 - calc gp for duplicate frames Theora encodes duplicate frames as zero-length packets, so increment the calculated granulepos correctly for these. * Escape minus signs in man pages * Fix typo in oggz-dump man page - Version 1.0.0 * This is a stable maintenance release, including build fixes and updates for embedded platforms (ARM, SH4) and updated Visual Studio project files for Microsoft Windows. * This release also includes a new "oggz codecs" command, which simply lists the codecs present in one or more files. The default comma-separated output is designed for use in an HTML5