libcap-ng-vl.spec 5.5 KB

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