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