From 025ee05fb3fb24d394692e28939d0728795120a0 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Thu, 25 Aug 2022 20:45:28 -0400 Subject: [PATCH] use 'new' %make_build and %make_install macros --- libreswan.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libreswan.spec b/libreswan.spec index cc24917..221b602 100644 --- a/libreswan.spec +++ b/libreswan.spec @@ -108,7 +108,7 @@ sed -i "s/SUBDIRS += ipcheck/#SUBDIRS += ipchec/" testing/programs/Makefile %autopatch -p1 %build -make %{?_smp_mflags} \ +%make_build \ %if 0%{with_development} OPTIMIZE_CFLAGS="%{?_hardened_cflags}" \ %else @@ -125,10 +125,8 @@ FS=$(pwd) %install -make \ - DESTDIR=%{buildroot} \ +%make_install \ %{libreswan_config} \ - install FS=$(pwd) rm -rf %{buildroot}/usr/share/doc/libreswan rm -rf %{buildroot}%{_libexecdir}/ipsec/*check