From ca57ecd66fbcfe8fb9d3b650a075fc2f96ee2ac6 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 30 Aug 2016 17:18:34 +0200 Subject: [PATCH] fix build on EPEL 7 --- mpdecimal.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mpdecimal.spec b/mpdecimal.spec index d94ce6f..de6e9f0 100644 --- a/mpdecimal.spec +++ b/mpdecimal.spec @@ -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 - 2.4.2-5 +- fix build on EPEL 7 + * Tue Aug 30 2016 Jan Vcelak - 2.4.2-4 - doc: use versioned Provides for bundled libraries