keyutils-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define vermajor 1
  3. %define verminor 5.9
  4. %define version %{vermajor}.%{verminor}
  5. %define libapivermajor 1
  6. %define libapiversion %{libapivermajor}.5
  7. %define libdir /%{_lib}
  8. %define usrlibdir %{_prefix}/%{_lib}
  9. Summary: Linux Key Management Utilities
  10. Summary(ja): Linux 鍵管理ユーティリティ
  11. Name: keyutils
  12. Version: %{version}
  13. Release: 1%{?_dist_release}
  14. License: GPLv2+ and LGPLv2+
  15. Group: System Environment/Base
  16. ExclusiveOS: Linux
  17. URL: http://people.redhat.com/~dhowells/keyutils/
  18. Source0: http://people.redhat.com/~dhowells/keyutils/keyutils-%{version}.tar.bz2
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: glibc-kernheaders >= 2.4-9.1.92
  21. Requires: %{name}-libs = %{version}-%{release}
  22. Distribution: Vine Linux
  23. Vendor: Project Vine
  24. %description
  25. Utilities to control the kernel key management facility and to provide
  26. a mechanism by which the kernel call back to userspace to get a key
  27. instantiated.
  28. %package libs
  29. Summary: Key utilities library
  30. Summary(ja): 鍵管理ユーティリティのライブラリ
  31. Group: System Environment/Libraries
  32. %description libs
  33. This package provides a wrapper library for the key management facility system
  34. calls.
  35. %package libs-devel
  36. Summary: Development package for building linux key management utilities
  37. Summary(ja): Linux 鍵管理ユーティリティの開発ファイル
  38. Group: Development/Libraries
  39. Requires: %{name}-libs = %{version}-%{release}
  40. %description libs-devel
  41. This package provides headers and libraries for building key utilities.
  42. %package -n compat32-%{name}-libs
  43. Summary: Key utilities library
  44. Summary(ja): 鍵管理ユーティリティのライブラリ
  45. Group: System Environment/Libraries
  46. Requires: %{name}-libs = %{version}-%{release}
  47. %description -n compat32-%{name}-libs
  48. This package provides a wrapper library for the key management facility system
  49. calls.
  50. %package -n compat32-%{name}-libs-devel
  51. Summary: Development package for building linux key management utilities
  52. Summary(ja): Linux 鍵管理ユーティリティの開発ファイル
  53. Group: Development/Libraries
  54. Requires: compat32-%{name}-libs = %{version}-%{release}
  55. Requires: %{name}-libs-devel = %{version}-%{release}
  56. %description -n compat32-%{name}-libs-devel
  57. This package provides headers and libraries for building key utilities.
  58. %prep
  59. %setup -q
  60. %build
  61. make \
  62. NO_ARLIB=1 \
  63. LIBDIR=%{libdir} \
  64. USRLIBDIR=%{usrlibdir} \
  65. BINDIR=%{_bindir} \
  66. SBINDIR=%{_sbindir} \
  67. RELEASE=.%{release} \
  68. NO_GLIBC_KEYERR=1 \
  69. CFLAGS="-Wall $RPM_OPT_FLAGS -Werror"
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. make \
  73. NO_ARLIB=1 \
  74. DESTDIR=$RPM_BUILD_ROOT \
  75. LIBDIR=%{libdir} \
  76. USRLIBDIR=%{usrlibdir} \
  77. BINDIR=%{_bindir} \
  78. SBINDIR=%{_sbindir} \
  79. install
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %post libs -p /sbin/ldconfig
  83. %postun libs -p /sbin/ldconfig
  84. %if %{build_compat32}
  85. %post -n compat32-%{name}-libs -p /sbin/ldconfig
  86. %postun -n compat32-%{name}-libs -p /sbin/ldconfig
  87. %endif
  88. %files
  89. %defattr(-,root,root,-)
  90. %doc README LICENCE.GPL
  91. %{_sbindir}/*
  92. %{_bindir}/*
  93. %{_datadir}/keyutils
  94. %{_mandir}/man1/*
  95. %{_mandir}/man5/*
  96. %{_mandir}/man8/*
  97. %config(noreplace) %{_sysconfdir}/*
  98. %files libs
  99. %defattr(-,root,root,-)
  100. %doc LICENCE.LGPL
  101. %{_mandir}/man7/*
  102. %{libdir}/libkeyutils.so.%{libapiversion}
  103. %{libdir}/libkeyutils.so.%{libapivermajor}
  104. %files libs-devel
  105. %defattr(-,root,root,-)
  106. %{usrlibdir}/libkeyutils.so
  107. %{_includedir}/*
  108. %{_mandir}/man3/*
  109. # compat32
  110. %if %{build_compat32}
  111. %files -n compat32-%{name}-libs
  112. %defattr(-,root,root,-)
  113. %{libdir}/libkeyutils.so.%{libapiversion}
  114. %{libdir}/libkeyutils.so.%{libapivermajor}
  115. %files -n compat32-%{name}-libs-devel
  116. %defattr(-,root,root,-)
  117. %{usrlibdir}/libkeyutils.so
  118. %endif
  119. %changelog
  120. * Mon Dec 22 2014 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.9-1
  121. - updated to 1.5.9
  122. - rebuilt on current VineSeed
  123. * Thu Mar 24 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2-4
  124. - rebuilt with new toolchains
  125. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-3
  126. - added compat32 package for x86_64 arch support
  127. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2-2
  128. - changed libs subpackage's Group to System Environment/Libraries
  129. - changed devel subpackage's Group to Development/Libraries
  130. * Thu Oct 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1
  131. - initial build for Vine Linux
  132. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2-3
  133. - Autorebuild for GCC 4.3
  134. * Tue Aug 22 2006 David Howells <dhowells@redhat.com> - 1.2-1
  135. - Remove syscall manual pages (section 2) to man-pages package [BZ 203582]
  136. - Don't write to serial port in debugging script
  137. * Mon Jun 5 2006 David Howells <dhowells@redhat.com> - 1.1-4
  138. - Call ldconfig during (un)installation.
  139. * Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-3
  140. - Don't include the release number in the shared library filename
  141. - Don't build static library
  142. * Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-2
  143. - More bug fixes from Fedora reviewer.
  144. * Thu May 4 2006 David Howells <dhowells@redhat.com> - 1.1-1
  145. - Fix rpmlint errors
  146. * Mon Dec 5 2005 David Howells <dhowells@redhat.com> - 1.0-2
  147. - Add build dependency on glibc-kernheaders with key management syscall numbers
  148. * Tue Nov 29 2005 David Howells <dhowells@redhat.com> - 1.0-1
  149. - Add data pipe-in facility for keyctl request2
  150. * Mon Nov 28 2005 David Howells <dhowells@redhat.com> - 1.0-1
  151. - Rename library and header file "keyutil" -> "keyutils" for consistency
  152. - Fix shared library version naming to same way as glibc.
  153. - Add versioning for shared library symbols
  154. - Create new keyutils-libs package and install library and main symlink there
  155. - Install base library symlink in /usr/lib and place in devel package
  156. - Added a keyutils archive library
  157. - Shorten displayed key permissions list to just those we actually have
  158. * Thu Nov 24 2005 David Howells <dhowells@redhat.com> - 0.3-4
  159. - Add data pipe-in facilities for keyctl add, update and instantiate
  160. * Fri Nov 18 2005 David Howells <dhowells@redhat.com> - 0.3-3
  161. - Added stdint.h inclusion in keyutils.h
  162. - Made request-key.c use request_key() rather than keyctl_search()
  163. - Added piping facility to request-key
  164. * Thu Nov 17 2005 David Howells <dhowells@redhat.com> - 0.3-2
  165. - Added timeout keyctl option
  166. - request_key auth keys must now be assumed
  167. - Fix keyctl argument ordering for debug negate line in request-key.conf
  168. * Thu Jul 28 2005 David Howells <dhowells@redhat.com> - 0.3-1
  169. - Must invoke initialisation from perror() override in libkeyutils
  170. - Minor UI changes
  171. * Wed Jul 20 2005 David Howells <dhowells@redhat.com> - 0.2-2
  172. - Bump version to permit building in main repositories.
  173. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.2-1
  174. - Don't attempt to define the error codes in the header file.
  175. - Pass the release ID through to the makefile to affect the shared library name.
  176. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-3
  177. - Build in the perror() override to get the key error strings displayed.
  178. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-2
  179. - Need a defattr directive after each files directive.
  180. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-1
  181. - Package creation.