From 208911cf8b06367986986898571893a2cc289a36 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Jan 20 2021 23:49:43 +0000 Subject: Spec file cleanup --- diff --git a/libcap-ng.spec b/libcap-ng.spec index 67cded9..1bb74da 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -1,13 +1,14 @@ -Summary: An alternate posix capabilities library +Summary: Alternate posix capabilities library Name: libcap-ng Version: 0.8.2 Release: 1%{?dist} License: LGPLv2+ -URL: http://people.redhat.com/sgrubb/libcap-ng -Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz +URL: https://people.redhat.com/sgrubb/libcap-ng/ +Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz # This patch can be removed when 1899540 is resolved Patch1: libcap-ng-0.8.2-apply-disable.patch BuildRequires: gcc +BuildRequires: make BuildRequires: kernel-headers >= 2.6.11 BuildRequires: libattr-devel @@ -18,7 +19,7 @@ Libcap-ng is a library that makes using posix capabilities easier Summary: Header files for libcap-ng library License: LGPLv2+ Requires: kernel-headers >= 2.6.11 -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel @@ -30,7 +31,7 @@ Summary: Python3 bindings for libcap-ng library License: LGPLv2+ BuildRequires: python3-devel swig BuildRequires: make -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description python3 The libcap-ng-python3 package contains the bindings so that libcap-ng @@ -39,7 +40,7 @@ and can be used by python3 applications. %package utils Summary: Utilities for analyzing and setting file capabilities License: GPLv2+ -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description utils The libcap-ng-utils package contains applications to analyze the @@ -52,18 +53,18 @@ lets you set the file system based capabilities. %build %configure --libdir=%{_libdir} --with-python=no --with-python3 -make CFLAGS="%{optflags}" %{?_smp_mflags} +%make_build CFLAGS="%{optflags}" %install -make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install +%make_install # Remove a couple things so they don't get picked up -rm -f $RPM_BUILD_ROOT/%{_libdir}/libcap-ng.la -rm -f $RPM_BUILD_ROOT/%{_libdir}/libcap-ng.a -rm -f $RPM_BUILD_ROOT/%{_libdir}/libdrop_ambient.la -rm -f $RPM_BUILD_ROOT/%{_libdir}/libdrop_ambient.a -rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a -rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.a +rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.la +rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.a +rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.a +rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.la %check make check @@ -71,10 +72,9 @@ make check %ldconfig_scriptlets %files -%{!?_licensedir:%global license %%doc} %license COPYING.LIB -/%{_libdir}/libcap-ng.so.* -/%{_libdir}/libdrop_ambient.so.* +%{_libdir}/libcap-ng.so.* +%{_libdir}/libdrop_ambient.so.* %attr(0644,root,root) %{_mandir}/man7/* %files devel @@ -90,7 +90,6 @@ make check %{python3_sitearch}/capng.py* %files utils -%{!?_licensedir:%global license %%doc} %license COPYING %attr(0755,root,root) %{_bindir}/* %attr(0644,root,root) %{_mandir}/man8/*