gnome-keyring-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. %define gtk3_version 3.1.10
  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: 3.1.4
  7. Release: 1%{?_dist_release}
  8. License: GPL/LGPL
  9. Group: System Environment/Libraries
  10. Source: gnome-keyring-%{version}.tar.xz
  11. URL: http://www.gnome.org
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Requires: gtk3 >= %{gtk3_version}
  14. Requires(post,pre,preun): GConf2
  15. BuildRequires: gtk3-devel >= %{gtk3_version}
  16. BuildRequires: GConf2-devel >= 1.0
  17. BuildRequires: dbus-devel >= 1.0
  18. BuildRequires: gettext
  19. BuildRequires: libcap-ng-devel
  20. BuildRequires: libgcrypt-devel
  21. BuildRequires: libtasn1-devel
  22. BuildRequires: openssl-devel
  23. BuildRequires: p11-kit-devel
  24. BuildRequires: pam-devel
  25. BuildRequires: autoconf, automake, libtool
  26. BuildRequires: intltool
  27. BuildRequires: perl(XML::Parser)
  28. Patch2: %{name}-2.31.91-configure-vine.patch
  29. Patch3: gnome-keyring-3.1.4-git20110729.patch
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. %description
  33. gnome-keyring manages passwords and other types of secrets
  34. for the user, storing them encrypted with a main password.
  35. Applications can use the gnome-keyring library to integrate
  36. with the keyring.
  37. %package devel
  38. Summary: The files needed for gnome-keyring application development.
  39. Group: Development/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. Requires: glib2-devel
  42. %description devel
  43. The gnome-keyring-devel package contains the libraries and
  44. include files that you can use to develop applications that
  45. use gnome-keyring.
  46. %package pam
  47. Summary: A pam module for unlocking keyrings at login time
  48. License: LGPLv2+
  49. Group: System Environment/Libraries
  50. Requires: %{name} = %{version}-%{release}
  51. # for /lib/security
  52. Requires: pam
  53. %description pam
  54. The gnome-keyring-pam package contains a pam module that can
  55. automatically unlock the "login" keyring when the user logs in
  56. and start the keyring daemon.
  57. # compat32
  58. %package -n compat32-%{name}
  59. Summary: A framework for managing user passwords and other secrets
  60. Summary(ja): ユーザのパスワードや秘匿情報を管理するためのフレームワーク
  61. Group: System Environment/Libraries
  62. Requires: %{name} = %{version}-%{release}
  63. %description -n compat32-%{name}
  64. gnome-keyring manages passwords and other types of secrets
  65. for the user, storing them encrypted with a main password.
  66. Applications can use the gnome-keyring library to integrate
  67. with the keyring.
  68. %package -n compat32-%{name}-devel
  69. Summary: The files needed for gnome-keyring application development.
  70. Group: Development/Libraries
  71. Requires: %{name}-devel = %{version}-%{release}
  72. Requires: compat32-%{name} = %{version}-%{release}
  73. Requires: compat32-glib2-devel
  74. %description -n compat32-%{name}-devel
  75. The gnome-keyring-devel package contains the libraries and
  76. include files that you can use to develop applications that
  77. use gnome-keyring.
  78. %package -n compat32-%{name}-pam
  79. Summary: A pam module for unlocking keyrings at login time
  80. License: LGPLv2+
  81. Group: System Environment/Libraries
  82. Requires: %{name}-pam = %{version}-%{release}
  83. Requires: compat32-%{name} = %{version}-%{release}
  84. # for /lib/security
  85. Requires: compat32-pam
  86. %description -n compat32-%{name}-pam
  87. The gnome-keyring-pam package contains a pam module that can
  88. automatically unlock the "login" keyring when the user logs in
  89. and start the keyring daemon.
  90. %prep
  91. %setup -q -n gnome-keyring-%{version}
  92. %patch2 -p1 -b .vine
  93. %patch3 -p1 -b .git
  94. %build
  95. %configure \
  96. --with-gtk=3.0 \
  97. --disable-gtk-doc \
  98. --enable-pam \
  99. --with-pam-dir=/%{_lib}/security \
  100. --with-root-certs=%{_datadir}/ssl/certs
  101. make %{?_smp_mflags}
  102. %install
  103. rm -rf $RPM_BUILD_ROOT
  104. make install install-pam DESTDIR=$RPM_BUILD_ROOT
  105. rm -f $RPM_BUILD_ROOT%{_libdir}/pam_gnome_keyring.so
  106. %find_lang %{name}
  107. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  108. rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/*.la
  109. rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/*/*.la
  110. rm -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la
  111. rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la
  112. %clean
  113. rm -rf $RPM_BUILD_ROOT
  114. %post
  115. /sbin/ldconfig
  116. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  117. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  118. fi
  119. %postun
  120. /sbin/ldconfig
  121. if [ $1 -eq 0 ]; then
  122. glib-compile-schemas %{_datadir}/glib-2.0/schemas
  123. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  124. fi
  125. %posttrans
  126. glib-compile-schemas %{_datadir}/glib-2.0/schemas
  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}/pkcs11/modules/gnome-keyring-module
  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. %{_sysconfdir}/xdg/autostart/gnome-keyring-gpg.desktop
  137. %{_bindir}/*
  138. %{_libdir}/lib*.so.*
  139. %dir %{_libdir}/gnome-keyring
  140. %{_libdir}/gnome-keyring/devel/*.so
  141. %{_libdir}/pkcs11/gnome-keyring-pkcs11.so
  142. %{_libexecdir}/*
  143. %{_datadir}/applications/gnome-keyring-prompt.desktop
  144. %{_datadir}/dbus-1/services/*
  145. %{_datadir}/gnome-keyring-3
  146. %dir %{_datadir}/gcr-3
  147. %{_datadir}/gcr-3/ui/*.ui
  148. %{_datadir}/GConf/gsettings/*
  149. %{_datadir}/glib-2.0/schemas/*
  150. %{_datadir}/icons/hicolor/*/apps/*.png
  151. %files devel
  152. %defattr(-, root, root)
  153. %{_libdir}/lib*.so
  154. %{_libdir}/pkgconfig/*
  155. %{_includedir}/*
  156. ## %{_datadir}/gtk-doc/html/gnome-keyring
  157. %{_datadir}/gtk-doc/html/gcr-3
  158. %{_datadir}/gtk-doc/html/gck
  159. %files pam
  160. %defattr(-, root, root)
  161. /%{_lib}/security/*.so
  162. # compat32
  163. %if %{build_compat32}
  164. %files -n compat32-%{name}
  165. %defattr(-, root, root)
  166. %{_libdir}/lib*.so.*
  167. %dir %{_libdir}/gnome-keyring
  168. %{_libdir}/gnome-keyring/devel/*.so
  169. %files -n compat32-%{name}-devel
  170. %defattr(-, root, root)
  171. %{_libdir}/lib*.so
  172. %{_libdir}/pkgconfig/*
  173. %files -n compat32-%{name}-pam
  174. %defattr(-, root, root)
  175. /%{_lib}/security/*.so
  176. %endif
  177. %changelog
  178. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
  179. - new upstream release
  180. - change BuildRequires: gtk3-devel instead of gtk2-devel
  181. - add BuildRequires: openssl-devel, p11-kit-devel, libcap-ng-devel
  182. - add Patch3 (gnome-keyring-3.1.4-git20110729.patch)
  183. * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.1-1
  184. - new upstream release
  185. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  186. - new upstream release
  187. - add configure option (--enable-pam)
  188. - remove configure option (--disable-schemas-install)
  189. - add Patch2 (%{name}-2.31.91-configure-vine.patch)
  190. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.30.3-2
  191. - build with rpm-4.8.1-1 for pkg-config file
  192. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.3-1
  193. - new upstream release
  194. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  195. - new upstream release
  196. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  197. - new upstream release
  198. - remove BuildRequires: hal-devel
  199. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1
  200. - new upstream release
  201. - add BuildRequires: GConf2-devel
  202. * Sat Oct 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
  203. - new upstream release
  204. * Sun Jul 12 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.26.3-2
  205. - added compat32 package for x86_64 arch support
  206. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.3-1
  207. - new upstream release
  208. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
  209. - new upstream release
  210. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  211. - new upstream release
  212. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.1-1
  213. - new upstream release
  214. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  215. - new upstream release
  216. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.2-1
  217. - new upstream release
  218. * Wed Apr 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
  219. - new upstream release
  220. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  221. - new upstream release
  222. - added BuildRequires: libtasn1-devel
  223. * Tue Dec 11 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.2-0vl1
  224. - new upstream release
  225. - added a pam subpackage
  226. * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-0vl1
  227. - new upstream release
  228. * Tue May 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-0vl1
  229. - new upstream release
  230. * Mon Mar 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.8-0vl1
  231. - new upstream release
  232. * Sat Oct 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.5-0vl1
  233. - new upstream release
  234. * Wed Sep 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.4-0vl1
  235. - new upstream release
  236. * Fri Mar 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.2-0vl1
  237. - new upstream version
  238. * Sun Dec 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.0-0vl1
  239. - new upstream release
  240. * Sun Aug 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2-0vl1
  241. - initial build for Vine Linux based on fedora's spec file.
  242. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  243. - rebuilt
  244. * Thu Apr 1 2004 Alex Larsson <alexl@redhat.com> 0.2.0-1
  245. - update to 0.2.0
  246. * Wed Mar 10 2004 Alexander Larsson <alexl@redhat.com> 0.1.90-1
  247. - update to 0.1.90
  248. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  249. - rebuilt
  250. * Tue Feb 24 2004 Alexander Larsson <alexl@redhat.com> 0.1.4-1
  251. - update to 0.1.4
  252. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  253. - rebuilt
  254. * Fri Jan 30 2004 Alexander Larsson <alexl@redhat.com> 0.1.3-1
  255. - update to 0.1.3
  256. * Mon Jan 26 2004 Bill Nottingham <notting@redhat.com>
  257. - tweak summary
  258. * Mon Jan 26 2004 Alexander Larsson <alexl@redhat.com> 0.1.2-2
  259. - devel package only needs glib2-devel, not gtk2-devel
  260. * Fri Jan 23 2004 Alexander Larsson <alexl@redhat.com> 0.1.2-1
  261. - First version