Initial package.
This commit is contained in:
parent
26228bd433
commit
d57ec76264
BIN
soxr-0.1.3-Source.tar.xz
Normal file
BIN
soxr-0.1.3-Source.tar.xz
Normal file
Binary file not shown.
63
soxr.spec
Normal file
63
soxr.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Name: soxr
|
||||
Version: 0.1.3
|
||||
Release: 4.9
|
||||
Summary: The SoX Resampler library
|
||||
License: LGPLv2+
|
||||
URL: https://sourceforge.net/p/soxr/wiki/Home/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.xz
|
||||
BuildRequires: cmake gcc
|
||||
|
||||
%description
|
||||
The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
|
||||
conversion -- it may be used, for example, to resample PCM-encoded audio.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}-Source
|
||||
|
||||
%build
|
||||
rm -rf build && mkdir build && pushd build
|
||||
export LDFLAGS="-Wl,--as-needed"
|
||||
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
../
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
%make_install
|
||||
|
||||
# Remove docs and use the rpmbuild macro instead
|
||||
rm -rf %{buildroot}%{_docdir}/*
|
||||
|
||||
|
||||
%check
|
||||
pushd build
|
||||
make test
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc NEWS README
|
||||
%license LICENCE
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%doc examples
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/soxr-lsr.pc
|
||||
%{_libdir}/pkgconfig/soxr.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 07 2021 weidong <weidong@uniontech.com> - 0.1.3-4
|
||||
- Initial package.
|
||||
Loading…
x
Reference in New Issue
Block a user