libcap-ng-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Summary: An alternate posix capabilities library
  3. Name: libcap-ng
  4. Version: 0.7.3
  5. Release: 2%{?_dist_release}
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://people.redhat.com/sgrubb/libcap-ng
  9. Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: kernel-headers >= 2.6.11
  12. BuildRequires: libattr-devel
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: Takemikaduchi
  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: Development/Libraries
  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 python
  29. Summary: Python bindings for libcap-ng library
  30. License: LGPLv2+
  31. Group: Development/Libraries
  32. BuildRequires: python-devel swig
  33. Requires: %{name} = %{version}-%{release}
  34. %description python
  35. The libcap-ng-python package contains the bindings so that libcap-ng
  36. and can be used by python applications.
  37. %package utils
  38. Summary: Utilities for analysing and setting file capabilities
  39. License: GPLv2+
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. %description utils
  43. The libcap-ng-utils package contains applications to analyse the
  44. posix capabilities of all the program running on a system. It also
  45. lets you set the file system based capabilities.
  46. %prep
  47. %setup -q
  48. %build
  49. %configure --libdir=/%{_lib}
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make DESTDIR="${RPM_BUILD_ROOT}" install
  54. # Move the symlink
  55. rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
  56. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  57. VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
  58. LIBNAME=$(basename $VLIBNAME)
  59. ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
  60. # Move the pkgconfig file
  61. mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
  62. # Remove a couple things so they don't get picked up
  63. rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
  64. rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
  65. rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
  66. rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
  67. %check
  68. make check
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %files
  74. %defattr(-,root,root,-)
  75. %doc COPYING.LIB
  76. %attr(0755,root,root) /%{_lib}/libcap-ng.so.*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %attr(0644,root,root) %{_mandir}/man3/*
  80. %attr(0644,root,root) %{_includedir}/cap-ng.h
  81. %attr(0755,root,root) %{_libdir}/libcap-ng.so
  82. %attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
  83. %{_libdir}/pkgconfig/libcap-ng.pc
  84. %files python
  85. %defattr(-,root,root,-)
  86. %attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so
  87. %{python_sitearch}/capng.py*
  88. %files utils
  89. %defattr(-,root,root,-)
  90. %doc COPYING
  91. %attr(0755,root,root) %{_bindir}/*
  92. %attr(0644,root,root) %{_mandir}/man8/*
  93. %changelog
  94. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.3-2
  95. - rebuild with VineSeed environment
  96. * Mon Jan 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.3-1
  97. - new upstream release
  98. * Sun Oct 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
  99. - new upstream release
  100. * Mon Feb 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-2
  101. - rebuild with python-2.7.2
  102. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.6-1
  103. - initial build for Vine Linux
  104. * Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
  105. - New upstream release
  106. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  108. * Wed Nov 03 2010 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
  109. - New upstream release fixing 2.6.36 kernel header issue
  110. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
  111. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  112. * Thu Jun 17 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-3
  113. - Only open regular files in filecap
  114. * Mon May 24 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-2
  115. - In utils subpackage added a requires statement.
  116. * Thu May 06 2010 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
  117. - New upstream release fixing multi-threading issue
  118. * Wed Apr 28 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
  119. - filecap shows full capabilities if a file has any
  120. * Thu Mar 11 2010 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
  121. - New upstream release
  122. * Tue Feb 16 2010 Steve Grubb <sgrubb@redhat.com> 0.6.2-4
  123. - Use global macro and require pkgconfig for devel subpackage
  124. * Fri Oct 09 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-3
  125. - Apply patch to retain setpcap only if clearing bounding set
  126. * Sat Oct 03 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-2
  127. - Apply patch correcting pscap and netcap acct detection
  128. * Mon Sep 28 2009 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
  129. - New upstream release
  130. * Sun Jul 26 2009 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
  131. - New upstream release
  132. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  134. * Mon Jun 29 2009 Steve Grubb <sgrubb@redhat.com> 0.6-1
  135. - New upstream release
  136. * Sun Jun 21 2009 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
  137. - New upstream release
  138. * Fri Jun 19 2009 Steve Grubb <sgrubb@redhat.com> 0.5-1
  139. - New upstream release
  140. * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.2-1
  141. - New upstream release
  142. * Fri Jun 12 2009 Steve Grubb <sgrubb@redhat.com> 0.4.1-1
  143. - Initial build.