libcap-vl.spec 6.3 KB

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