diff --git a/soxr.spec b/soxr.spec index 9200d63..0fe8cf5 100644 --- a/soxr.spec +++ b/soxr.spec @@ -7,7 +7,7 @@ License: LGPLv2+ URL: https://sourceforge.net/p/soxr/wiki/Home/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.xz -BuildRequires: cmake +BuildRequires: cmake gcc %description The SoX Resampler library `libsoxr' performs one-dimensional sample-rate @@ -24,7 +24,7 @@ developing applications that use %{name}. %prep -%setup -q -n %{name}-%{version}-Source +%autosetup -n %{name}-%{version}-Source %build @@ -32,7 +32,7 @@ rm -rf build && mkdir build && pushd build export LDFLAGS="-Wl,--as-needed" %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ ../ -make %{?_smp_mflags} +%make_build %install @@ -47,14 +47,12 @@ rm -rf %{buildroot}%{_docdir}/* pushd build make test - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files -%doc LICENCE NEWS README +%doc NEWS README +%license LICENSE %{_libdir}/*.so.* %files devel