gcr-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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.4.1
  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.4/%{name}-%{version}.tar.xz
  10. BuildRequires: gtk3-devel
  11. BuildRequires: p11-kit-devel
  12. BuildRequires: libtasn1-devel
  13. BuildRequires: libgcrypt-devel
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. GCR is a library for displaying certificates, and crypto UI, accessing
  20. key stores. It also provides the viewer for crypto files on the GNOME
  21. desktop.
  22. GCK is a library for accessing PKCS#11 modules like smart cards, in a
  23. (G)object oriented way.
  24. %package devel
  25. Summary: Development tools for gcr
  26. Summary(ja): gcr の開発環境
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: pkgconfig
  30. %description devel
  31. Header files and libraries for building a extension library for the
  32. gcr.
  33. %package doc
  34. Summary: Documentation for gcr
  35. Summary(ja): gcr 用のドキュメント
  36. Group: Documentation
  37. Requires: %{name} = %{version}-%{release}
  38. BuildArch: noarch
  39. %description doc
  40. This package contains documentation for gcr.
  41. # compat32
  42. %package -n compat32-%{name}
  43. Summary: A library for bits of crypto UI and parsing etc.
  44. Group: System Environment/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. %description -n compat32-%{name}
  47. GCR is a library for displaying certificates, and crypto UI, accessing
  48. key stores. It also provides the viewer for crypto files on the GNOME
  49. desktop.
  50. GCK is a library for accessing PKCS#11 modules like smart cards, in a
  51. (G)object oriented way.
  52. %package -n compat32-%{name}-devel
  53. Summary: Development tools for gcr
  54. Summary(ja): gcr の開発環境
  55. Group: Development/Libraries
  56. Requires: compat32-%{name} = %{version}-%{release}
  57. Requires: %{name}-devel = %{version}-%{release}
  58. Requires: pkgconfig
  59. %description -n compat32-%{name}-devel
  60. Header files and libraries for building a extension library for the
  61. gcr.
  62. %prep
  63. %setup -q
  64. %build
  65. %configure --disable-static
  66. %{__make} %{?_smp_mflags}
  67. %install
  68. %{__rm} -rf ${RPM_BUILD_ROOT}
  69. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  70. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  71. rm -f $RPM_BUILD_ROOT%{_libdir}/libmock-test-module.so
  72. %find_lang %{name}
  73. %clean
  74. %{__rm} -rf ${RPM_BUILD_ROOT}
  75. %post -p /sbin/ldconfig
  76. %postun -p /sbin/ldconfig
  77. %post -n compat32-%{name} -p /sbin/ldconfig
  78. %postun -n compat32-%{name} -p /sbin/ldconfig
  79. %files -f %{name}.lang
  80. %defattr(-,root,root)
  81. %doc COPYING ChangeLog NEWS README
  82. %{_bindir}/gcr-viewer
  83. %{_libdir}/libgck-1.so.*
  84. %{_libdir}/libgcr-3.so.*
  85. %{_libdir}/libgcr-base-3.so.*
  86. %{_libdir}/girepository-1.0/Gck-1.typelib
  87. %{_libdir}/girepository-1.0/Gcr-3.typelib
  88. %{_libexecdir}/gcr-prompter
  89. %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert
  90. %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert
  91. %{_datadir}/applications/gcr-prompter.desktop
  92. %{_datadir}/applications/gcr-viewer.desktop
  93. %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
  94. %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
  95. %{_datadir}/gcr-3/ui/gcr-pkcs11-import-dialog.ui
  96. %{_datadir}/gcr-3/ui/gcr-unlock-options-widget.ui
  97. %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml
  98. %{_datadir}/icons/*/*/*
  99. %{_datadir}/mime/packages/gcr-crypto-types.xml
  100. %files devel
  101. %defattr(-,root,root)
  102. %{_includedir}/gck-1
  103. %{_includedir}/gcr-3
  104. %{_libdir}/libgck-1.so
  105. %{_libdir}/libgcr-3.so
  106. %{_libdir}/libgcr-base-3.so
  107. %{_libdir}/pkgconfig/*.pc
  108. %{_datadir}/gir-1.0/Gck-1.gir
  109. %{_datadir}/gir-1.0/Gcr-3.gir
  110. %files doc
  111. %defattr(-,root,root)
  112. %{_datadir}/gtk-doc/html/gck
  113. %{_datadir}/gtk-doc/html/gcr-3
  114. # compat32
  115. %if %{build_compat32}
  116. %files -n compat32-%{name}
  117. %defattr(-,root,root)
  118. %{_libdir}/libgck-1.so.*
  119. %{_libdir}/libgcr-3.so.*
  120. %{_libdir}/libgcr-base-3.so.*
  121. %files -n compat32-%{name}-devel
  122. %defattr(-,root,root)
  123. %{_libdir}/libgck-1.so
  124. %{_libdir}/libgcr-3.so
  125. %{_libdir}/libgcr-base-3.so
  126. %{_libdir}/pkgconfig/*.pc
  127. %endif
  128. %changelog
  129. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1-1
  130. - initial build for Vine Linux