]>
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 |
70d045a4 | 8 | Version: 3.38.1 |
68eba5b4 | 9 | Release: 1 |
a7e7c597 MB |
10 | License: LGPL v2+ |
11 | Group: X11/Applications | |
83328cde | 12 | Source0: https://download.gnome.org/sources/gcr/3.38/%{name}-%{version}.tar.xz |
70d045a4 | 13 | # Source0-md5: e7f9e86da73b7308aae16cac0f392721 |
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 |
c4e396c1 | 17 | BuildRequires: gnupg2 >= 2.0 |
9c6c6e21 | 18 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
25e6bb2a | 19 | BuildRequires: gtk+3-devel >= 3.12.0 |
a7e7c597 | 20 | BuildRequires: gtk-doc >= 1.9 |
c55c8bfb | 21 | BuildRequires: libgcrypt-devel >= 1.4.5 |
a7e7c597 | 22 | BuildRequires: libtasn1-devel |
778db0bf | 23 | BuildRequires: libxslt-progs |
6953543d JP |
24 | BuildRequires: meson >= 0.49 |
25 | BuildRequires: ninja | |
d87ef12a | 26 | BuildRequires: p11-kit-devel >= 0.19.0 |
a7e7c597 | 27 | BuildRequires: pkgconfig |
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} | |
25e6bb2a | 108 | Requires: gtk+3 >= 3.12.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} | |
25e6bb2a | 122 | Requires: gtk+3-devel >= 3.12.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 JP |
162 | %meson build \ |
163 | -Dgtk-doc=%{__true_false apidocs} | |
164 | ||
165 | %ninja_build -C build | |
a7e7c597 MB |
166 | |
167 | %install | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
6953543d | 170 | %ninja_install -C build |
a7e7c597 MB |
171 | |
172 | %find_lang %{name} | |
173 | ||
174 | %clean | |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
177 | %post | |
178 | %glib_compile_schemas | |
179 | %update_icon_cache hicolor | |
180 | %update_mime_database | |
181 | %update_desktop_database_post | |
182 | ||
183 | %postun | |
184 | %glib_compile_schemas | |
185 | %update_icon_cache hicolor | |
186 | %update_mime_database | |
187 | %update_desktop_database_postun | |
188 | ||
6f3debce | 189 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
190 | %postun libs -p /sbin/ldconfig |
191 | ||
e6e82210 JB |
192 | %post ui -p /sbin/ldconfig |
193 | %postun ui -p /sbin/ldconfig | |
194 | ||
a7e7c597 MB |
195 | %files -f %{name}.lang |
196 | %defattr(644,root,root,755) | |
197 | %doc AUTHORS ChangeLog HACKING NEWS README | |
198 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
199 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
68eba5b4 | 200 | %attr(755,root,root) %{_libexecdir}/gcr-ssh-askpass |
a7e7c597 MB |
201 | %{_desktopdir}/gcr-prompter.desktop |
202 | %{_desktopdir}/gcr-viewer.desktop | |
203 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
204 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
205 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
206 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
a7e7c597 MB |
207 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml |
208 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
e6e82210 | 209 | %{_iconsdir}/hicolor/*x*/apps/gcr-*.png |
a7e7c597 MB |
210 | |
211 | %files libs | |
212 | %defattr(644,root,root,755) | |
213 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
214 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
a7e7c597 MB |
215 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* |
216 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
217 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
218 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
219 | ||
220 | %files devel | |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
a7e7c597 MB |
223 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so |
224 | %{_datadir}/gir-1.0/Gck-1.gir | |
225 | %{_datadir}/gir-1.0/Gcr-3.gir | |
226 | %{_includedir}/gck-1 | |
e6e82210 JB |
227 | %dir %{_includedir}/gcr-3 |
228 | %dir %{_includedir}/gcr-3/gcr | |
229 | %{_includedir}/gcr-3/gcr/gcr-*.h | |
a7e7c597 | 230 | %{_pkgconfigdir}/gck-1.pc |
a7e7c597 MB |
231 | %{_pkgconfigdir}/gcr-base-3.pc |
232 | ||
d87ef12a MB |
233 | %files -n vala-gcr |
234 | %defattr(644,root,root,755) | |
235 | %{_datadir}/vala/vapi/gck-1.deps | |
236 | %{_datadir}/vala/vapi/gck-1.vapi | |
237 | %{_datadir}/vala/vapi/gcr-3.deps | |
238 | %{_datadir}/vala/vapi/gcr-3.vapi | |
e6e82210 | 239 | %{_datadir}/vala/vapi/pkcs11.vapi |
e6e82210 JB |
240 | |
241 | %files ui | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* | |
244 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
245 | %{_libdir}/girepository-1.0/GcrUi-3.typelib | |
246 | ||
247 | %files ui-devel | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so | |
250 | %{_datadir}/gir-1.0/GcrUi-3.gir | |
251 | %{_includedir}/gcr-3/gcr/gcr.h | |
252 | %{_includedir}/gcr-3/ui | |
253 | %{_pkgconfigdir}/gcr-3.pc | |
254 | %{_pkgconfigdir}/gcr-ui-3.pc | |
255 | ||
e6e82210 JB |
256 | %files -n vala-gcr-ui |
257 | %defattr(644,root,root,755) | |
d87ef12a MB |
258 | %{_datadir}/vala/vapi/gcr-ui-3.deps |
259 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
e6e82210 JB |
260 | |
261 | %if %{with apidocs} | |
262 | %files apidocs | |
263 | %defattr(644,root,root,755) | |
264 | %{_gtkdocdir}/gck | |
6953543d | 265 | %{_gtkdocdir}/gcr |
d87ef12a | 266 | %endif |