soxr/soxr.spec

79 lines
1.9 KiB
RPMSpec

Name: soxr
Version: 0.1.3
Release: 1mamba
Summary: SoX Resampler Library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/p/soxr/wiki/Home/
Source: https://sourceforge.net/projects/soxr/files/soxr-%{version}-Source.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgomp-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
SoX Resampler Library.
%package -n lib%{name}
Group: System/Libraries
Summary: SoX Resampler Library
%description -n lib%{name}
SoX Resampler Library.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
#% debug_package
%prep
%setup -q -n %{name}-%{version}-Source
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libsoxr-lsr.so.*
%{_libdir}/libsoxr.so.*
%doc AUTHORS LICENCE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/soxr-lsr.h
%{_includedir}/soxr.h
%{_libdir}/libsoxr-lsr.so
%{_libdir}/libsoxr.so
%{_libdir}/pkgconfig/soxr-lsr.pc
%{_libdir}/pkgconfig/soxr.pc
%dir %{_datadir}/doc/libsoxr
%{_datadir}/doc/libsoxr/*
%doc NEWS README TODO
%changelog
* Sat Nov 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.3-1mamba
- package created using the webbuild interface