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