keyutils-vl.spec 6.5 KB

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