]>
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 |
6953543d | 8 | Version: 3.36.0 |
68eba5b4 | 9 | Release: 1 |
a7e7c597 MB |
10 | License: LGPL v2+ |
11 | Group: X11/Applications | |
6953543d JP |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.36/%{name}-%{version}.tar.xz |
13 | # Source0-md5: adc65563b6b458507b9a578a8b68fb61 | |
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 |
a7e7c597 | 17 | BuildRequires: gnupg |
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} |
a7e7c597 MB |
37 | Requires: gnupg |
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 | |
e75d3188 ER |
95 | %if "%{_rpmversion}" >= "5" |
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} | |
138 | ||
139 | %description -n vala-gcr-ui | |
140 | gcr-ui API for Vala language. | |
141 | ||
142 | %description -n vala-gcr-ui -l pl.UTF-8 | |
143 | API gcr-ui dla języka Vala. | |
144 | ||
145 | %package apidocs | |
146 | Summary: gcr and gck API documentation | |
147 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
148 | Group: Documentation | |
149 | Requires: gtk-doc-common | |
150 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
148217ce ER |
151 | %if "%{_rpmversion}" >= "5" |
152 | BuildArch: noarch | |
153 | %endif | |
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 JP |
165 | %meson build \ |
166 | -Dgtk-doc=%{__true_false apidocs} | |
167 | ||
168 | %ninja_build -C build | |
a7e7c597 MB |
169 | |
170 | %install | |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
6953543d | 173 | %ninja_install -C build |
a7e7c597 MB |
174 | |
175 | %find_lang %{name} | |
176 | ||
177 | %clean | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %post | |
181 | %glib_compile_schemas | |
182 | %update_icon_cache hicolor | |
183 | %update_mime_database | |
184 | %update_desktop_database_post | |
185 | ||
186 | %postun | |
187 | %glib_compile_schemas | |
188 | %update_icon_cache hicolor | |
189 | %update_mime_database | |
190 | %update_desktop_database_postun | |
191 | ||
6f3debce | 192 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
193 | %postun libs -p /sbin/ldconfig |
194 | ||
e6e82210 JB |
195 | %post ui -p /sbin/ldconfig |
196 | %postun ui -p /sbin/ldconfig | |
197 | ||
a7e7c597 MB |
198 | %files -f %{name}.lang |
199 | %defattr(644,root,root,755) | |
200 | %doc AUTHORS ChangeLog HACKING NEWS README | |
201 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
202 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
68eba5b4 | 203 | %attr(755,root,root) %{_libexecdir}/gcr-ssh-askpass |
a7e7c597 MB |
204 | %{_desktopdir}/gcr-prompter.desktop |
205 | %{_desktopdir}/gcr-viewer.desktop | |
206 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
207 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
208 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
209 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
a7e7c597 MB |
210 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml |
211 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
e6e82210 | 212 | %{_iconsdir}/hicolor/*x*/apps/gcr-*.png |
a7e7c597 MB |
213 | |
214 | %files libs | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
a7e7c597 MB |
218 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* |
219 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
220 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
221 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
222 | ||
223 | %files devel | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
a7e7c597 MB |
226 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so |
227 | %{_datadir}/gir-1.0/Gck-1.gir | |
228 | %{_datadir}/gir-1.0/Gcr-3.gir | |
229 | %{_includedir}/gck-1 | |
e6e82210 JB |
230 | %dir %{_includedir}/gcr-3 |
231 | %dir %{_includedir}/gcr-3/gcr | |
232 | %{_includedir}/gcr-3/gcr/gcr-*.h | |
a7e7c597 | 233 | %{_pkgconfigdir}/gck-1.pc |
a7e7c597 MB |
234 | %{_pkgconfigdir}/gcr-base-3.pc |
235 | ||
d87ef12a MB |
236 | %files -n vala-gcr |
237 | %defattr(644,root,root,755) | |
238 | %{_datadir}/vala/vapi/gck-1.deps | |
239 | %{_datadir}/vala/vapi/gck-1.vapi | |
240 | %{_datadir}/vala/vapi/gcr-3.deps | |
241 | %{_datadir}/vala/vapi/gcr-3.vapi | |
e6e82210 | 242 | %{_datadir}/vala/vapi/pkcs11.vapi |
e6e82210 JB |
243 | |
244 | %files ui | |
245 | %defattr(644,root,root,755) | |
246 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
248 | %{_libdir}/girepository-1.0/GcrUi-3.typelib | |
249 | ||
250 | %files ui-devel | |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so | |
253 | %{_datadir}/gir-1.0/GcrUi-3.gir | |
254 | %{_includedir}/gcr-3/gcr/gcr.h | |
255 | %{_includedir}/gcr-3/ui | |
256 | %{_pkgconfigdir}/gcr-3.pc | |
257 | %{_pkgconfigdir}/gcr-ui-3.pc | |
258 | ||
e6e82210 JB |
259 | %files -n vala-gcr-ui |
260 | %defattr(644,root,root,755) | |
d87ef12a MB |
261 | %{_datadir}/vala/vapi/gcr-ui-3.deps |
262 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
e6e82210 JB |
263 | |
264 | %if %{with apidocs} | |
265 | %files apidocs | |
266 | %defattr(644,root,root,755) | |
267 | %{_gtkdocdir}/gck | |
6953543d | 268 | %{_gtkdocdir}/gcr |
d87ef12a | 269 | %endif |