libcap-vl.spec 5.8 KB

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