fix build on EPEL 7
This commit is contained in:
parent
4735aa3cdc
commit
ca57ecd66f
@ -1,6 +1,9 @@
|
||||
# versioned documentation for old releases
|
||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
|
||||
Name: mpdecimal
|
||||
Version: 2.4.2
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Library for general decimal arithmetic
|
||||
License: BSD
|
||||
|
||||
@ -52,7 +55,15 @@ make check
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
rm -f %{buildroot}%{_pkgdocdir}/LICENSE.txt
|
||||
|
||||
# license will go into dedicated directory
|
||||
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE.txt
|
||||
|
||||
# relocate documentation if versioned documentation is used
|
||||
if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}" ]; then
|
||||
install -d -m 0755 %{buildroot}%{_pkgdocdir}
|
||||
mv -v %{buildroot}%{_docdir}/%{name}/* %{buildroot}%{_pkgdocdir}/
|
||||
fi
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
@ -71,6 +82,9 @@ rm -f %{buildroot}%{_pkgdocdir}/LICENSE.txt
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Tue Aug 30 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-5
|
||||
- fix build on EPEL 7
|
||||
|
||||
* Tue Aug 30 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 2.4.2-4
|
||||
- doc: use versioned Provides for bundled libraries
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user