gnome-keyring-vl.spec 8.5 KB

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