.spec cleanup

BR: gcc
use %ldconfig_scriptlets %license %make_build %make_install
drop undesirable cflags
epel9
Rex Dieter 7 years ago
parent 7dc053e6dc
commit 0ab967bcfa

@ -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 <rdieter@fedoraproject.org> - 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 <releng@fedoraproject.org> - 1.2.6-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save