diff --git a/libcap.spec b/libcap.spec index bf13ab4..f8d3556 100644 --- a/libcap.spec +++ b/libcap.spec @@ -2,15 +2,16 @@ Name: libcap Version: 2.25 Release: 1%{?dist} Summary: Library for getting and setting POSIX.1e capabilities +URL: https://sites.google.com/site/fullycapable/ +License: GPLv2 +Group: System Environment/Libraries + #Source: http://mirror.linux.org.au/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.bz2 Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.gz # http://manned.org/getpcaps/299a4949/src: Source1: getpcaps.8 Patch0: %{name}-2.25-buildflags.patch -URL: https://sites.google.com/site/fullycapable/ -License: GPLv2 -Group: System Environment/Libraries BuildRequires: libattr-devel pam-devel %description @@ -38,13 +39,14 @@ libcap. %build # libcap can not be build with _smp_mflags: make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ - INCDIR=%{_includedir} MANDIR=%{_mandir} + INCDIR=%{_includedir} MANDIR=%{_mandir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ %install make install RAISE_SETFCAP=no \ DESTDIR=%{buildroot} \ LIBDIR=%{_libdir} \ - SBINDIR=%{_sbindir} + SBINDIR=%{_sbindir} \ + PKGCONFIGDIR=%{_libdir}/pkgconfig/ mkdir -p %{buildroot}/%{_mandir}/man{2,3,8} mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/ @@ -59,27 +61,26 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %postun -p /sbin/ldconfig %files -%defattr(-,root,root,-) -/%{_libdir}/*.so.* +%{!?_licensedir:%global license %%doc} +%license License +%doc doc/capability.notes +%{_libdir}/*.so.* %{_sbindir}/* %{_mandir}/man1/* %{_mandir}/man8/* -/%{_libdir}/security/pam_cap.so -%doc doc/capability.notes -%{!?_licensedir:%global license %%doc} -%license License +%{_libdir}/security/pam_cap.so %files devel -%defattr(-,root,root,-) %{_includedir}/* -/%{_libdir}/*.so +%{_libdir}/*.so %{_mandir}/man3/* %{_libdir}/pkgconfig/libcap.pc -%clean -rm -rf %{buildroot} - %changelog +* Mon Apr 25 2016 Peter Robinson 2.25-2 +- Fix pkgconfig install location on aarch64 +- Spec file cleanups + * Mon Apr 11 2016 Karsten Hopp - 2.25-1 - libcap-2.25