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