From 5bc9de428891a605e08c35ea7623b2b990cef14c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 14 Jul 2020 16:31:47 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- libfreehand.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libfreehand.spec b/libfreehand.spec index 03f4f42..efca17c 100644 --- a/libfreehand.spec +++ b/libfreehand.spec @@ -2,7 +2,7 @@ Name: libfreehand Version: 0.1.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A library for import of Macromedia/Adobe FreeHand documents License: MPLv2.0 @@ -61,11 +61,11 @@ sed -i \ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ libtool -make %{?_smp_mflags} +%make_build %install -make install DESTDIR=%{buildroot} +%make_install rm -f %{buildroot}/%{_libdir}/*.la # we install API docs directly from build rm -rf %{buildroot}/%{_docdir}/%{name} @@ -82,7 +82,7 @@ install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1 %check export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} -make %{?_smp_mflags} check +%make_build check %files %doc AUTHORS @@ -108,6 +108,10 @@ make %{?_smp_mflags} check %{_mandir}/man1/fh2text.1* %changelog +* Tue Jul 14 2020 Tom Stellard - 0.1.2-7 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + * Wed Jan 29 2020 Fedora Release Engineering - 0.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild