2019-09-30 10:57:56 -04:00
|
|
|
Name: libsamplerate
|
2023-01-28 14:54:48 +08:00
|
|
|
Version: 0.2.2
|
2024-08-09 08:01:37 +00:00
|
|
|
Release: 2
|
2019-09-30 10:57:56 -04:00
|
|
|
Summary: Sample Rate Converter for audio
|
2024-08-09 08:01:37 +00:00
|
|
|
License: BSD-2-Clause
|
2023-01-28 14:54:48 +08:00
|
|
|
URL: https://github.com/libsndfile/libsamplerate
|
|
|
|
|
Source0: https://github.com/libsndfile/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2019-09-30 10:57:56 -04:00
|
|
|
BuildRequires: alsa-lib-devel gcc pkgconfig
|
|
|
|
|
BuildRequires: fftw-devel >= 0.15.0 libsndfile-devel >= 1.0.6
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
|
|
|
|
|
audio. 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: The devel for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}, pkgconfig
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Include Files and Libraries mandatory for Development
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2019-12-25 15:54:44 +08:00
|
|
|
%configure --disable-dependency-tracking --disable-fftw
|
2019-09-30 10:57:56 -04:00
|
|
|
%{?disable_rpath}
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
2019-12-25 15:54:44 +08:00
|
|
|
%make_install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/libsamplerate0-dev _doc
|
2023-01-28 14:54:48 +08:00
|
|
|
cp -a docs _doc
|
|
|
|
|
rm _doc/CMakeLists.txt
|
2019-09-30 10:57:56 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/src/.libs
|
|
|
|
|
make check
|
|
|
|
|
unset LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
2023-01-28 14:54:48 +08:00
|
|
|
%doc AUTHORS COPYING README.md _doc/*
|
2019-09-30 10:57:56 -04:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
%exclude %{_libdir}/%{name}.la
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/samplerate.h
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/samplerate.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-08-09 08:01:37 +00:00
|
|
|
* Fri Aug 9 2024 Weifeng Su <suweifeng1@huawei.com> - 0.2.2-2
|
|
|
|
|
- Correct the License Label
|
|
|
|
|
|
2023-01-28 14:54:48 +08:00
|
|
|
* Sat Jan 28 2023 Qingqing Li <liqingqing3@huawei.com> - 0.2.2-1
|
|
|
|
|
- upgrade to 0.2.2
|
|
|
|
|
|
2019-12-25 15:54:44 +08:00
|
|
|
* Mon Dec 23 2019 wangshuo <wangshuo47@huawei.com> - 0.1.9-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: modify make install.
|
|
|
|
|
|
2019-09-30 10:57:56 -04:00
|
|
|
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.9-3
|
|
|
|
|
- Package init
|