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