]>
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 | |
52e6af56 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/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 |
6953543d | 28 | BuildRequires: rpmbuild(macros) >= 1.736 |
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 | |
c4e396c1 | 95 | %if "%{_rpmversion}" >= "4.6" |
e75d3188 ER |
96 | BuildArch: noarch |
97 | %endif | |
d87ef12a MB |
98 | |
99 | %description -n vala-gcr | |
100 | gcr and gck API for Vala language. | |
101 | ||
102 | %description -n vala-gcr -l pl.UTF-8 | |
103 | API gcr i gck dla języka Vala. | |
104 | ||
e6e82210 JB |
105 | %package ui |
106 | Summary: gcr UI library | |
107 | Summary(pl.UTF-8): Biblioteka interfejsu użytkownika gcr | |
108 | Group: X11/Libraries | |
109 | Requires: %{name}-libs = %{version}-%{release} | |
25e6bb2a | 110 | Requires: gtk+3 >= 3.12.0 |
e6e82210 JB |
111 | |
112 | %description ui | |
113 | gcr UI library. | |
114 | ||
115 | %description ui -l pl.UTF-8 | |
116 | Biblioteka interfejsu użytkownika gcr. | |
117 | ||
118 | %package ui-devel | |
119 | Summary: Header files for gcr-ui library | |
120 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gcr-ui | |
121 | Group: X11/Development/Libraries | |
122 | Requires: %{name}-devel = %{version}-%{release} | |
123 | Requires: %{name}-ui = %{version}-%{release} | |
25e6bb2a | 124 | Requires: gtk+3-devel >= 3.12.0 |
e6e82210 JB |
125 | |
126 | %description ui-devel | |
127 | Header files for gcr-ui library. | |
128 | ||
129 | %description ui-devel -l pl.UTF-8 | |
130 | Pliki nagłówkowe biblioteki gcr-ui. | |
131 | ||
e6e82210 JB |
132 | %package -n vala-gcr-ui |
133 | Summary: gcr-ui API for Vala language | |
134 | Summary(pl.UTF-8): API gcr-ui dla języka Vala | |
135 | Group: X11/Development/Libraries | |
136 | Requires: %{name}-ui-devel = %{version}-%{release} | |
137 | Requires: vala-gcr = %{version}-%{release} | |
c4e396c1 JB |
138 | %if "%{_rpmversion}" >= "4.6" |
139 | BuildArch: noarch | |
140 | %endif | |
e6e82210 JB |
141 | |
142 | %description -n vala-gcr-ui | |
143 | gcr-ui API for Vala language. | |
144 | ||
145 | %description -n vala-gcr-ui -l pl.UTF-8 | |
146 | API gcr-ui dla języka Vala. | |
147 | ||
148 | %package apidocs | |
149 | Summary: gcr and gck API documentation | |
150 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
151 | Group: Documentation | |
152 | Requires: gtk-doc-common | |
153 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
c4e396c1 | 154 | %if "%{_rpmversion}" >= "4.6" |
148217ce ER |
155 | BuildArch: noarch |
156 | %endif | |
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 JP |
168 | %meson build \ |
169 | -Dgtk-doc=%{__true_false apidocs} | |
170 | ||
171 | %ninja_build -C build | |
a7e7c597 MB |
172 | |
173 | %install | |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
6953543d | 176 | %ninja_install -C build |
a7e7c597 MB |
177 | |
178 | %find_lang %{name} | |
179 | ||
180 | %clean | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %post | |
184 | %glib_compile_schemas | |
185 | %update_icon_cache hicolor | |
186 | %update_mime_database | |
187 | %update_desktop_database_post | |
188 | ||
189 | %postun | |
190 | %glib_compile_schemas | |
191 | %update_icon_cache hicolor | |
192 | %update_mime_database | |
193 | %update_desktop_database_postun | |
194 | ||
6f3debce | 195 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
196 | %postun libs -p /sbin/ldconfig |
197 | ||
e6e82210 JB |
198 | %post ui -p /sbin/ldconfig |
199 | %postun ui -p /sbin/ldconfig | |
200 | ||
a7e7c597 MB |
201 | %files -f %{name}.lang |
202 | %defattr(644,root,root,755) | |
203 | %doc AUTHORS ChangeLog HACKING NEWS README | |
204 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
205 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
68eba5b4 | 206 | %attr(755,root,root) %{_libexecdir}/gcr-ssh-askpass |
a7e7c597 MB |
207 | %{_desktopdir}/gcr-prompter.desktop |
208 | %{_desktopdir}/gcr-viewer.desktop | |
209 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
210 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
211 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
212 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
a7e7c597 MB |
213 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml |
214 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
e6e82210 | 215 | %{_iconsdir}/hicolor/*x*/apps/gcr-*.png |
a7e7c597 MB |
216 | |
217 | %files libs | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
220 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
a7e7c597 MB |
221 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* |
222 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
223 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
224 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
225 | ||
226 | %files devel | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
a7e7c597 MB |
229 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so |
230 | %{_datadir}/gir-1.0/Gck-1.gir | |
231 | %{_datadir}/gir-1.0/Gcr-3.gir | |
232 | %{_includedir}/gck-1 | |
e6e82210 JB |
233 | %dir %{_includedir}/gcr-3 |
234 | %dir %{_includedir}/gcr-3/gcr | |
235 | %{_includedir}/gcr-3/gcr/gcr-*.h | |
a7e7c597 | 236 | %{_pkgconfigdir}/gck-1.pc |
a7e7c597 MB |
237 | %{_pkgconfigdir}/gcr-base-3.pc |
238 | ||
d87ef12a MB |
239 | %files -n vala-gcr |
240 | %defattr(644,root,root,755) | |
241 | %{_datadir}/vala/vapi/gck-1.deps | |
242 | %{_datadir}/vala/vapi/gck-1.vapi | |
243 | %{_datadir}/vala/vapi/gcr-3.deps | |
244 | %{_datadir}/vala/vapi/gcr-3.vapi | |
e6e82210 | 245 | %{_datadir}/vala/vapi/pkcs11.vapi |
e6e82210 JB |
246 | |
247 | %files ui | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
251 | %{_libdir}/girepository-1.0/GcrUi-3.typelib | |
252 | ||
253 | %files ui-devel | |
254 | %defattr(644,root,root,755) | |
255 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so | |
256 | %{_datadir}/gir-1.0/GcrUi-3.gir | |
257 | %{_includedir}/gcr-3/gcr/gcr.h | |
258 | %{_includedir}/gcr-3/ui | |
259 | %{_pkgconfigdir}/gcr-3.pc | |
260 | %{_pkgconfigdir}/gcr-ui-3.pc | |
261 | ||
e6e82210 JB |
262 | %files -n vala-gcr-ui |
263 | %defattr(644,root,root,755) | |
d87ef12a MB |
264 | %{_datadir}/vala/vapi/gcr-ui-3.deps |
265 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
e6e82210 JB |
266 | |
267 | %if %{with apidocs} | |
268 | %files apidocs | |
269 | %defattr(644,root,root,755) | |
270 | %{_gtkdocdir}/gck | |
6953543d | 271 | %{_gtkdocdir}/gcr |
d87ef12a | 272 | %endif |