From 1eee30d43f15aa58d5f26167f8405a6a3f535870 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 13 Jul 2020 22:30:57 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- libselinux.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libselinux.spec b/libselinux.spec index a22da7f..fa9f532 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -4,7 +4,7 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 3.1 -Release: 1%{?dist} +Release: 2%{?dist} License: Public Domain # https://github.com/SELinuxProject/selinux/wiki/Releases Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/libselinux-3.1.tar.gz @@ -117,12 +117,12 @@ BuildPythonWrapper() { } make clean -make LIBDIR="%{_libdir}" %{?_smp_mflags} swigify -make LIBDIR="%{_libdir}" %{?_smp_mflags} all +%make_build LIBDIR="%{_libdir}" swigify +%make_build LIBDIR="%{_libdir}" all BuildPythonWrapper %{__python3} -make RUBYINC="%{ruby_inc}" SHLIBDIR="%{_libdir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" %{?_smp_mflags} rubywrap +%make_build RUBYINC="%{ruby_inc}" SHLIBDIR="%{_libdir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" rubywrap %install InstallPythonWrapper() { @@ -226,6 +226,10 @@ rm -f %{buildroot}%{_mandir}/man8/togglesebool* %{ruby_vendorarchdir}/selinux.so %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