From 0ab967bcfaec4b2a50486d67e22bf163cb9b1af9 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 7 Mar 2018 10:34:38 -0600 Subject: [PATCH] .spec cleanup BR: gcc use %ldconfig_scriptlets %license %make_build %make_install drop undesirable cflags --- libmpcdec.spec | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/libmpcdec.spec b/libmpcdec.spec index 8b7f5b2..c3d060c 100644 --- a/libmpcdec.spec +++ b/libmpcdec.spec @@ -2,13 +2,15 @@ Summary: Musepack audio decoding library Name: libmpcdec Version: 1.2.6 -Release: 20%{?dist} +Release: 21%{?dist} License: BSD -Group: System Environment/Libraries URL: http://www.musepack.net/ Source0: http://files.musepack.net/source/libmpcdec-%{version}.tar.bz2 +BuildRequires: gcc +BuildRequires: sed + %description Musepack is an audio compression format with a strong emphasis on high quality. It's not lossless, but it is designed for transparency, so that you won't be @@ -20,7 +22,6 @@ heavily optimized and patentless code. %package devel Summary: Development files for the Musepack audio decoding library -Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. @@ -29,38 +30,42 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %prep %setup -q +#hack out hard-coded undesirable compiler flags +sed -i.cflags -e 's|-O3 -fomit-frame-pointer||g' configure + %build %configure --disable-static -make %{?_smp_mflags} +%make_build %install -rm -rf $RPM_BUILD_ROOT - -make install DESTDIR=$RPM_BUILD_ROOT +%make_install #Unpackaged files rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING README +%doc AUTHORS ChangeLog README +%license COPYING %{_libdir}/libmpcdec.so.5* %files devel -%defattr(-,root,root,-) %{_includedir}/mpcdec/ %{_libdir}/libmpcdec.so %changelog +* Wed Mar 07 2018 Rex Dieter - 1.2.6-21 +- .spec cleanup +- BR: gcc +- use %%ldconfig_scriptlets %%license %%make_build %%make_install +- drop undesirable cflags + * Wed Feb 07 2018 Fedora Release Engineering - 1.2.6-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild