libcap-ng-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define _unpackaged_files_terminate_build 1
  3. Summary: An alternate posix capabilities library
  4. Name: libcap-ng
  5. Version: 0.8.5
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPLv2+
  11. URL: http://people.redhat.com/sgrubb/libcap-ng/
  12. Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: kernel-headers >= 2.6.11
  15. BuildRequires: libattr-devel
  16. %description
  17. Libcap-ng is a library that makes using posix capabilities easier
  18. %package devel
  19. Summary: Header files for libcap-ng library
  20. License: LGPLv2+
  21. Group: programming
  22. Requires: kernel-headers >= 2.6.11
  23. Requires: %{name} = %{version}-%{release}
  24. Requires: pkgconfig
  25. %description devel
  26. The libcap-ng-devel package contains the files needed for developing
  27. applications that need to use the libcap-ng library.
  28. %package python3
  29. Summary: Python3 bindings for libcap-ng library
  30. License: LGPLv2+
  31. Group: programming
  32. BuildRequires: python3-devel swig
  33. BuildRequires: python3-rpm-macros
  34. Requires: %{name} = %{version}-%{release}
  35. Provides: python3-capng = %{version}-%{release}
  36. %description python3
  37. The libcap-ng-python3 package contains the bindings so that libcap-ng
  38. and can be used by python3 applications.
  39. %package utils
  40. Summary: Utilities for analysing and setting file capabilities
  41. License: GPLv2+
  42. Group: admin-tools
  43. Requires: %{name} = %{version}-%{release}
  44. %description utils
  45. The libcap-ng-utils package contains applications to analyse the
  46. posix capabilities of all the program running on a system. It also
  47. lets you set the file system based capabilities.
  48. %package -n compat32-%{name}
  49. Summary: An alternate posix capabilities library
  50. Group: system
  51. Requires: %{name} = %{version}-%{release}
  52. %description -n compat32-%{name}
  53. Libcap-ng is a library that makes using posix capabilities easier
  54. %package -n compat32-%{name}-devel
  55. Summary: Header files for libcap-ng library
  56. Group: programming
  57. License: LGPLv2+
  58. Requires: %{name}-devel = %{version}-%{release}
  59. %description -n compat32-%{name}-devel
  60. The libcap-ng-devel package contains the files needed for developing
  61. applications that need to use the libcap-ng library.
  62. %debug_package
  63. %prep
  64. %setup -q
  65. %build
  66. %configure --with-python --with-python3
  67. make %{?_smp_mflags}
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. make DESTDIR="${RPM_BUILD_ROOT}" install
  71. mkdir -p %{buildroot}/%{_lib}
  72. pushd %{buildroot}%{_libdir}
  73. for f in *.so.*; do
  74. ln -sf ..%{_libdir}/$f %{buildroot}/%{_lib}/$f
  75. done
  76. popd
  77. # Remove a couple things so they don't get picked up
  78. rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.la
  79. rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.a
  80. rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.la
  81. rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.a
  82. rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.a
  83. rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.la
  84. %check
  85. make check
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT
  88. %files
  89. %defattr(-,root,root,-)
  90. %license COPYING.LIB
  91. %attr(0755,root,root) %{_libdir}/libcap-ng.so.*
  92. %attr(0755,root,root) %{_libdir}/libdrop_ambient.so.*
  93. /%{_lib}/libcap-ng.so.*
  94. /%{_lib}/libdrop_ambient.so.*
  95. %files devel
  96. %defattr(-,root,root,-)
  97. %attr(0644,root,root) %{_mandir}/man3/*
  98. %attr(0644,root,root) %{_mandir}/man7/*
  99. %attr(0644,root,root) %{_includedir}/cap-ng.h
  100. %attr(0755,root,root) %{_libdir}/libcap-ng.so
  101. %attr(0755,root,root) %{_libdir}/libdrop_ambient.so
  102. %attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
  103. %{_libdir}/pkgconfig/libcap-ng.pc
  104. %files python3
  105. %defattr(-,root,root,-)
  106. %attr(755,root,root) %{python3_sitearch}/*
  107. %{python3_sitearch}/capng.py*
  108. %files utils
  109. %defattr(-,root,root,-)
  110. %doc COPYING
  111. %attr(0755,root,root) %{_bindir}/*
  112. %attr(0644,root,root) %{_mandir}/man8/*
  113. %if %{build_compat32}
  114. %files -n compat32-%{name}
  115. %defattr(-,root,root,-)
  116. %attr(0755,root,root) %{_libdir}/libcap-ng.so.*
  117. %files -n compat32-%{name}-devel
  118. %defattr(-,root,root,-)
  119. %attr(0755,root,root) %{_libdir}/libcap-ng.so
  120. %{_libdir}/pkgconfig/libcap-ng.pc
  121. %endif
  122. %changelog
  123. * Mon Jun 17 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.5-1
  124. - new upstream release.
  125. * Thu Jun 15 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.3-1
  126. - new upstream release.
  127. * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
  128. - new upstream release.
  129. * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.10-1
  130. - new upstream release.
  131. * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.9-1
  132. - new upstream release.
  133. - added compat32-* packages.
  134. - enabled python3 modules.
  135. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.3-2
  136. - rebuild with VineSeed environment
  137. * Mon Jan 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.3-1
  138. - new upstream release
  139. * Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
  140. - new upstream release
  141. * Mon Feb 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-2
  142. - rebuild with python-2.7.2
  143. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-1
  144. - initial build for Vine Linux
  145. * Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
  146. - New upstream release
  147. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
  148. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  149. * Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
  150. - New upstream release fixing 2.6.36 kernel header issue
  151. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
  152. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  153. * Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
  154. - Only open regular files in filecap
  155. * Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
  156. - In utils subpackage added a requires statement.
  157. * Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
  158. - New upstream release fixing multi-threading issue
  159. * Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
  160. - filecap shows full capabilities if a file has any
  161. * Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
  162. - New upstream release
  163. * Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
  164. - Use global macro and require pkgconfig for devel subpackage
  165. * Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
  166. - Apply patch to retain setpcap only if clearing bounding set
  167. * Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
  168. - Apply patch correcting pscap and netcap acct detection
  169. * Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
  170. - New upstream release
  171. * Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
  172. - New upstream release
  173. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
  174. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  175. * Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
  176. - New upstream release
  177. * Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
  178. - New upstream release
  179. * Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
  180. - New upstream release
  181. * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
  182. - New upstream release
  183. * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
  184. - Initial build.