]>
Commit | Line | Data |
---|---|---|
a7e7c597 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
d87ef12a | 4 | %bcond_without vala # do not build Vala API |
a7e7c597 | 5 | %bcond_without static_libs # don't build static libraries |
e75d3188 | 6 | |
a7e7c597 | 7 | Summary: GObject and GUI library for high level crypto parsing and display |
6f3debce | 8 | Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyświetlania danych kryptograficznych |
a7e7c597 | 9 | Name: gcr |
82601c97 | 10 | Version: 3.20.0 |
e75d3188 | 11 | Release: 2 |
a7e7c597 MB |
12 | License: LGPL v2+ |
13 | Group: X11/Applications | |
82601c97 MB |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.20/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 4314bf89eac293dd0a9d806593ff1b35 | |
a7e7c597 MB |
16 | URL: http://www.gnome.org/ |
17 | BuildRequires: autoconf >= 2.63 | |
18 | BuildRequires: automake >= 1:1.11 | |
615cae16 | 19 | BuildRequires: gettext-tools |
c55c8bfb | 20 | BuildRequires: glib2-devel >= 1:2.38.0 |
a7e7c597 | 21 | BuildRequires: gnupg |
9c6c6e21 | 22 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
25e6bb2a | 23 | BuildRequires: gtk+3-devel >= 3.12.0 |
a7e7c597 MB |
24 | BuildRequires: gtk-doc >= 1.9 |
25 | BuildRequires: intltool >= 0.35.0 | |
c55c8bfb | 26 | BuildRequires: libgcrypt-devel >= 1.4.5 |
a7e7c597 MB |
27 | BuildRequires: libtasn1-devel |
28 | BuildRequires: libtool | |
778db0bf | 29 | BuildRequires: libxslt-progs |
d87ef12a | 30 | BuildRequires: p11-kit-devel >= 0.19.0 |
a7e7c597 MB |
31 | BuildRequires: pkgconfig |
32 | BuildRequires: rpmbuild(macros) >= 1.592 | |
33 | BuildRequires: tar >= 1:1.22 | |
d87ef12a | 34 | %{?with_vala:BuildRequires: vala >= 2:0.20.0} |
a7e7c597 | 35 | BuildRequires: xz |
c55c8bfb | 36 | Requires(post,postun): glib2 >= 1:2.38.0 |
a7e7c597 MB |
37 | Requires(post,postun): gtk-update-icon-cache |
38 | Requires(post,postun): shared-mime-info | |
39 | Requires(post,postun): desktop-file-utils | |
e6e82210 | 40 | Requires: %{name}-ui = %{version}-%{release} |
a7e7c597 MB |
41 | Requires: gnupg |
42 | Requires: hicolor-icon-theme | |
43 | Conflicts: gnome-keyring < 3.3.0 | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | gcr is a library for displaying certificates, and crypto UI, accessing | |
48 | key stores. It also provides a viewer for crypto files on the GNOME | |
49 | desktop. | |
50 | ||
51 | gck is a library for accessing PKCS#11 modules like smart cards. | |
52 | ||
6f3debce JB |
53 | %description -l pl.UTF-8 |
54 | gcr to biblioteka do wyświetlania certyfikatów oraz kryptograficznego | |
55 | interfejsu użytkownika, pozwalającego na dostęp do kluczy. Zapewnia | |
56 | tekże przeglądarkę plików kryptograficznych dla środowiska GNOME. | |
57 | ||
58 | gck to biblioteka dostepu do modułów PKCS#11, takich jak karty | |
59 | procesorowe. | |
60 | ||
a7e7c597 | 61 | %package libs |
6f3debce JB |
62 | Summary: gcr and gck libraries |
63 | Summary(pl.UTF-8): Biblioteki gcr i gck | |
a7e7c597 | 64 | Group: Libraries |
c55c8bfb ŁK |
65 | Requires: glib2 >= 1:2.38.0 |
66 | Requires: libgcrypt >= 1.4.5 | |
d87ef12a | 67 | Requires: p11-kit >= 0.19.0 |
c79ec358 | 68 | Obsoletes: gnome-keyring-libs < 3.3.0 |
a7e7c597 MB |
69 | |
70 | %description libs | |
6f3debce | 71 | This package provides gcr and gck libraries. |
a7e7c597 MB |
72 | |
73 | %description libs -l pl.UTF-8 | |
6f3debce | 74 | Ten pakiet dostarcza biblioteki gcr i gck. |
a7e7c597 MB |
75 | |
76 | %package devel | |
6f3debce JB |
77 | Summary: Header files for gcr and gck libraries |
78 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gcr i gck | |
a7e7c597 MB |
79 | Group: Development/Libraries |
80 | Requires: %{name}-libs = %{version}-%{release} | |
c55c8bfb | 81 | Requires: glib2-devel >= 1:2.38.0 |
d87ef12a | 82 | Requires: p11-kit-devel >= 0.19.0 |
c79ec358 | 83 | Obsoletes: gnome-keyring-devel < 3.3.0 |
a7e7c597 MB |
84 | |
85 | %description devel | |
6f3debce | 86 | Header files for gcr and gck libraries. |
a7e7c597 MB |
87 | |
88 | %description devel -l pl.UTF-8 | |
6f3debce | 89 | Pliki nagłówkowe bibliotek gcr i gck. |
a7e7c597 MB |
90 | |
91 | %package static | |
6f3debce JB |
92 | Summary: Static gcr and gck libraries |
93 | Summary(pl.UTF-8): Statyczne biblioteki gcr i gck | |
a7e7c597 MB |
94 | Group: Development/Libraries |
95 | Requires: %{name}-devel = %{version}-%{release} | |
c79ec358 | 96 | Obsoletes: gnome-keyring-static < 3.3.0 |
a7e7c597 MB |
97 | |
98 | %description static | |
6f3debce | 99 | Static gcr and gck libraries. |
a7e7c597 MB |
100 | |
101 | %description static -l pl.UTF-8 | |
6f3debce | 102 | Statyczne biblioteki gcr i gck. |
a7e7c597 | 103 | |
d87ef12a MB |
104 | %package -n vala-gcr |
105 | Summary: gcr and gck API for Vala language | |
106 | Summary(pl.UTF-8): API gcr i gck dla języka Vala | |
107 | Group: Development/Libraries | |
108 | Requires: %{name}-devel = %{version}-%{release} | |
109 | Requires: vala >= 2:0.20.0 | |
e75d3188 ER |
110 | %if "%{_rpmversion}" >= "5" |
111 | BuildArch: noarch | |
112 | %endif | |
d87ef12a MB |
113 | |
114 | %description -n vala-gcr | |
115 | gcr and gck API for Vala language. | |
116 | ||
117 | %description -n vala-gcr -l pl.UTF-8 | |
118 | API gcr i gck dla języka Vala. | |
119 | ||
e6e82210 JB |
120 | %package ui |
121 | Summary: gcr UI library | |
122 | Summary(pl.UTF-8): Biblioteka interfejsu użytkownika gcr | |
123 | Group: X11/Libraries | |
124 | Requires: %{name}-libs = %{version}-%{release} | |
25e6bb2a | 125 | Requires: gtk+3 >= 3.12.0 |
e6e82210 JB |
126 | |
127 | %description ui | |
128 | gcr UI library. | |
129 | ||
130 | %description ui -l pl.UTF-8 | |
131 | Biblioteka interfejsu użytkownika gcr. | |
132 | ||
133 | %package ui-devel | |
134 | Summary: Header files for gcr-ui library | |
135 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gcr-ui | |
136 | Group: X11/Development/Libraries | |
137 | Requires: %{name}-devel = %{version}-%{release} | |
138 | Requires: %{name}-ui = %{version}-%{release} | |
25e6bb2a | 139 | Requires: gtk+3-devel >= 3.12.0 |
e6e82210 JB |
140 | |
141 | %description ui-devel | |
142 | Header files for gcr-ui library. | |
143 | ||
144 | %description ui-devel -l pl.UTF-8 | |
145 | Pliki nagłówkowe biblioteki gcr-ui. | |
146 | ||
147 | %package ui-static | |
148 | Summary: Static gcr-ui library | |
149 | Summary(pl.UTF-8): Statyczna biblioteka gcr-ui | |
150 | Group: X11/Development/Libraries | |
151 | Requires: %{name}-ui-devel = %{version}-%{release} | |
152 | ||
153 | %description ui-static | |
154 | Static gcr-ui library. | |
155 | ||
156 | %description ui-static -l pl.UTF-8 | |
157 | Statyczna biblioteka gcr-ui. | |
158 | ||
159 | %package -n vala-gcr-ui | |
160 | Summary: gcr-ui API for Vala language | |
161 | Summary(pl.UTF-8): API gcr-ui dla języka Vala | |
162 | Group: X11/Development/Libraries | |
163 | Requires: %{name}-ui-devel = %{version}-%{release} | |
164 | Requires: vala-gcr = %{version}-%{release} | |
165 | ||
166 | %description -n vala-gcr-ui | |
167 | gcr-ui API for Vala language. | |
168 | ||
169 | %description -n vala-gcr-ui -l pl.UTF-8 | |
170 | API gcr-ui dla języka Vala. | |
171 | ||
172 | %package apidocs | |
173 | Summary: gcr and gck API documentation | |
174 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
175 | Group: Documentation | |
176 | Requires: gtk-doc-common | |
177 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
178 | ||
179 | %description apidocs | |
180 | API and gck documentation for gcr library. | |
181 | ||
182 | %description apidocs -l pl.UTF-8 | |
183 | Dokumentacja API bibliotek gcr i gck. | |
184 | ||
a7e7c597 MB |
185 | %prep |
186 | %setup -q | |
187 | ||
188 | %build | |
189 | %{__intltoolize} | |
190 | %{__libtoolize} | |
191 | %{__aclocal} -I build/m4 | |
192 | %{__autoconf} | |
193 | %{__autoheader} | |
194 | %{__automake} | |
195 | %configure \ | |
196 | %{__enable_disable apidocs gtk-doc} \ | |
d87ef12a | 197 | %{__enable_disable vala vala} \ |
a7e7c597 | 198 | %{__enable_disable static_libs static} \ |
08736337 MB |
199 | --disable-update-mime \ |
200 | --disable-update-icon-cache \ | |
a7e7c597 MB |
201 | --disable-silent-rules \ |
202 | --with-html-dir=%{_gtkdocdir} | |
203 | %{__make} | |
204 | ||
205 | %install | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
208 | %{__make} install \ | |
209 | DESTDIR=$RPM_BUILD_ROOT | |
210 | ||
a7e7c597 MB |
211 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
212 | ||
213 | %find_lang %{name} | |
214 | ||
215 | %clean | |
216 | rm -rf $RPM_BUILD_ROOT | |
217 | ||
218 | %post | |
219 | %glib_compile_schemas | |
220 | %update_icon_cache hicolor | |
221 | %update_mime_database | |
222 | %update_desktop_database_post | |
223 | ||
224 | %postun | |
225 | %glib_compile_schemas | |
226 | %update_icon_cache hicolor | |
227 | %update_mime_database | |
228 | %update_desktop_database_postun | |
229 | ||
6f3debce | 230 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
231 | %postun libs -p /sbin/ldconfig |
232 | ||
e6e82210 JB |
233 | %post ui -p /sbin/ldconfig |
234 | %postun ui -p /sbin/ldconfig | |
235 | ||
a7e7c597 MB |
236 | %files -f %{name}.lang |
237 | %defattr(644,root,root,755) | |
238 | %doc AUTHORS ChangeLog HACKING NEWS README | |
239 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
240 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
241 | %{_desktopdir}/gcr-prompter.desktop | |
242 | %{_desktopdir}/gcr-viewer.desktop | |
243 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
244 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
245 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
246 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
247 | %{_datadir}/gcr-3 | |
248 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml | |
249 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
e6e82210 | 250 | %{_iconsdir}/hicolor/*x*/apps/gcr-*.png |
a7e7c597 MB |
251 | |
252 | %files libs | |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
255 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
256 | %attr(755,root,root) %{_libdir}/libgcr-3.so.*.*.* | |
257 | %attr(755,root,root) %ghost %{_libdir}/libgcr-3.so.1 | |
258 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* | |
259 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
260 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
261 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
262 | ||
263 | %files devel | |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
266 | %attr(755,root,root) %{_libdir}/libgcr-3.so | |
267 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so | |
268 | %{_datadir}/gir-1.0/Gck-1.gir | |
269 | %{_datadir}/gir-1.0/Gcr-3.gir | |
270 | %{_includedir}/gck-1 | |
e6e82210 JB |
271 | %dir %{_includedir}/gcr-3 |
272 | %dir %{_includedir}/gcr-3/gcr | |
273 | %{_includedir}/gcr-3/gcr/gcr-*.h | |
a7e7c597 | 274 | %{_pkgconfigdir}/gck-1.pc |
a7e7c597 MB |
275 | %{_pkgconfigdir}/gcr-base-3.pc |
276 | ||
277 | %if %{with static_libs} | |
278 | %files static | |
279 | %defattr(644,root,root,755) | |
280 | %{_libdir}/libgck-1.a | |
a7e7c597 | 281 | %{_libdir}/libgcr-base-3.a |
a7e7c597 | 282 | %endif |
d87ef12a MB |
283 | |
284 | %if %{with vala} | |
285 | %files -n vala-gcr | |
286 | %defattr(644,root,root,755) | |
287 | %{_datadir}/vala/vapi/gck-1.deps | |
288 | %{_datadir}/vala/vapi/gck-1.vapi | |
289 | %{_datadir}/vala/vapi/gcr-3.deps | |
290 | %{_datadir}/vala/vapi/gcr-3.vapi | |
e6e82210 JB |
291 | %{_datadir}/vala/vapi/pkcs11.vapi |
292 | %endif | |
293 | ||
294 | %files ui | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* | |
297 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
298 | %{_libdir}/girepository-1.0/GcrUi-3.typelib | |
299 | ||
300 | %files ui-devel | |
301 | %defattr(644,root,root,755) | |
302 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so | |
303 | %{_datadir}/gir-1.0/GcrUi-3.gir | |
304 | %{_includedir}/gcr-3/gcr/gcr.h | |
305 | %{_includedir}/gcr-3/ui | |
306 | %{_pkgconfigdir}/gcr-3.pc | |
307 | %{_pkgconfigdir}/gcr-ui-3.pc | |
308 | ||
309 | %if %{with static_libs} | |
310 | %files ui-static | |
311 | %defattr(644,root,root,755) | |
312 | %{_libdir}/libgcr-ui-3.a | |
313 | %endif | |
314 | ||
315 | %if %{with vala} | |
316 | %files -n vala-gcr-ui | |
317 | %defattr(644,root,root,755) | |
d87ef12a MB |
318 | %{_datadir}/vala/vapi/gcr-ui-3.deps |
319 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
e6e82210 JB |
320 | %endif |
321 | ||
322 | %if %{with apidocs} | |
323 | %files apidocs | |
324 | %defattr(644,root,root,755) | |
325 | %{_gtkdocdir}/gck | |
326 | %{_gtkdocdir}/gcr-3 | |
d87ef12a | 327 | %endif |