This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #TARBALL: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.31.tar.xz
  2. #MD5SUM: 52120c05dc797b01f5a7ae70f4335e96;SOURCES/libcap-2.31.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Libcap package implements the user-space interfaces to the POSIX 1003.1e
  5. Name: libcap
  6. Version: 2.31
  7. Release: 1
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: %{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Libcap package implements the user-space interfaces to the POSIX 1003.1e
  15. capabilities available in Linux kernels. These capabilities are a partitioning
  16. of the all powerful root privilege into a set of distinct privileges.
  17. #-----------------------------------------------------------------------------
  18. %prep
  19. %setup -q -n %{NAME}-%{VERSION}
  20. sed -i '/install.*STALIBNAME/d' libcap/Makefile
  21. %build
  22. make lib=lib %{?_smp_mflags}
  23. %install
  24. make DESTDIR=%{buildroot} lib=lib prefix=%{_prefix} install
  25. chmod -v 755 %{buildroot}%{_libdir}/libcap.so.%{version}
  26. #-----------------------------------------------------------------------------
  27. # Copy license/copying file
  28. install -D -m644 License %{buildroot}/usr/share/licenses/%{name}/LICENSE
  29. #-----------------------------------------------------------------------------
  30. # Create file list
  31. find %{buildroot} -name '*.la' -delete
  32. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  33. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  34. sed -i '/man\/man/d' filelist.list
  35. sed -i '/\/usr\/share\/info/d' filelist.list
  36. #-----------------------------------------------------------------------------
  37. %files -f filelist.list
  38. %defattr(-,root,root)
  39. %{_mandir}/man1/*
  40. %{_mandir}/man3/*
  41. %{_mandir}/man8/*
  42. #-----------------------------------------------------------------------------
  43. %changelog
  44. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.31-1
  45. * Wed Apr 03 2019 baho-utot <baho-utot@columbus.rr.com> 2.26-1
  46. - Update
  47. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.25-1
  48. - Initial build. First version