libcap-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Library for getting and setting POSIX.1e capabilities
  3. Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ
  4. Name: libcap
  5. Version: 2.16
  6. Release: 2%{?_dist_release}
  7. License: LGPLv2
  8. Group: System Environment/Libraries
  9. Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/%{name}-%{version}.tar.gz
  10. Patch0: libcap-2.16-headerfix.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libattr-devel
  13. %description
  14. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
  15. draft 15 capabilities.
  16. %package devel
  17. Summary: Development files for libcap
  18. Summary(ja): libcap の開発用ファイル
  19. Group: Development/Libraries
  20. Requires: %{name} = %{version}-%{release}
  21. %description devel
  22. Development files (Headers, libraries for static linking, etc) for libcap.
  23. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
  24. draft 15 capabilities.
  25. Install libcap-devel if you want to develop or compile applications using
  26. libcap.
  27. # compat32
  28. %package -n compat32-%{name}
  29. Summary: Library for getting and setting POSIX.1e capabilities
  30. Summary(ja): POSIX.1e ケーパビリティを取得・設定するためのライブラリ
  31. Group: System Environment/Libraries
  32. %description -n compat32-%{name}
  33. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
  34. draft 15 capabilities.
  35. %package -n compat32-%{name}-devel
  36. Summary: Development files for libcap
  37. Summary(ja): libcap の開発用ファイル
  38. Group: Development/Libraries
  39. Requires: compat32-%{name} = %{version}-%{release}
  40. Requires: %{name}-devel = %{version}-%{release}
  41. %description -n compat32-%{name}-devel
  42. Development files (Headers, libraries for static linking, etc) for libcap.
  43. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
  44. draft 15 capabilities.
  45. Install libcap-devel if you want to develop or compile applications using
  46. libcap.
  47. %prep
  48. %setup -q
  49. %patch0 -p1
  50. %build
  51. # libcap can not be build with _smp_mflags:
  52. make PREFIX=%{_prefix} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
  53. INCDIR=%{_includedir} MANDIR=%{_mandir} COPTFLAG="$RPM_OPT_FLAGS"
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install DESTDIR=${RPM_BUILD_ROOT} \
  57. LIBDIR=${RPM_BUILD_ROOT}/%{_lib} \
  58. SBINDIR=${RPM_BUILD_ROOT}/%{_sbindir} \
  59. INCDIR=${RPM_BUILD_ROOT}/%{_includedir} \
  60. MANDIR=${RPM_BUILD_ROOT}/%{_mandir}/ \
  61. COPTFLAG="$RPM_OPT_FLAGS"
  62. mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man{2,3,8}
  63. #mv -f doc/*.2 ${RPM_BUILD_ROOT}/%{_mandir}/man2/
  64. mv -f doc/*.3 ${RPM_BUILD_ROOT}/%{_mandir}/man3/
  65. # remove static lib
  66. rm -f ${RPM_BUILD_ROOT}/%{_lib}/libcap.a
  67. chmod +x $RPM_BUILD_ROOT/%{_lib}/*.so.*
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %post -p /sbin/ldconfig
  71. %postun -p /sbin/ldconfig
  72. %post -n compat32-%{name} -p /sbin/ldconfig
  73. %postun -n compat32-%{name} -p /sbin/ldconfig
  74. %files
  75. %defattr(-,root,root)
  76. %doc doc/capability.notes License
  77. /%{_lib}/*.so.*
  78. %{_sbindir}/*
  79. %{_mandir}/man8/*
  80. /%{_lib}/security/pam_cap.so
  81. %files devel
  82. %defattr(-,root,root)
  83. %{_includedir}/*
  84. /%{_lib}/*.so
  85. %{_mandir}/man3/*
  86. # compat32
  87. %if %{build_compat32}
  88. %files -n compat32-%{name}
  89. %defattr(-,root,root)
  90. /%{_lib}/*.so.*
  91. %files -n compat32-%{name}-devel
  92. %defattr(-,root,root)
  93. /%{_lib}/*.so
  94. %endif
  95. %changelog
  96. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16-2
  97. - rebuilt with current VineSeed
  98. * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16-1
  99. - new upstream release
  100. - remove compat library (libpcap-1.10)
  101. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.06-2
  102. - added compat32 package for x86_64 arch support
  103. * Fri Jun 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.06-1
  104. - source updated
  105. - built with libattr 2.4.41
  106. * Mon Mar 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-22vl2
  107. - rebuilt
  108. * Sun Mar 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-22vl1
  109. - initial build for Vine Linux based on FC package
  110. * Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.10-22
  111. - build with gcc-4
  112. * Wed Feb 09 2005 Karsten Hopp <karsten@redhat.de> 1.10-21
  113. - rebuilt
  114. * Tue Aug 31 2004 Phil Knirsch <pknirsch@redhat.com> 1.10-20
  115. - Fix wrong typedef in userland patch (#98801)
  116. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  117. - rebuilt
  118. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  119. - rebuilt
  120. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  121. - rebuilt
  122. * Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.10-17
  123. - use _manpath
  124. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  125. - rebuilt
  126. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  127. - rebuilt
  128. * Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 1.10-14
  129. - set execute bits on library so that requires are generated.
  130. * Thu Nov 21 2002 Mike A. Harris <mharris@redhat.com> 1.10-13
  131. - Removed %%name macro sillyness from package Summary, description text, etc.
  132. - Removed archaic Prefix: tag
  133. - lib64 fixes everywhere to use _lib, _libdir, etc
  134. - Removed deletion of RPM_BUILD_DIR from %%clean section
  135. - Added -q flag to setup macro
  136. - Severely cleaned up spec file, and removed usage of perl
  137. * Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
  138. - CFLAGS was using COPTFLAG variable, not COPTFLAGS
  139. - build with -fpic
  140. - apply the IA-64 patch everywhere, use capget/capset from glibc,
  141. not directly as _syscall (as it is broken on IA-32 with -fpic)
  142. - reenable alpha
  143. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  144. - automated rebuild
  145. * Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
  146. - Exclude alpha for now, apparent gcc bug.
  147. * Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
  148. - Fix sys/capabilities.h header (#55727)
  149. - Move to /lib, some applications seem to be using this rather early
  150. (#55733)
  151. * Mon Jul 16 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  152. - Add post,postun scripts
  153. * Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
  154. - don't build libcap.so.1 with ld -shared, but gcc -shared
  155. * Wed Jun 20 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  156. - Rebuild - it was missing for alpha
  157. * Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  158. - add s390/s390x support
  159. * Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
  160. - initial RPM
  161. - fix build on ia64