123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Summary: Audio Sample Rate Converter library
- Summary(ja): 音声サンプリングレート変換ライブラリ
- Name: libsamplerate
- Version: 0.1.8
- Release: 1%{?_dist_release}
- Source0: %{name}-%{version}.tar.gz
- URL: http:
- 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.
- %package docs
- Summary: Documentation for %{name}
- Summary(ja): %{name} 用のドキュメント
- Group: Documentation
- Requires: %{name} = %{version}-%{release}
- BuildArch: noarch
- %description docs
- This package contains documentation for %{name}.
- # 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
- make install DESTDIR=$RPM_BUILD_ROOT
- 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
|