From d653350d2a43f5b4033405f26bbe84d447ebeb8a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 13 Jul 2020 18:48:24 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- checkpolicy.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/checkpolicy.spec b/checkpolicy.spec index 8ff7960..d59a7a8 100644 --- a/checkpolicy.spec +++ b/checkpolicy.spec @@ -4,7 +4,7 @@ Summary: SELinux policy compiler Name: checkpolicy Version: 3.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/checkpolicy-3.1.tar.gz # $ git clone https://github.com/fedora-selinux/selinux.git @@ -37,14 +37,13 @@ Only required for building policies. %set_build_flags -make clean -make LIBDIR="%{_libdir}" +%make_build LIBDIR="%{_libdir}" cd test -make LIBDIR="%{_libdir}" +%make_build LIBDIR="%{_libdir}" %install mkdir -p ${RPM_BUILD_ROOT}%{_bindir} -make LIBDIR="%{_libdir}" DESTDIR="${RPM_BUILD_ROOT}" install +%make_install LIBDIR="%{_libdir}" install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol @@ -61,6 +60,10 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol %{_bindir}/sedispol %changelog +* Mon Jul 13 2020 Tom Stellard - 3.1-2 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + * Fri Jul 10 2020 Petr Lautrbach - 3.1-1 - SELinux userspace 3.1 release