Fix pkgconfig install location on aarch64, Spec file cleanups

This commit is contained in:
Peter Robinson 2016-04-25 10:14:24 +01:00
parent 740b4b1376
commit f23323f156
1 changed files with 17 additions and 16 deletions

View File

@ -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 <pbrobinson@fedoraproject.org> 2.25-2
- Fix pkgconfig install location on aarch64
- Spec file cleanups
* Mon Apr 11 2016 Karsten Hopp <karsten@redhat.com> - 2.25-1
- libcap-2.25