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