%define name libvorbis %define version 1.3.1 %define theirversion %version %define lib_name_orig libvorbis %define lib_major 0 %define libname %mklibname vorbis %{lib_major} %define libnamedev %mklibname -d vorbis %define lib_enc_major 2 %define lib_enc_name %mklibname vorbisenc %{lib_enc_major} %define lib_file_major 3 %define lib_file_name %mklibname vorbisfile %{lib_file_major} %define oggver 1.1.4 Name: %{name} Summary: The Vorbis General Audio Compression Codec Version: %{version} Release: %mkrel 1 Group: System/Libraries License: BSD URL: http://www.xiph.org/ Source: http://downloads.xiph.org/releases/vorbis/%{name}-%{theirversion}.tar.bz2 BuildRequires: libogg-devel >= %oggver BuildRequires: glibc-static-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for audio and music at fixed and variable bitrates from 16 to 128 kbps/channel. Find some free Ogg Vorbis music here: http://www.vorbis.com/music.html %package -n %{libname} Summary: Main library for %{name} Group: System/Libraries Obsoletes: oggvorbis < %{version}-%{release} Provides: oggvorbis = %{version}-%{release} Provides: %{name} = %{version}-%{release} %description -n %{libname} This package contains the library needed to run programs dynamically linked with %{name}. %package -n %{libnamedev} Summary: Headers for developing programs that will use %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Requires: %{lib_enc_name} = %{version}-%{release} Requires: %{lib_file_name} = %{version}-%{release} Requires: libogg-devel >= %{oggver} Provides: %{lib_name_orig}-devel = %{version}-%{release} Provides: %{name}%{lib_major}-devel = %{version}-%{release} Obsoletes: oggvorbis-devel < %{version}-%{release} Provides: oggvorbis-devel = %{version}-%{release} Obsoletes: %mklibname -d vorbis 0 %description -n %{libnamedev} This package contains the headers that programmers will need to develop applications which will use %{name}. %package -n %{lib_enc_name} Summary: Encoder specialized library for %{name} Group: System/Libraries %description -n %{lib_enc_name} This package contains the library needed for some programs using the encoder capability of %{name}. %package -n %{lib_file_name} Summary: File operations specialized library for %{name} Group: System/Libraries Requires: %{libname} = %{version}-%{release} %description -n %{lib_file_name} This package contains the library needed for some programs using the file operations capability of %{name}. %prep %setup -q -n %{name}-%{theirversion} %build sed -i "s/-O20/$CFLAGS/" configure %configure2_5x %make %install rm -rf %{buildroot} installed-docs %makeinstall_std mv %{buildroot}/%{_datadir}/doc installed-docs %clean rm -rf %{buildroot} %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %post -n %{lib_enc_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %post -n %{lib_file_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_enc_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_file_name} -p /sbin/ldconfig %endif %files -n %{libname} %defattr(-,root,root) %doc AUTHORS README %{_libdir}/%{lib_name_orig}.so.%{lib_major}* %files -n %{lib_enc_name} %defattr(-,root,root) %{_libdir}/%{lib_name_orig}enc.so.%{lib_enc_major}* %files -n %{lib_file_name} %defattr(-,root,root) %{_libdir}/%{lib_name_orig}file.so.%{lib_file_major}* %files -n %{libnamedev} %defattr(-,root,root) %doc installed-docs %{_includedir}/vorbis %{_libdir}/*.so %{_libdir}/*.*a %{_datadir}/aclocal/vorbis.m4 %{_libdir}/pkgconfig/* %changelog * Sat Mar 27 2010 Funda Wang <fwang@mandriva.org> 1.3.1-1mdv2010.1 + Revision: 528056 - new version 1.3.1 * Tue Mar 16 2010 Oden Eriksson <oeriksson@mandriva.com> 1.2.3-2mdv2010.1 + Revision: 520937 - rebuilt for 2010.1 * Sun Jul 12 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 1.2.3-1mdv2010.0 + Revision: 395130 - spec file clean - drop all patches, seems to be useless - use sed to pass in mdv's optflags - use macros everywhere - update to new version 1.2.3 * Tue Apr 07 2009 Funda Wang <fwang@mandriva.org> 1.2.0-5mdv2009.1 + Revision: 364672 - use automake 1.10 - rediff optflags patch + Thierry Vignaud <tv@mandriva.org> - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Thu May 15 2008 Götz Waschk <waschk@mandriva.org> 1.2.0-4mdv2009.0 + Revision: 207510 - fix CVE-2008-1420, CVE-2008-1419, CVE-2008-1423 with patches from Red Hat * Tue Mar 04 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.0-3mdv2008.1 + Revision: 179012 - rebuild + Thierry Vignaud <tv@mandriva.org> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Aug 09 2007 Götz Waschk <waschk@mandriva.org> 1.2.0-1mdv2008.0 + Revision: 60739 - new version - new devel name * Sun Jan 14 2007 Götz Waschk <waschk@mandriva.org> 1.1.2-1mdv2007.0 + Revision: 108942 - Import libvorbis * Sun Jan 14 2007 Götz Waschk <waschk@mandriva.org> 1.1.2-1mdv2007.1 - unpack patches * Wed Nov 30 2005 Götz Waschk <waschk@mandriva.org> 1.1.2-1mdk - New release 1.1.2 * Mon Jul 11 2005 Götz Waschk <waschk@mandriva.org> 1.1.1-1mdk - spec cleanup - New release 1.1.1 * Tue Nov 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.1.0-1mdk - fix ogg dependancy - disable patch 3, needs a review - fix source URL - New release 1.1.0 * Thu Jun 10 2004 Christiaan Welvaart <cjw@daneel.dyndns.rg> 1.0.1-5mdk - fix buildrequires