gnome-keyring-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. %define gtk2_version 2.20.0
  2. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  3. Summary: A framework for managing user passwords and other secrets
  4. Summary(ja): ユーザのパスワードや秘匿情報を管理するためのフレームワーク
  5. Name: gnome-keyring
  6. Version: 2.30.1
  7. Release: 1%{?_dist_release}
  8. License: GPL/LGPL
  9. Group: System Environment/Libraries
  10. Source: gnome-keyring-%{version}.tar.bz2
  11. URL: http://www.gnome.org
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Requires: gtk2 >= %{gtk2_version}
  14. Requires(post,pre,preun): GConf2
  15. BuildRequires: gtk2-devel >= %{gtk2_version}
  16. BuildRequires: GConf2-devel >= 1.0
  17. BuildRequires: dbus-devel >= 1.0
  18. BuildRequires: gettext
  19. BuildRequires: libgcrypt-devel
  20. BuildRequires: libtasn1-devel
  21. BuildRequires: pam-devel
  22. BuildRequires: autoconf, automake, libtool
  23. BuildRequires: intltool
  24. BuildRequires: perl(XML::Parser)
  25. # http://bugzilla.gnome.org/show_bug.cgi?id=484612
  26. Patch0: gnome-keyring-2.20-selinux-pam.patch
  27. # autounlock does not currently work, see
  28. # https://bugzilla.redhat.com/show_bug.cgi?id=250147
  29. Patch1: no-autounlock.patch
  30. %description
  31. gnome-keyring manages passwords and other types of secrets
  32. for the user, storing them encrypted with a main password.
  33. Applications can use the gnome-keyring library to integrate
  34. with the keyring.
  35. %package devel
  36. Summary: The files needed for gnome-keyring application development.
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: glib2-devel
  40. %description devel
  41. The gnome-keyring-devel package contains the libraries and
  42. include files that you can use to develop applications that
  43. use gnome-keyring.
  44. %package pam
  45. Summary: A pam module for unlocking keyrings at login time
  46. License: LGPLv2+
  47. Group: System Environment/Libraries
  48. Requires: %{name} = %{version}-%{release}
  49. # for /lib/security
  50. Requires: pam
  51. %description pam
  52. The gnome-keyring-pam package contains a pam module that can
  53. automatically unlock the "login" keyring when the user logs in
  54. and start the keyring daemon.
  55. # compat32
  56. %package -n compat32-%{name}
  57. Summary: A framework for managing user passwords and other secrets
  58. Summary(ja): ユーザのパスワードや秘匿情報を管理するためのフレームワーク
  59. Group: System Environment/Libraries
  60. Requires: %{name} = %{version}-%{release}
  61. %description -n compat32-%{name}
  62. gnome-keyring manages passwords and other types of secrets
  63. for the user, storing them encrypted with a main password.
  64. Applications can use the gnome-keyring library to integrate
  65. with the keyring.
  66. %package -n compat32-%{name}-devel
  67. Summary: The files needed for gnome-keyring application development.
  68. Group: Development/Libraries
  69. Requires: %{name}-devel = %{version}-%{release}
  70. Requires: compat32-%{name} = %{version}-%{release}
  71. Requires: compat32-glib2-devel
  72. %description -n compat32-%{name}-devel
  73. The gnome-keyring-devel package contains the libraries and
  74. include files that you can use to develop applications that
  75. use gnome-keyring.
  76. %package -n compat32-%{name}-pam
  77. Summary: A pam module for unlocking keyrings at login time
  78. License: LGPLv2+
  79. Group: System Environment/Libraries
  80. Requires: %{name}-pam = %{version}-%{release}
  81. Requires: compat32-%{name} = %{version}-%{release}
  82. # for /lib/security
  83. Requires: compat32-pam
  84. %description -n compat32-%{name}-pam
  85. The gnome-keyring-pam package contains a pam module that can
  86. automatically unlock the "login" keyring when the user logs in
  87. and start the keyring daemon.
  88. %prep
  89. %setup -q -n gnome-keyring-%{version}
  90. #patch0 -p1 -b .selinux_pam
  91. #patch1 -p1 -b .no-autounlock
  92. %build
  93. %configure --disable-gtk-doc --with-pam-dir=/%{_lib}/security --disable-schemas-install
  94. make %{?_smp_mflags}
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. make install install-pam DESTDIR=$RPM_BUILD_ROOT
  98. rm -f $RPM_BUILD_ROOT%{_libdir}/pam_gnome_keyring.so
  99. %find_lang %{name}
  100. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  101. rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/*.la
  102. rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/*/*.la
  103. rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la
  104. %clean
  105. rm -rf $RPM_BUILD_ROOT
  106. %post
  107. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  108. gconftool-2 --makefile-install-rule \
  109. %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas \
  110. > /dev/null || :
  111. /sbin/ldconfig
  112. %pre
  113. if [ "$1" -gt 1 ]; then
  114. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  115. gconftool-2 --makefile-install-rule \
  116. %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas \
  117. > /dev/null || :
  118. fi
  119. %preun
  120. if [ "$1" -eq 0 ]; then
  121. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  122. gconftool-2 --makefile-uninstall-rule \
  123. %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas \
  124. > /dev/null || :
  125. fi
  126. %postun -p /sbin/ldconfig
  127. %post -n compat32-%{name} -p /sbin/ldconfig
  128. %postun -n compat32-%{name} -p /sbin/ldconfig
  129. %files -f %{name}.lang
  130. %defattr(-, root, root)
  131. %doc AUTHORS NEWS README COPYING COPYING.LIB
  132. %{_sysconfdir}/gconf/schemas/*.schemas
  133. %{_sysconfdir}/xdg/autostart/gnome-keyring-pkcs11.desktop
  134. %{_sysconfdir}/xdg/autostart/gnome-keyring-secrets.desktop
  135. %{_sysconfdir}/xdg/autostart/gnome-keyring-ssh.desktop
  136. %{_bindir}/*
  137. %{_libdir}/lib*.so.*
  138. %dir %{_libdir}/gnome-keyring
  139. %{_libdir}/gnome-keyring/*.so
  140. %{_libdir}/gnome-keyring/devel/*.so
  141. %{_libdir}/gnome-keyring/standalone/*.so
  142. %{_libexecdir}/*
  143. %{_datadir}/dbus-1/services/*
  144. %{_datadir}/gnome-keyring
  145. %dir %{_datadir}/gcr
  146. %{_datadir}/gcr/ui/*.ui
  147. %files devel
  148. %defattr(-, root, root)
  149. %{_libdir}/lib*.so
  150. %{_libdir}/pkgconfig/*
  151. %{_includedir}/*
  152. ## %{_datadir}/gtk-doc/html/gnome-keyring
  153. %{_datadir}/gtk-doc/html/gp11
  154. %{_datadir}/gtk-doc/html/gcr
  155. %files pam
  156. %defattr(-, root, root)
  157. /%{_lib}/security/*.so
  158. # compat32
  159. %if %{build_compat32}
  160. %files -n compat32-%{name}
  161. %defattr(-, root, root)
  162. %{_libdir}/lib*.so.*
  163. %dir %{_libdir}/gnome-keyring
  164. %{_libdir}/gnome-keyring/*.so
  165. %{_libdir}/gnome-keyring/devel/*.so
  166. %{_libdir}/gnome-keyring/standalone/*.so
  167. %files -n compat32-%{name}-devel
  168. %defattr(-, root, root)
  169. %{_libdir}/lib*.so
  170. %{_libdir}/pkgconfig/*
  171. %files -n compat32-%{name}-pam
  172. %defattr(-, root, root)
  173. /%{_lib}/security/*.so
  174. %endif
  175. %changelog
  176. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  177. - new upstream release
  178. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  179. - new upstream release
  180. - remove BuildRequires: hal-devel
  181. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1
  182. - new upstream release
  183. - add BuildRequires: GConf2-devel
  184. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
  185. - new upstream release
  186. * Sun Jul 12 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.26.3-2
  187. - added compat32 package for x86_64 arch support
  188. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.3-1
  189. - new upstream release
  190. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
  191. - new upstream release
  192. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  193. - new upstream release
  194. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  195. - new upstream release
  196. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  197. - new upstream release
  198. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1
  199. - new upstream release
  200. * Wed Apr 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
  201. - new upstream release
  202. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  203. - new upstream release
  204. - added BuildRequires: libtasn1-devel
  205. * Tue Dec 11 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.2-0vl1
  206. - new upstream release
  207. - added a pam subpackage
  208. * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-0vl1
  209. - new upstream release
  210. * Tue May 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-0vl1
  211. - new upstream release
  212. * Mon Mar 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.8-0vl1
  213. - new upstream release
  214. * Sat Oct 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.5-0vl1
  215. - new upstream release
  216. * Wed Sep 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.4-0vl1
  217. - new upstream release
  218. * Fri Mar 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.2-0vl1
  219. - new upstream version
  220. * Sun Dec 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.0-0vl1
  221. - new upstream release
  222. * Sun Aug 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2-0vl1
  223. - initial build for Vine Linux based on fedora's spec file.
  224. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  225. - rebuilt
  226. * Thu Apr 1 2004 Alex Larsson <alexl@redhat.com> 0.2.0-1
  227. - update to 0.2.0
  228. * Wed Mar 10 2004 Alexander Larsson <alexl@redhat.com> 0.1.90-1
  229. - update to 0.1.90
  230. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  231. - rebuilt
  232. * Tue Feb 24 2004 Alexander Larsson <alexl@redhat.com> 0.1.4-1
  233. - update to 0.1.4
  234. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  235. - rebuilt
  236. * Fri Jan 30 2004 Alexander Larsson <alexl@redhat.com> 0.1.3-1
  237. - update to 0.1.3
  238. * Mon Jan 26 2004 Bill Nottingham <notting@redhat.com>
  239. - tweak summary
  240. * Mon Jan 26 2004 Alexander Larsson <alexl@redhat.com> 0.1.2-2
  241. - devel package only needs glib2-devel, not gtk2-devel
  242. * Fri Jan 23 2004 Alexander Larsson <alexl@redhat.com> 0.1.2-1
  243. - First version