]>
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 |
fff9f182 | 8 | Version: 3.40.0 |
68eba5b4 | 9 | Release: 1 |
a7e7c597 MB |
10 | License: LGPL v2+ |
11 | Group: X11/Applications | |
fff9f182 JP |
12 | Source0: https://download.gnome.org/sources/gcr/3.40/%{name}-%{version}.tar.xz |
13 | # Source0-md5: fa34048b5562f80587a71d11931a7c29 | |
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 |
a7e7c597 | 21 | BuildRequires: libtasn1-devel |
778db0bf | 22 | BuildRequires: libxslt-progs |
6953543d JP |
23 | BuildRequires: meson >= 0.49 |
24 | BuildRequires: ninja | |
d87ef12a | 25 | BuildRequires: p11-kit-devel >= 0.19.0 |
a7e7c597 | 26 | BuildRequires: pkgconfig |
83328cde | 27 | BuildRequires: rpmbuild(macros) >= 1.752 |
a7e7c597 | 28 | BuildRequires: tar >= 1:1.22 |
6953543d | 29 | BuildRequires: vala >= 2:0.20.0 |
a7e7c597 | 30 | BuildRequires: xz |
6953543d | 31 | Requires(post,postun): glib2 >= 1:2.44.0 |
a7e7c597 MB |
32 | Requires(post,postun): gtk-update-icon-cache |
33 | Requires(post,postun): shared-mime-info | |
34 | Requires(post,postun): desktop-file-utils | |
e6e82210 | 35 | Requires: %{name}-ui = %{version}-%{release} |
c4e396c1 | 36 | Requires: gnupg2 >= 2.0 |
a7e7c597 MB |
37 | Requires: hicolor-icon-theme |
38 | Conflicts: gnome-keyring < 3.3.0 | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | gcr is a library for displaying certificates, and crypto UI, accessing | |
43 | key stores. It also provides a viewer for crypto files on the GNOME | |
44 | desktop. | |
45 | ||
46 | gck is a library for accessing PKCS#11 modules like smart cards. | |
47 | ||
6f3debce JB |
48 | %description -l pl.UTF-8 |
49 | gcr to biblioteka do wyświetlania certyfikatów oraz kryptograficznego | |
50 | interfejsu użytkownika, pozwalającego na dostęp do kluczy. Zapewnia | |
51 | tekże przeglądarkę plików kryptograficznych dla środowiska GNOME. | |
52 | ||
53 | gck to biblioteka dostepu do modułów PKCS#11, takich jak karty | |
54 | procesorowe. | |
55 | ||
a7e7c597 | 56 | %package libs |
6f3debce JB |
57 | Summary: gcr and gck libraries |
58 | Summary(pl.UTF-8): Biblioteki gcr i gck | |
a7e7c597 | 59 | Group: Libraries |
6953543d | 60 | Requires: glib2 >= 1:2.44.0 |
c55c8bfb | 61 | Requires: libgcrypt >= 1.4.5 |
d87ef12a | 62 | Requires: p11-kit >= 0.19.0 |
c79ec358 | 63 | Obsoletes: gnome-keyring-libs < 3.3.0 |
a7e7c597 MB |
64 | |
65 | %description libs | |
6f3debce | 66 | This package provides gcr and gck libraries. |
a7e7c597 MB |
67 | |
68 | %description libs -l pl.UTF-8 | |
6f3debce | 69 | Ten pakiet dostarcza biblioteki gcr i gck. |
a7e7c597 MB |
70 | |
71 | %package devel | |
6f3debce JB |
72 | Summary: Header files for gcr and gck libraries |
73 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gcr i gck | |
a7e7c597 MB |
74 | Group: Development/Libraries |
75 | Requires: %{name}-libs = %{version}-%{release} | |
6953543d | 76 | Requires: glib2-devel >= 1:2.44.0 |
d87ef12a | 77 | Requires: p11-kit-devel >= 0.19.0 |
8863292a JP |
78 | Obsoletes: gcr-static < 3.36.0 |
79 | Obsoletes: gcr-ui-static < 3.36.0 | |
c79ec358 | 80 | Obsoletes: gnome-keyring-devel < 3.3.0 |
a7e7c597 MB |
81 | |
82 | %description devel | |
6f3debce | 83 | Header files for gcr and gck libraries. |
a7e7c597 MB |
84 | |
85 | %description devel -l pl.UTF-8 | |
6f3debce | 86 | Pliki nagłówkowe bibliotek gcr i gck. |
a7e7c597 | 87 | |
d87ef12a MB |
88 | %package -n vala-gcr |
89 | Summary: gcr and gck API for Vala language | |
90 | Summary(pl.UTF-8): API gcr i gck dla języka Vala | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: vala >= 2:0.20.0 | |
dc372bf6 | 94 | BuildArch: noarch |
d87ef12a MB |
95 | |
96 | %description -n vala-gcr | |
97 | gcr and gck API for Vala language. | |
98 | ||
99 | %description -n vala-gcr -l pl.UTF-8 | |
100 | API gcr i gck dla języka Vala. | |
101 | ||
e6e82210 JB |
102 | %package ui |
103 | Summary: gcr UI library | |
104 | Summary(pl.UTF-8): Biblioteka interfejsu użytkownika gcr | |
105 | Group: X11/Libraries | |
106 | Requires: %{name}-libs = %{version}-%{release} | |
fff9f182 | 107 | Requires: gtk+3 >= 3.22.0 |
e6e82210 JB |
108 | |
109 | %description ui | |
110 | gcr UI library. | |
111 | ||
112 | %description ui -l pl.UTF-8 | |
113 | Biblioteka interfejsu użytkownika gcr. | |
114 | ||
115 | %package ui-devel | |
116 | Summary: Header files for gcr-ui library | |
117 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gcr-ui | |
118 | Group: X11/Development/Libraries | |
119 | Requires: %{name}-devel = %{version}-%{release} | |
120 | Requires: %{name}-ui = %{version}-%{release} | |
fff9f182 | 121 | Requires: gtk+3-devel >= 3.22.0 |
e6e82210 JB |
122 | |
123 | %description ui-devel | |
124 | Header files for gcr-ui library. | |
125 | ||
126 | %description ui-devel -l pl.UTF-8 | |
127 | Pliki nagłówkowe biblioteki gcr-ui. | |
128 | ||
e6e82210 JB |
129 | %package -n vala-gcr-ui |
130 | Summary: gcr-ui API for Vala language | |
131 | Summary(pl.UTF-8): API gcr-ui dla języka Vala | |
132 | Group: X11/Development/Libraries | |
133 | Requires: %{name}-ui-devel = %{version}-%{release} | |
134 | Requires: vala-gcr = %{version}-%{release} | |
dc372bf6 | 135 | BuildArch: noarch |
e6e82210 JB |
136 | |
137 | %description -n vala-gcr-ui | |
138 | gcr-ui API for Vala language. | |
139 | ||
140 | %description -n vala-gcr-ui -l pl.UTF-8 | |
141 | API gcr-ui dla języka Vala. | |
142 | ||
143 | %package apidocs | |
144 | Summary: gcr and gck API documentation | |
145 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
146 | Group: Documentation | |
147 | Requires: gtk-doc-common | |
148 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
dc372bf6 | 149 | BuildArch: noarch |
e6e82210 JB |
150 | |
151 | %description apidocs | |
152 | API and gck documentation for gcr library. | |
153 | ||
154 | %description apidocs -l pl.UTF-8 | |
155 | Dokumentacja API bibliotek gcr i gck. | |
156 | ||
a7e7c597 MB |
157 | %prep |
158 | %setup -q | |
159 | ||
160 | %build | |
6953543d | 161 | %meson build \ |
fff9f182 | 162 | -Dgpg_path=%{__gpg} \ |
6953543d JP |
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) | |
fff9f182 | 197 | %doc CONTRIBUTING.md NEWS README.md |
a7e7c597 MB |
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 |