From 9caf12bdec8d56c3b7d5a8ee9c25674280ab95ea Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Jul 13 2020 21:12:02 +0000 Subject: Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- diff --git a/libmnl.spec b/libmnl.spec index 0735048..49f0fb2 100644 --- a/libmnl.spec +++ b/libmnl.spec @@ -1,6 +1,6 @@ Name: libmnl Version: 1.0.4 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A minimalistic Netlink library License: LGPLv2+ @@ -39,11 +39,11 @@ The %{name}-static package contains static libraries for devleoping applications %build %configure --enable-static -make CFLAGS="%{optflags}" %{?_smp_mflags} +%make_build CFLAGS="%{optflags}" %install -make install DESTDIR=$RPM_BUILD_ROOT +%make_install find $RPM_BUILD_ROOT -name '*.la' -delete find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -delete find examples -type d -name '.deps' -prune -exec rm -rf {} ';' @@ -68,6 +68,10 @@ mv examples examples-%{_arch} %{_libdir}/*.a %changelog +* Mon Jul 13 2020 Tom Stellard - 1.0.4-12 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + * Wed Jan 29 2020 Fedora Release Engineering - 1.0.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild