123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Summary: Audio Sample Rate Converter library
- Summary(ja): 音声サンプリングレート変換ライブラリ
- Name: libsamplerate
- Version: 0.1.7
- Release: 1%{?_dist_release}
- Source0: %{name}-%{version}.tar.gz
- URL: http://www.mega-nerd.com/SRC/index.html
- License: GPLv2
- Group: System Environment/Libraries
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: libsndfile-devel >= 1.0.6
- %description
- Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
- audio. One example of where such a thing would be useful is
- 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. Arbitrary in this case means that the ratio of input and
- output sample rates can be an irrational number. The conversion ratio
- can also vary with time for speeding up and slowing down effects.
- SRC provides a small set of converters to allow quality to be traded
- off against computation cost. The current best converter provides a
- signal-to-noise ratio of 97dB with -3dB passband extending from DC to
- 96% of the theoretical best bandwidth for a given pair of input and
- output sample rates.
- %package devel
- Summary: Audio Sample Rate Converter development files
- Summary(ja): 音声サンプリングレート変換ライブラリの開発用ファイル
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- %description devel
- Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
- audio. One example of where such a thing would be useful is
- 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. Arbitrary in this case means that the ratio of input and
- output sample rates can be an irrational number. The conversion ratio
- can also vary with time for speeding up and slowing down effects.
- SRC provides a small set of converters to allow quality to be traded
- off against computation cost. The current best converter provides a
- signal-to-noise ratio of 97dB with -3dB passband extending from DC to
- 96% of the theoretical best bandwidth for a given pair of input and
- output sample rates.
- %package progs
- Summary: Audio Sample Rate Converter
- Summary(ja): 音楽サンプリングレート変換ツール
- Group: Applications/Multimedia
- Requires: %{name} = %{version}
- %description progs
- Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
- audio. One example of where such a thing would be useful is
- 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. Arbitrary in this case means that the ratio of input and
- output sample rates can be an irrational number. The conversion ratio
- can also vary with time for speeding up and slowing down effects.
- SRC provides a small set of converters to allow quality to be traded
- off against computation cost. The current best converter provides a
- signal-to-noise ratio of 97dB with -3dB passband extending from DC to
- 96% of the theoretical best bandwidth for a given pair of input and
- output sample rates.
- # compat32
- %package -n compat32-%{name}
- Summary: Audio Sample Rate Converter library
- Summary(ja): 音声サンプリングレート変換ライブラリ
- Group: System Environment/Libraries
- %description -n compat32-%{name}
- Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
- audio. One example of where such a thing would be useful is
- 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. Arbitrary in this case means that the ratio of input and
- output sample rates can be an irrational number. The conversion ratio
- can also vary with time for speeding up and slowing down effects.
- SRC provides a small set of converters to allow quality to be traded
- off against computation cost. The current best converter provides a
- signal-to-noise ratio of 97dB with -3dB passband extending from DC to
- 96% of the theoretical best bandwidth for a given pair of input and
- output sample rates.
- %package -n compat32-%{name}-devel
- Summary: Audio Sample Rate Converter development files
- Summary(ja): 音声サンプリングレート変換ライブラリの開発用ファイル
- Group: Development/Libraries
- Requires: compat32-%{name} = %{version}-%{release}
- Requires: %{name}-devel = %{version}-%{release}
- %description -n compat32-%{name}-devel
- Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
- audio. One example of where such a thing would be useful is
- 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. Arbitrary in this case means that the ratio of input and
- output sample rates can be an irrational number. The conversion ratio
- can also vary with time for speeding up and slowing down effects.
- SRC provides a small set of converters to allow quality to be traded
- off against computation cost. The current best converter provides a
- signal-to-noise ratio of 97dB with -3dB passband extending from DC to
- 96% of the theoretical best bandwidth for a given pair of input and
- output sample rates.
- %prep
- %setup -q
- %build
- %configure
- make
- %install
- rm -rf $RPM_BUILD_ROOT
- %makeinstall
- rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %post -n compat32-%{name} -p /sbin/ldconfig
- %postun -n compat32-%{name} -p /sbin/ldconfig
- %files
- %defattr(-,root,root)
- %doc AUTHORS ChangeLog COPYING NEWS README
- %doc doc/*.html doc/SRC.*
- %{_libdir}/*.so.*
- %files devel
- %defattr(-,root,root)
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/samplerate.pc
- %{_includedir}/samplerate.h
- %files progs
- %defattr(-,root,root)
- %{_bindir}/sndfile-resample
- # compat32
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-,root,root)
- %{_libdir}/*.so.*
- %files -n compat32-%{name}-devel
- %defattr(-,root,root)
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/samplerate.pc
- %endif
- %changelog
- * Sat Jan 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.7-1
- - new upstream release
- * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.1.4-3
- - added compat32 package for x86_64 arch support
- * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.4-2
- - spec in utf-8
- - remove static lib
- * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.4-1
- - new upstream release
- - applied new versioning policy
- - removed lib*.la files from devel package
- * Mon May 01 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl2
- - rebuilt with libsndfile for VineSeed Plus
- * Wed Feb 08 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 0.1.2-0vl0.1
- - rebuild for VinePlus/3.0
- - added BuildRequires: libsndfile-devel to progs subpackage
- - fixed %%doc section
- * Wed Sep 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1.2-0vl1
- - new upstream release
- - fixed %doc section
- - fixed spec file encoding
- * Tue Apr 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.0-0vl1
- - initial build for Vine Linux
|