gcr-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library for bits of crypto UI and parsing etc.
  3. Name: gcr
  4. Version: 3.12.2
  5. Release: 1%{?_dist_release}
  6. License: GPL/LGPL
  7. Group: System Environment/Libraries
  8. URL: http://www.gnome.org
  9. Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.12/%{name}-%{version}.tar.xz
  10. BuildRequires: gtk3-devel
  11. BuildRequires: p11-kit-devel
  12. BuildRequires: libtasn1-devel
  13. BuildRequires: libgcrypt-devel
  14. BuildRequires: libxslt
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: Takemikaduchi
  19. %description
  20. GCR is a library for displaying certificates, and crypto UI, accessing
  21. key stores. It also provides the viewer for crypto files on the GNOME
  22. desktop.
  23. GCK is a library for accessing PKCS#11 modules like smart cards, in a
  24. (G)object oriented way.
  25. %package devel
  26. Summary: Development tools for gcr
  27. Summary(ja): gcr の開発環境
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. %description devel
  32. Header files and libraries for building a extension library for the
  33. gcr.
  34. %package docs
  35. Summary: Documentation for gcr
  36. Summary(ja): gcr 用のドキュメント
  37. Group: Documentation
  38. Provides: %{name}-doc = %{version}-%{release}
  39. BuildArch: noarch
  40. Requires: %{name} = %{version}-%{release}
  41. %description docs
  42. This package contains documentation for gcr.
  43. # compat32
  44. %package -n compat32-%{name}
  45. Summary: A library for bits of crypto UI and parsing etc.
  46. Group: System Environment/Libraries
  47. Requires: %{name} = %{version}-%{release}
  48. %description -n compat32-%{name}
  49. GCR is a library for displaying certificates, and crypto UI, accessing
  50. key stores. It also provides the viewer for crypto files on the GNOME
  51. desktop.
  52. GCK is a library for accessing PKCS#11 modules like smart cards, in a
  53. (G)object oriented way.
  54. %package -n compat32-%{name}-devel
  55. Summary: Development tools for gcr
  56. Summary(ja): gcr の開発環境
  57. Group: Development/Libraries
  58. Requires: compat32-%{name} = %{version}-%{release}
  59. Requires: %{name}-devel = %{version}-%{release}
  60. Requires: pkgconfig
  61. %description -n compat32-%{name}-devel
  62. Header files and libraries for building a extension library for the
  63. gcr.
  64. %prep
  65. %setup -q
  66. %build
  67. %configure --disable-static
  68. %{__make} %{?_smp_mflags}
  69. %install
  70. %{__rm} -rf ${RPM_BUILD_ROOT}
  71. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  72. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  73. rm -f $RPM_BUILD_ROOT%{_libdir}/libmock-test-module.so
  74. %find_lang %{name}
  75. %clean
  76. %{__rm} -rf ${RPM_BUILD_ROOT}
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. %post -n compat32-%{name} -p /sbin/ldconfig
  80. %postun -n compat32-%{name} -p /sbin/ldconfig
  81. %files -f %{name}.lang
  82. %defattr(-,root,root)
  83. %doc COPYING ChangeLog NEWS README
  84. %{_bindir}/gcr-viewer
  85. %{_libdir}/libgck-1.so.*
  86. %{_libdir}/libgcr-3.so.*
  87. %{_libdir}/libgcr-base-3.so.*
  88. %{_libdir}/libgcr-ui-3.so.*
  89. %{_libdir}/girepository-1.0/Gck-1.typelib
  90. %{_libdir}/girepository-1.0/Gcr-3.typelib
  91. %{_libdir}/girepository-1.0/GcrUi-3.typelib
  92. %{_libexecdir}/gcr-prompter
  93. %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert
  94. %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert
  95. %{_datadir}/applications/gcr-prompter.desktop
  96. %{_datadir}/applications/gcr-viewer.desktop
  97. %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
  98. %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
  99. %{_datadir}/gcr-3/ui/gcr-pkcs11-import-dialog.ui
  100. %{_datadir}/gcr-3/ui/gcr-unlock-options-widget.ui
  101. %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml
  102. %{_datadir}/icons/*/*/*
  103. %{_datadir}/mime/packages/gcr-crypto-types.xml
  104. %files devel
  105. %defattr(-,root,root)
  106. %{_includedir}/gck-1
  107. %{_includedir}/gcr-3
  108. %{_libdir}/libgck-1.so
  109. %{_libdir}/libgcr-3.so
  110. %{_libdir}/libgcr-base-3.so
  111. %{_libdir}/libgcr-ui-3.so
  112. %{_libdir}/pkgconfig/*.pc
  113. %{_datadir}/gir-1.0/Gck-1.gir
  114. %{_datadir}/gir-1.0/Gcr-3.gir
  115. %{_datadir}/gir-1.0/GcrUi-3.gir
  116. %files docs
  117. %defattr(-,root,root)
  118. %{_datadir}/gtk-doc/html/gck
  119. %{_datadir}/gtk-doc/html/gcr-3
  120. # compat32
  121. %if %{build_compat32}
  122. %files -n compat32-%{name}
  123. %defattr(-,root,root)
  124. %{_libdir}/libgck-1.so.*
  125. %{_libdir}/libgcr-3.so.*
  126. %{_libdir}/libgcr-base-3.so.*
  127. %files -n compat32-%{name}-devel
  128. %defattr(-,root,root)
  129. %{_libdir}/libgck-1.so
  130. %{_libdir}/libgcr-3.so
  131. %{_libdir}/libgcr-base-3.so
  132. %endif
  133. %changelog
  134. * Wed May 14 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1
  135. - new upstream release
  136. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1
  137. - new upstream release
  138. - add BuildRequires: libxslt
  139. * Wed Feb 19 2014 NAKAMURA Kenta <kenta@vinelinux.org> 3.10.1-3
  140. - rebuilt with libtasn1-3.4 and libgcrypt-1.6
  141. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-2
  142. - rebuild with VineSeed environment
  143. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1
  144. - new upstream release
  145. * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
  146. - new upstream release
  147. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  148. - new upstream release
  149. * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.2-1
  150. - new upstream release
  151. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.1-1
  152. - new upstream release
  153. * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.0-1
  154. - new upstream release
  155. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1-1
  156. - initial build for Vine Linux