]>
Commit | Line | Data |
---|---|---|
a7e7c597 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
e75d3188 | 4 | |
a7e7c597 | 5 | Summary: GObject and GUI library for high level crypto parsing and display |
6f3debce | 6 | Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyświetlania danych kryptograficznych |
a7e7c597 | 7 | Name: gcr |
fff9f182 | 8 | Version: 3.40.0 |
68eba5b4 | 9 | Release: 1 |
a7e7c597 MB |
10 | License: LGPL v2+ |
11 | Group: X11/Applications | |
fff9f182 JP |
12 | Source0: https://download.gnome.org/sources/gcr/3.40/%{name}-%{version}.tar.xz |
13 | # Source0-md5: fa34048b5562f80587a71d11931a7c29 | |
38e85886 | 14 | URL: https://gitlab.gnome.org/GNOME/gcr |
38e85886 | 15 | BuildRequires: gettext-tools >= 0.19.8 |
6953543d | 16 | BuildRequires: glib2-devel >= 1:2.44.0 |
9c6c6e21 | 17 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
fff9f182 | 18 | BuildRequires: gtk+3-devel >= 3.22.0 |
a7e7c597 | 19 | BuildRequires: gtk-doc >= 1.9 |
c55c8bfb | 20 | BuildRequires: libgcrypt-devel >= 1.4.5 |
a7e7c597 | 21 | BuildRequires: libtasn1-devel |
778db0bf | 22 | BuildRequires: libxslt-progs |
6953543d | 23 | BuildRequires: meson >= 0.49 |
865f213b | 24 | BuildRequires: ninja >= 1.5 |
d87ef12a | 25 | BuildRequires: p11-kit-devel >= 0.19.0 |
a7e7c597 | 26 | BuildRequires: pkgconfig |
865f213b | 27 | BuildRequires: rpm-build >= 4.6 |
83328cde | 28 | BuildRequires: rpmbuild(macros) >= 1.752 |
a7e7c597 | 29 | BuildRequires: tar >= 1:1.22 |
6953543d | 30 | BuildRequires: vala >= 2:0.20.0 |
a7e7c597 | 31 | BuildRequires: xz |
6953543d | 32 | Requires(post,postun): glib2 >= 1:2.44.0 |
a7e7c597 MB |
33 | Requires(post,postun): gtk-update-icon-cache |
34 | Requires(post,postun): shared-mime-info | |
35 | Requires(post,postun): desktop-file-utils | |
e6e82210 | 36 | Requires: %{name}-ui = %{version}-%{release} |
c4e396c1 | 37 | Requires: gnupg2 >= 2.0 |
a7e7c597 MB |
38 | Requires: hicolor-icon-theme |
39 | Conflicts: gnome-keyring < 3.3.0 | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | gcr is a library for displaying certificates, and crypto UI, accessing | |
44 | key stores. It also provides a viewer for crypto files on the GNOME | |
45 | desktop. | |
46 | ||
47 | gck is a library for accessing PKCS#11 modules like smart cards. | |
48 | ||
6f3debce JB |
49 | %description -l pl.UTF-8 |
50 | gcr to biblioteka do wyświetlania certyfikatów oraz kryptograficznego | |
51 | interfejsu użytkownika, pozwalającego na dostęp do kluczy. Zapewnia | |
52 | tekże przeglądarkę plików kryptograficznych dla środowiska GNOME. | |
53 | ||
54 | gck to biblioteka dostepu do modułów PKCS#11, takich jak karty | |
55 | procesorowe. | |
56 | ||
a7e7c597 | 57 | %package libs |
6f3debce JB |
58 | Summary: gcr and gck libraries |
59 | Summary(pl.UTF-8): Biblioteki gcr i gck | |
a7e7c597 | 60 | Group: Libraries |
6953543d | 61 | Requires: glib2 >= 1:2.44.0 |
c55c8bfb | 62 | Requires: libgcrypt >= 1.4.5 |
d87ef12a | 63 | Requires: p11-kit >= 0.19.0 |
c79ec358 | 64 | Obsoletes: gnome-keyring-libs < 3.3.0 |
a7e7c597 MB |
65 | |
66 | %description libs | |
6f3debce | 67 | This package provides gcr and gck libraries. |
a7e7c597 MB |
68 | |
69 | %description libs -l pl.UTF-8 | |
6f3debce | 70 | Ten pakiet dostarcza biblioteki gcr i gck. |
a7e7c597 MB |
71 | |
72 | %package devel | |
6f3debce JB |
73 | Summary: Header files for gcr and gck libraries |
74 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gcr i gck | |
a7e7c597 MB |
75 | Group: Development/Libraries |
76 | Requires: %{name}-libs = %{version}-%{release} | |
6953543d | 77 | Requires: glib2-devel >= 1:2.44.0 |
d87ef12a | 78 | Requires: p11-kit-devel >= 0.19.0 |
8863292a JP |
79 | Obsoletes: gcr-static < 3.36.0 |
80 | Obsoletes: gcr-ui-static < 3.36.0 | |
c79ec358 | 81 | Obsoletes: gnome-keyring-devel < 3.3.0 |
a7e7c597 MB |
82 | |
83 | %description devel | |
6f3debce | 84 | Header files for gcr and gck libraries. |
a7e7c597 MB |
85 | |
86 | %description devel -l pl.UTF-8 | |
6f3debce | 87 | Pliki nagłówkowe bibliotek gcr i gck. |
a7e7c597 | 88 | |
d87ef12a MB |
89 | %package -n vala-gcr |
90 | Summary: gcr and gck API for Vala language | |
91 | Summary(pl.UTF-8): API gcr i gck dla języka Vala | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-devel = %{version}-%{release} | |
94 | Requires: vala >= 2:0.20.0 | |
dc372bf6 | 95 | BuildArch: noarch |
d87ef12a MB |
96 | |
97 | %description -n vala-gcr | |
98 | gcr and gck API for Vala language. | |
99 | ||
100 | %description -n vala-gcr -l pl.UTF-8 | |
101 | API gcr i gck dla języka Vala. | |
102 | ||
e6e82210 JB |
103 | %package ui |
104 | Summary: gcr UI library | |
105 | Summary(pl.UTF-8): Biblioteka interfejsu użytkownika gcr | |
106 | Group: X11/Libraries | |
107 | Requires: %{name}-libs = %{version}-%{release} | |
fff9f182 | 108 | Requires: gtk+3 >= 3.22.0 |
e6e82210 JB |
109 | |
110 | %description ui | |
111 | gcr UI library. | |
112 | ||
113 | %description ui -l pl.UTF-8 | |
114 | Biblioteka interfejsu użytkownika gcr. | |
115 | ||
116 | %package ui-devel | |
117 | Summary: Header files for gcr-ui library | |
118 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gcr-ui | |
119 | Group: X11/Development/Libraries | |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | Requires: %{name}-ui = %{version}-%{release} | |
fff9f182 | 122 | Requires: gtk+3-devel >= 3.22.0 |
e6e82210 JB |
123 | |
124 | %description ui-devel | |
125 | Header files for gcr-ui library. | |
126 | ||
127 | %description ui-devel -l pl.UTF-8 | |
128 | Pliki nagłówkowe biblioteki gcr-ui. | |
129 | ||
e6e82210 JB |
130 | %package -n vala-gcr-ui |
131 | Summary: gcr-ui API for Vala language | |
132 | Summary(pl.UTF-8): API gcr-ui dla języka Vala | |
133 | Group: X11/Development/Libraries | |
134 | Requires: %{name}-ui-devel = %{version}-%{release} | |
135 | Requires: vala-gcr = %{version}-%{release} | |
dc372bf6 | 136 | BuildArch: noarch |
e6e82210 JB |
137 | |
138 | %description -n vala-gcr-ui | |
139 | gcr-ui API for Vala language. | |
140 | ||
141 | %description -n vala-gcr-ui -l pl.UTF-8 | |
142 | API gcr-ui dla języka Vala. | |
143 | ||
144 | %package apidocs | |
145 | Summary: gcr and gck API documentation | |
146 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
147 | Group: Documentation | |
148 | Requires: gtk-doc-common | |
149 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
dc372bf6 | 150 | BuildArch: noarch |
e6e82210 JB |
151 | |
152 | %description apidocs | |
153 | API and gck documentation for gcr library. | |
154 | ||
155 | %description apidocs -l pl.UTF-8 | |
156 | Dokumentacja API bibliotek gcr i gck. | |
157 | ||
a7e7c597 MB |
158 | %prep |
159 | %setup -q | |
160 | ||
161 | %build | |
6953543d | 162 | %meson build \ |
fff9f182 | 163 | -Dgpg_path=%{__gpg} \ |
6953543d JP |
164 | -Dgtk-doc=%{__true_false apidocs} |
165 | ||
166 | %ninja_build -C build | |
a7e7c597 MB |
167 | |
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
6953543d | 171 | %ninja_install -C build |
a7e7c597 MB |
172 | |
173 | %find_lang %{name} | |
174 | ||
175 | %clean | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
178 | %post | |
179 | %glib_compile_schemas | |
180 | %update_icon_cache hicolor | |
181 | %update_mime_database | |
182 | %update_desktop_database_post | |
183 | ||
184 | %postun | |
185 | %glib_compile_schemas | |
186 | %update_icon_cache hicolor | |
187 | %update_mime_database | |
188 | %update_desktop_database_postun | |
189 | ||
6f3debce | 190 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
191 | %postun libs -p /sbin/ldconfig |
192 | ||
e6e82210 JB |
193 | %post ui -p /sbin/ldconfig |
194 | %postun ui -p /sbin/ldconfig | |
195 | ||
a7e7c597 MB |
196 | %files -f %{name}.lang |
197 | %defattr(644,root,root,755) | |
fff9f182 | 198 | %doc CONTRIBUTING.md NEWS README.md |
a7e7c597 MB |
199 | %attr(755,root,root) %{_bindir}/gcr-viewer |
200 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
68eba5b4 | 201 | %attr(755,root,root) %{_libexecdir}/gcr-ssh-askpass |
a7e7c597 MB |
202 | %{_desktopdir}/gcr-prompter.desktop |
203 | %{_desktopdir}/gcr-viewer.desktop | |
204 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
205 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
206 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
207 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
a7e7c597 MB |
208 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml |
209 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
e6e82210 | 210 | %{_iconsdir}/hicolor/*x*/apps/gcr-*.png |
a7e7c597 MB |
211 | |
212 | %files libs | |
213 | %defattr(644,root,root,755) | |
214 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
215 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
a7e7c597 MB |
216 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* |
217 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
218 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
219 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
220 | ||
221 | %files devel | |
222 | %defattr(644,root,root,755) | |
223 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
a7e7c597 MB |
224 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so |
225 | %{_datadir}/gir-1.0/Gck-1.gir | |
226 | %{_datadir}/gir-1.0/Gcr-3.gir | |
227 | %{_includedir}/gck-1 | |
e6e82210 JB |
228 | %dir %{_includedir}/gcr-3 |
229 | %dir %{_includedir}/gcr-3/gcr | |
230 | %{_includedir}/gcr-3/gcr/gcr-*.h | |
a7e7c597 | 231 | %{_pkgconfigdir}/gck-1.pc |
a7e7c597 MB |
232 | %{_pkgconfigdir}/gcr-base-3.pc |
233 | ||
d87ef12a MB |
234 | %files -n vala-gcr |
235 | %defattr(644,root,root,755) | |
236 | %{_datadir}/vala/vapi/gck-1.deps | |
237 | %{_datadir}/vala/vapi/gck-1.vapi | |
238 | %{_datadir}/vala/vapi/gcr-3.deps | |
239 | %{_datadir}/vala/vapi/gcr-3.vapi | |
e6e82210 | 240 | %{_datadir}/vala/vapi/pkcs11.vapi |
e6e82210 JB |
241 | |
242 | %files ui | |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
246 | %{_libdir}/girepository-1.0/GcrUi-3.typelib | |
247 | ||
248 | %files ui-devel | |
249 | %defattr(644,root,root,755) | |
250 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so | |
251 | %{_datadir}/gir-1.0/GcrUi-3.gir | |
252 | %{_includedir}/gcr-3/gcr/gcr.h | |
253 | %{_includedir}/gcr-3/ui | |
254 | %{_pkgconfigdir}/gcr-3.pc | |
255 | %{_pkgconfigdir}/gcr-ui-3.pc | |
256 | ||
e6e82210 JB |
257 | %files -n vala-gcr-ui |
258 | %defattr(644,root,root,755) | |
d87ef12a MB |
259 | %{_datadir}/vala/vapi/gcr-ui-3.deps |
260 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
e6e82210 JB |
261 | |
262 | %if %{with apidocs} | |
263 | %files apidocs | |
264 | %defattr(644,root,root,755) | |
265 | %{_gtkdocdir}/gck | |
6953543d | 266 | %{_gtkdocdir}/gcr |
d87ef12a | 267 | %endif |