From 952e2b11a07ff337f151f4cede55426ee909c331 Mon Sep 17 00:00:00 2001 From: Jakub Martisko Date: Tue, 28 Jul 2020 11:28:32 +0200 Subject: [PATCH] Use make macros --- gmp.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gmp.spec b/gmp.spec index 2a2556c..0dca221 100644 --- a/gmp.spec +++ b/gmp.spec @@ -6,7 +6,7 @@ Summary: A GNU arbitrary precision library Name: gmp Version: 6.2.0 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 URL: http://gmplib.org/ Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2 @@ -94,7 +94,7 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|-lstdc++ -lm|-lstdc++|' \ -i libtool export LD_LIBRARY_PATH=`pwd`/.libs -make %{?_smp_mflags} +%make_build %if %{with fips} %define __spec_install_post \ @@ -110,7 +110,7 @@ make %{?_smp_mflags} %install export LD_LIBRARY_PATH=`pwd`/.libs -make install DESTDIR=$RPM_BUILD_ROOT +%make_install install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir} rm -f $RPM_BUILD_ROOT%{_libdir}/lib{gmp,mp,gmpxx}.la rm -f $RPM_BUILD_ROOT%{_infodir}/dir @@ -144,7 +144,7 @@ install -m644 %{SOURCE3} %{buildroot}/%{_includedir}/gmp-mparam.h %check %ifnarch ppc export LD_LIBRARY_PATH=`pwd`/.libs -make %{?_smp_mflags} check +%make_build check %endif %ldconfig_scriptlets @@ -176,6 +176,9 @@ make %{?_smp_mflags} check %{_libdir}/libgmpxx.a %changelog +* Tue Jul 28 2020 Jakub Martisko - 1:6.2.0-3 +- Use make macros + * Mon Jul 27 2020 Fedora Release Engineering - 1:6.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild