keyutils-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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: 3%{?_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}-%{release}-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. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-3
  108. - added compat32 package for x86_64 arch support
  109. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2-2
  110. - changed libs subpackage's Group to System Environment/Libraries
  111. - changed devel subpackage's Group to Development/Libraries
  112. * Thu Oct 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1
  113. - initial build for Vine Linux
  114. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2-3
  115. - Autorebuild for GCC 4.3
  116. * Tue Aug 22 2006 David Howells <dhowells@redhat.com> - 1.2-1
  117. - Remove syscall manual pages (section 2) to man-pages package [BZ 203582]
  118. - Don't write to serial port in debugging script
  119. * Mon Jun 5 2006 David Howells <dhowells@redhat.com> - 1.1-4
  120. - Call ldconfig during (un)installation.
  121. * Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-3
  122. - Don't include the release number in the shared library filename
  123. - Don't build static library
  124. * Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-2
  125. - More bug fixes from Fedora reviewer.
  126. * Thu May 4 2006 David Howells <dhowells@redhat.com> - 1.1-1
  127. - Fix rpmlint errors
  128. * Mon Dec 5 2005 David Howells <dhowells@redhat.com> - 1.0-2
  129. - Add build dependency on glibc-kernheaders with key management syscall numbers
  130. * Tue Nov 29 2005 David Howells <dhowells@redhat.com> - 1.0-1
  131. - Add data pipe-in facility for keyctl request2
  132. * Mon Nov 28 2005 David Howells <dhowells@redhat.com> - 1.0-1
  133. - Rename library and header file "keyutil" -> "keyutils" for consistency
  134. - Fix shared library version naming to same way as glibc.
  135. - Add versioning for shared library symbols
  136. - Create new keyutils-libs package and install library and main symlink there
  137. - Install base library symlink in /usr/lib and place in devel package
  138. - Added a keyutils archive library
  139. - Shorten displayed key permissions list to just those we actually have
  140. * Thu Nov 24 2005 David Howells <dhowells@redhat.com> - 0.3-4
  141. - Add data pipe-in facilities for keyctl add, update and instantiate
  142. * Fri Nov 18 2005 David Howells <dhowells@redhat.com> - 0.3-3
  143. - Added stdint.h inclusion in keyutils.h
  144. - Made request-key.c use request_key() rather than keyctl_search()
  145. - Added piping facility to request-key
  146. * Thu Nov 17 2005 David Howells <dhowells@redhat.com> - 0.3-2
  147. - Added timeout keyctl option
  148. - request_key auth keys must now be assumed
  149. - Fix keyctl argument ordering for debug negate line in request-key.conf
  150. * Thu Jul 28 2005 David Howells <dhowells@redhat.com> - 0.3-1
  151. - Must invoke initialisation from perror() override in libkeyutils
  152. - Minor UI changes
  153. * Wed Jul 20 2005 David Howells <dhowells@redhat.com> - 0.2-2
  154. - Bump version to permit building in main repositories.
  155. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.2-1
  156. - Don't attempt to define the error codes in the header file.
  157. - Pass the release ID through to the makefile to affect the shared library name.
  158. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-3
  159. - Build in the perror() override to get the key error strings displayed.
  160. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-2
  161. - Need a defattr directive after each files directive.
  162. * Mon Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-1
  163. - Package creation.