libcap-vl.spec 6.7 KB

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