update to 2.32 [release 2.32-1mamba;Sat Feb 29 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 03:57:02 +01:00
parent 1191cb3420
commit 940316b250

View File

@ -1,5 +1,5 @@
Name: libcap
Version: 2.27
Version: 2.32
Release: 1mamba
Summary: POSIX 1003.1e capabilities
Group: System/Libraries
@ -61,14 +61,17 @@ Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib32-%{name}-devel
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
%build
%make \
%make -j1 \
GOLANG=no \
CC=%{_host}-gcc \
BUILD_CC=%{_build}-gcc \
LIBDIR=/%{_lib} \
LIBDIR=%{_libdir} \
%if "%{_host}" != "%{_build}"
LDFLAGS="-lcrypt -lattr -L../libcap/"
%endif
@ -77,9 +80,15 @@ This package contains static libraries and header files needed for development.
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_mandir}/man8
%makeinstall \
GOLANG=no \
FAKEROOT=%{buildroot} \
RAISE_SETFCAP=no \
LIBDIR=/%{_lib}
LIBDIR=%{_libdir}
install -Dm644 pam_cap/capability.conf \
%{buildroot}%{_docdir}/libcap/capability.conf.example
chmod +x %{buildroot}%{_libdir}/libcap.so.*
# remove conflicting man pages
rm -f %{buildroot}%{_mandir}/man2/capset*
@ -122,16 +131,26 @@ fi
%files
%defattr(-,root,root)
/%{_lib}/libcap.so.*
/%{_lib}/security/pam_cap.so
%{_libdir}/libcap.so.*
%{_libdir}/security/pam_cap.so
%files devel
%defattr(-,root,root)
%{_includedir}/sys/capability.h
/%{_lib}/libcap.a
/%{_lib}/libcap.so
%{_mandir}/man3/*.3.gz
%{_includedir}/sys/psx_syscall.h
%{_libdir}/libcap.a
%{_libdir}/libcap.so
%{_libdir}/libpsx.a
#%ifarch x86_64
#%dir %{_datadir}/gocode/src/libcap
#%dir %{_datadir}/gocode/src/libcap/cap
#%{_datadir}/gocode/src/libcap/cap/*.go
#%dir %{_datadir}/gocode/src/libcap/psx
#%{_datadir}/gocode/src/libcap/psx/*.go
#%endif
%{_libdir}/pkgconfig/libcap.pc
%{_libdir}/pkgconfig/libpsx.pc
%{_mandir}/man3/*.3*
%files tools
%defattr(-,root,root)
@ -141,7 +160,9 @@ fi
/sbin/setcap
%{_mandir}/man1/capsh.1*
%{_mandir}/man8/getcap.8*
%{_mandir}/man8/getpcaps.8*
%{_mandir}/man8/setcap.8*
%{_docdir}/libcap/capability.conf.example
%doc README
%ifarch x86_64_disabled
@ -156,6 +177,12 @@ fi
%endif
%changelog
* Sat Feb 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.32-1mamba
- update to 2.32
* Fri Feb 14 2020 Automatic Build System <autodist@mambasoft.it> 2.31-1mamba
- automatic version update by autodist
* Sat Apr 20 2019 Automatic Build System <autodist@mambasoft.it> 2.27-1mamba
- automatic version update by autodist