.spec cleanup
BR: gcc use %ldconfig_scriptlets %license %make_build %make_install drop undesirable cflags
This commit is contained in:
parent
7dc053e6dc
commit
0ab967bcfa
@ -2,13 +2,15 @@
|
|||||||
Summary: Musepack audio decoding library
|
Summary: Musepack audio decoding library
|
||||||
Name: libmpcdec
|
Name: libmpcdec
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
|
||||||
URL: http://www.musepack.net/
|
URL: http://www.musepack.net/
|
||||||
Source0: http://files.musepack.net/source/libmpcdec-%{version}.tar.bz2
|
Source0: http://files.musepack.net/source/libmpcdec-%{version}.tar.bz2
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: sed
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Musepack is an audio compression format with a strong emphasis on high quality.
|
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
|
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
|
%package devel
|
||||||
Summary: Development files for the Musepack audio decoding library
|
Summary: Development files for the Musepack audio decoding library
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
%description devel
|
%description devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -29,38 +30,42 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
#hack out hard-coded undesirable compiler flags
|
||||||
|
sed -i.cflags -e 's|-O3 -fomit-frame-pointer||g' configure
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
#Unpackaged files
|
#Unpackaged files
|
||||||
rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
||||||
|
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc AUTHORS ChangeLog README
|
||||||
%doc AUTHORS ChangeLog COPYING README
|
%license COPYING
|
||||||
%{_libdir}/libmpcdec.so.5*
|
%{_libdir}/libmpcdec.so.5*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_includedir}/mpcdec/
|
%{_includedir}/mpcdec/
|
||||||
%{_libdir}/libmpcdec.so
|
%{_libdir}/libmpcdec.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-20
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user