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