From d0ac073f41d02d8b16fcde1395d19d16f72d3668 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Mon, 19 Feb 2018 09:40:05 -0600 Subject: [PATCH] Update build requirements for gcc/gcc-c++ per https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires --- soxr.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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