libsamplerate/libsamplerate.spec

68 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:57:56 -04:00
Name: libsamplerate
Version: 0.1.9
2019-12-25 15:54:44 +08:00
Release: 4
2019-09-30 10:57:56 -04:00
Summary: Sample Rate Converter for audio
License: BSD
URL: http://www.mega-nerd.com/SRC/
Source0: http://www.mega-nerd.com/SRC/%{name}-%{version}.tar.gz
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
cp -a doc _doc
rm _doc/Makefile*
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
2019-12-25 15:54:44 +08:00
%doc AUTHORS COPYING README _doc/*
2019-09-30 10:57:56 -04:00
%{_bindir}/sndfile-resample
%{_libdir}/%{name}.so.*
%exclude %{_libdir}/%{name}.a
%exclude %{_libdir}/%{name}.la
%files devel
%{_includedir}/samplerate.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/samplerate.pc
%changelog
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