libcap-vl.spec 7.7 KB

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