Update spec file

This commit is contained in:
Steve Grubb 2018-02-12 13:27:12 -05:00
parent 2433a6dacc
commit e8c3c8684c

View File

@ -5,10 +5,8 @@ Name: libcap-ng
Version: 0.7.9
Release: 1%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://people.redhat.com/sgrubb/libcap-ng
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: kernel-headers >= 2.6.11
BuildRequires: libattr-devel
@ -18,7 +16,6 @@ Libcap-ng is a library that makes using posix capabilities easier
%package devel
Summary: Header files for libcap-ng library
License: LGPLv2+
Group: Development/Libraries
Requires: kernel-headers >= 2.6.11
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
@ -31,7 +28,6 @@ applications that need to use the libcap-ng library.
%{?python_provide:%python_provide python2-libcap-ng}
Summary: Python2 bindings for libcap-ng library
License: LGPLv2+
Group: Development/Libraries
BuildRequires: python2-devel swig
Requires: %{name} = %{version}-%{release}
# Remove before F30
@ -46,7 +42,6 @@ and can be used by python2 applications.
%package python3
Summary: Python3 bindings for libcap-ng library
License: LGPLv2+
Group: Development/Libraries
BuildRequires: python3-devel swig
Requires: %{name} = %{version}-%{release}
@ -57,7 +52,6 @@ and can be used by python3 applications.
%package utils
Summary: Utilities for analyzing and setting file capabilities
License: GPLv2+
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description utils
@ -73,7 +67,6 @@ lets you set the file system based capabilities.
make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install
# Move the symlink
@ -98,13 +91,11 @@ make check
%ldconfig_scriptlets
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license COPYING.LIB
/%{_lib}/libcap-ng.so.*
%files devel
%defattr(-,root,root,-)
%attr(0644,root,root) %{_mandir}/man3/*
%attr(0644,root,root) %{_includedir}/cap-ng.h
%{_libdir}/libcap-ng.so
@ -112,17 +103,14 @@ make check
%{_libdir}/pkgconfig/libcap-ng.pc
%files -n python2-libcap-ng
%defattr(-,root,root,-)
%attr(755,root,root) %{python2_sitearch}/_capng.so
%{python_sitearch}/capng.py*
%files python3
%defattr(-,root,root,-)
%attr(755,root,root) %{python3_sitearch}/*
%{python3_sitearch}/capng.py*
%files utils
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license COPYING
%attr(0755,root,root) %{_bindir}/*