diff --git a/baselibs.conf b/baselibs.conf index 49e6482..23e656b 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libsamplerate +libsamplerate0 diff --git a/libsamplerate.changes b/libsamplerate.changes index d2b160b..f7bb592 100644 --- a/libsamplerate.changes +++ b/libsamplerate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 6 11:17:23 UTC 2012 - saschpe@suse.de + +- Adhere to shared library packaging policy + ------------------------------------------------------------------- Sun Mar 4 23:14:45 UTC 2012 - reddwarf@opensuse.org diff --git a/libsamplerate.spec b/libsamplerate.spec index 06b4823..e49c6d8 100644 --- a/libsamplerate.spec +++ b/libsamplerate.spec @@ -42,11 +42,26 @@ downsampling by a factor of 12 to upsampling by the same factor. The conversion ratio can also vary with time for speeding up and slowing down effects. +%package -n libsamplerate0 +Summary: A Sample Rate Converter Library +Group: System/Libraries + +%description -n libsamplerate0 +Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for +audio. One example of where such a thing would be useful is in +converting audio from the CD sample rate of 44.1kHz to the 48kHz sample +rate used by DAT players. + +SRC is capable of arbitrary and time varying conversions; from +downsampling by a factor of 12 to upsampling by the same factor. The +conversion ratio can also vary with time for speeding up and slowing +down effects. + %package devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: glibc-devel -Requires: libsamplerate = %{version} +Requires: libsamplerate0 = %{version} %description devel This package contains all necessary include files and libraries needed @@ -78,24 +93,24 @@ make install DESTDIR=%{?buildroot} \ # remove unneeded files rm -f %{buildroot}%{_libdir}/*.la -%post -p /sbin/ldconfig +%post -n libsamplerate0 -p /sbin/ldconfig +%postun -n libsamplerate0 -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%files +%files -n libsamplerate0 %defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog -%{_libdir}/lib*.so.* +%doc AUTHORS COPYING +%{_libdir}/libsamplerate.so.0* %files devel %defattr(-,root,root) +%doc ChangeLog %{_defaultdocdir}/libsamplerate-devel -%{_libdir}/lib*.so -%{_includedir}/* -%{_libdir}/pkgconfig/*.pc +%{_libdir}/libsamplerate.so +%{_includedir}/samplerate.h +%{_libdir}/pkgconfig/samplerate.pc %files progs %defattr(-,root,root) -%{_bindir}/* +%{_bindir}/sndfile-resample %changelog