]>
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 |
479aa264 | 10 | Version: 3.10.1 |
a7e7c597 MB |
11 | Release: 1 |
12 | License: LGPL v2+ | |
13 | Group: X11/Applications | |
d87ef12a | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.10/%{name}-%{version}.tar.xz |
479aa264 | 15 | # Source0-md5: 68c0b5d7202ac598942616d2e3a1b089 |
a7e7c597 MB |
16 | URL: http://www.gnome.org/ |
17 | BuildRequires: autoconf >= 2.63 | |
18 | BuildRequires: automake >= 1:1.11 | |
19 | BuildRequires: gettext-devel | |
e8ff8e3e | 20 | BuildRequires: glib2-devel >= 1:2.32.0 |
a7e7c597 | 21 | BuildRequires: gnupg |
9c6c6e21 | 22 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
a7e7c597 MB |
23 | BuildRequires: gtk+3-devel >= 3.0.0 |
24 | BuildRequires: gtk-doc >= 1.9 | |
25 | BuildRequires: intltool >= 0.35.0 | |
26 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
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 MB |
34 | BuildRequires: xz |
35 | Requires: %{name}-libs = %{version}-%{release} | |
97133ed7 | 36 | Requires(post,postun): glib2 >= 1:2.32.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 | |
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 |
e8ff8e3e | 64 | Requires: glib2 >= 1:2.32.0 |
6f3debce | 65 | Requires: libgcrypt >= 1.2.2 |
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} | |
e8ff8e3e | 80 | Requires: glib2-devel >= 1:2.32.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 MB |
102 | |
103 | %package apidocs | |
6f3debce JB |
104 | Summary: gcr and gck API documentation |
105 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
a7e7c597 MB |
106 | Group: Documentation |
107 | Requires: gtk-doc-common | |
c79ec358 | 108 | Obsoletes: gnome-keyring-apidocs < 3.3.0 |
a7e7c597 MB |
109 | |
110 | %description apidocs | |
6f3debce | 111 | API and gck documentation for gcr library. |
a7e7c597 MB |
112 | |
113 | %description apidocs -l pl.UTF-8 | |
6f3debce | 114 | Dokumentacja API bibliotek gcr i gck. |
a7e7c597 | 115 | |
d87ef12a MB |
116 | %package -n vala-gcr |
117 | Summary: gcr and gck API for Vala language | |
118 | Summary(pl.UTF-8): API gcr i gck dla języka Vala | |
119 | Group: Development/Libraries | |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | Requires: vala >= 2:0.20.0 | |
122 | ||
123 | %description -n vala-gcr | |
124 | gcr and gck API for Vala language. | |
125 | ||
126 | %description -n vala-gcr -l pl.UTF-8 | |
127 | API gcr i gck dla języka Vala. | |
128 | ||
a7e7c597 MB |
129 | %prep |
130 | %setup -q | |
131 | ||
132 | %build | |
133 | %{__intltoolize} | |
134 | %{__libtoolize} | |
135 | %{__aclocal} -I build/m4 | |
136 | %{__autoconf} | |
137 | %{__autoheader} | |
138 | %{__automake} | |
139 | %configure \ | |
140 | %{__enable_disable apidocs gtk-doc} \ | |
d87ef12a | 141 | %{__enable_disable vala vala} \ |
a7e7c597 | 142 | %{__enable_disable static_libs static} \ |
08736337 MB |
143 | --disable-update-mime \ |
144 | --disable-update-icon-cache \ | |
a7e7c597 MB |
145 | --disable-silent-rules \ |
146 | --with-html-dir=%{_gtkdocdir} | |
147 | %{__make} | |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %{__make} install \ | |
153 | DESTDIR=$RPM_BUILD_ROOT | |
154 | ||
a7e7c597 MB |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
156 | ||
157 | %find_lang %{name} | |
158 | ||
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %post | |
163 | %glib_compile_schemas | |
164 | %update_icon_cache hicolor | |
165 | %update_mime_database | |
166 | %update_desktop_database_post | |
167 | ||
168 | %postun | |
169 | %glib_compile_schemas | |
170 | %update_icon_cache hicolor | |
171 | %update_mime_database | |
172 | %update_desktop_database_postun | |
173 | ||
6f3debce | 174 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
175 | %postun libs -p /sbin/ldconfig |
176 | ||
177 | %files -f %{name}.lang | |
178 | %defattr(644,root,root,755) | |
179 | %doc AUTHORS ChangeLog HACKING NEWS README | |
180 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
181 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
182 | %{_desktopdir}/gcr-prompter.desktop | |
183 | %{_desktopdir}/gcr-viewer.desktop | |
184 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
185 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
186 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
187 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
188 | %{_datadir}/gcr-3 | |
189 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml | |
190 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
191 | %{_iconsdir}/hicolor/*/*/*.png | |
192 | ||
193 | %files libs | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
197 | %attr(755,root,root) %{_libdir}/libgcr-3.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libgcr-3.so.1 | |
199 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
9c6c6e21 ŁK |
201 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so.*.*.* |
202 | %attr(755,root,root) %ghost %{_libdir}/libgcr-ui-3.so.1 | |
a7e7c597 MB |
203 | %{_libdir}/girepository-1.0/Gck-1.typelib |
204 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
9c6c6e21 | 205 | %{_libdir}/girepository-1.0/GcrUi-3.typelib |
a7e7c597 MB |
206 | |
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
210 | %attr(755,root,root) %{_libdir}/libgcr-3.so | |
211 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so | |
9c6c6e21 | 212 | %attr(755,root,root) %{_libdir}/libgcr-ui-3.so |
a7e7c597 MB |
213 | %{_datadir}/gir-1.0/Gck-1.gir |
214 | %{_datadir}/gir-1.0/Gcr-3.gir | |
9c6c6e21 | 215 | %{_datadir}/gir-1.0/GcrUi-3.gir |
a7e7c597 MB |
216 | %{_includedir}/gck-1 |
217 | %{_includedir}/gcr-3 | |
218 | %{_pkgconfigdir}/gck-1.pc | |
219 | %{_pkgconfigdir}/gcr-3.pc | |
220 | %{_pkgconfigdir}/gcr-base-3.pc | |
9c6c6e21 | 221 | %{_pkgconfigdir}/gcr-ui-3.pc |
a7e7c597 MB |
222 | |
223 | %if %{with static_libs} | |
224 | %files static | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/libgck-1.a | |
a7e7c597 | 227 | %{_libdir}/libgcr-base-3.a |
9c6c6e21 | 228 | %{_libdir}/libgcr-ui-3.a |
a7e7c597 MB |
229 | %endif |
230 | ||
231 | %if %{with apidocs} | |
232 | %files apidocs | |
233 | %defattr(644,root,root,755) | |
234 | %{_gtkdocdir}/gck | |
235 | %{_gtkdocdir}/gcr-3 | |
236 | %endif | |
d87ef12a MB |
237 | |
238 | %if %{with vala} | |
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 | |
245 | %{_datadir}/vala/vapi/gcr-ui-3.deps | |
246 | %{_datadir}/vala/vapi/gcr-ui-3.vapi | |
247 | %endif |