]>
Commit | Line | Data |
---|---|---|
a7e7c597 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: GObject and GUI library for high level crypto parsing and display | |
6f3debce | 7 | Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyświetlania danych kryptograficznych |
a7e7c597 | 8 | Name: gcr |
e9f8fe61 | 9 | Version: 3.6.0 |
a7e7c597 MB |
10 | Release: 1 |
11 | License: LGPL v2+ | |
12 | Group: X11/Applications | |
e9f8fe61 ŁK |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gcr/3.6/%{name}-%{version}.tar.xz |
14 | # Source0-md5: f1177ffa4b6c3271fdefa54f42c1e266 | |
a7e7c597 MB |
15 | URL: http://www.gnome.org/ |
16 | BuildRequires: autoconf >= 2.63 | |
17 | BuildRequires: automake >= 1:1.11 | |
18 | BuildRequires: gettext-devel | |
e8ff8e3e | 19 | BuildRequires: glib2-devel >= 1:2.32.0 |
a7e7c597 MB |
20 | BuildRequires: gnupg |
21 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
22 | BuildRequires: gtk+3-devel >= 3.0.0 | |
23 | BuildRequires: gtk-doc >= 1.9 | |
24 | BuildRequires: intltool >= 0.35.0 | |
25 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
26 | BuildRequires: libtasn1-devel | |
27 | BuildRequires: libtool | |
28 | BuildRequires: p11-kit-devel >= 0.6 | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: rpmbuild(macros) >= 1.592 | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xz | |
33 | Requires: %{name}-libs = %{version}-%{release} | |
97133ed7 | 34 | Requires(post,postun): glib2 >= 1:2.32.0 |
a7e7c597 MB |
35 | Requires(post,postun): gtk-update-icon-cache |
36 | Requires(post,postun): shared-mime-info | |
37 | Requires(post,postun): desktop-file-utils | |
38 | Requires: gnupg | |
39 | Requires: hicolor-icon-theme | |
40 | Conflicts: gnome-keyring < 3.3.0 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | gcr is a library for displaying certificates, and crypto UI, accessing | |
45 | key stores. It also provides a viewer for crypto files on the GNOME | |
46 | desktop. | |
47 | ||
48 | gck is a library for accessing PKCS#11 modules like smart cards. | |
49 | ||
6f3debce JB |
50 | %description -l pl.UTF-8 |
51 | gcr to biblioteka do wyświetlania certyfikatów oraz kryptograficznego | |
52 | interfejsu użytkownika, pozwalającego na dostęp do kluczy. Zapewnia | |
53 | tekże przeglądarkę plików kryptograficznych dla środowiska GNOME. | |
54 | ||
55 | gck to biblioteka dostepu do modułów PKCS#11, takich jak karty | |
56 | procesorowe. | |
57 | ||
a7e7c597 | 58 | %package libs |
6f3debce JB |
59 | Summary: gcr and gck libraries |
60 | Summary(pl.UTF-8): Biblioteki gcr i gck | |
a7e7c597 | 61 | Group: Libraries |
e8ff8e3e | 62 | Requires: glib2 >= 1:2.32.0 |
6f3debce JB |
63 | Requires: libgcrypt >= 1.2.2 |
64 | Requires: p11-kit >= 0.6 | |
c79ec358 | 65 | Obsoletes: gnome-keyring-libs < 3.3.0 |
a7e7c597 MB |
66 | |
67 | %description libs | |
6f3debce | 68 | This package provides gcr and gck libraries. |
a7e7c597 MB |
69 | |
70 | %description libs -l pl.UTF-8 | |
6f3debce | 71 | Ten pakiet dostarcza biblioteki gcr i gck. |
a7e7c597 MB |
72 | |
73 | %package devel | |
6f3debce JB |
74 | Summary: Header files for gcr and gck libraries |
75 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gcr i gck | |
a7e7c597 MB |
76 | Group: Development/Libraries |
77 | Requires: %{name}-libs = %{version}-%{release} | |
e8ff8e3e | 78 | Requires: glib2-devel >= 1:2.32.0 |
a7e7c597 | 79 | Requires: p11-kit-devel >= 0.6 |
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 MB |
87 | |
88 | %package static | |
6f3debce JB |
89 | Summary: Static gcr and gck libraries |
90 | Summary(pl.UTF-8): Statyczne biblioteki gcr i gck | |
a7e7c597 MB |
91 | Group: Development/Libraries |
92 | Requires: %{name}-devel = %{version}-%{release} | |
c79ec358 | 93 | Obsoletes: gnome-keyring-static < 3.3.0 |
a7e7c597 MB |
94 | |
95 | %description static | |
6f3debce | 96 | Static gcr and gck libraries. |
a7e7c597 MB |
97 | |
98 | %description static -l pl.UTF-8 | |
6f3debce | 99 | Statyczne biblioteki gcr i gck. |
a7e7c597 MB |
100 | |
101 | %package apidocs | |
6f3debce JB |
102 | Summary: gcr and gck API documentation |
103 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
a7e7c597 MB |
104 | Group: Documentation |
105 | Requires: gtk-doc-common | |
c79ec358 | 106 | Obsoletes: gnome-keyring-apidocs < 3.3.0 |
a7e7c597 MB |
107 | |
108 | %description apidocs | |
6f3debce | 109 | API and gck documentation for gcr library. |
a7e7c597 MB |
110 | |
111 | %description apidocs -l pl.UTF-8 | |
6f3debce | 112 | Dokumentacja API bibliotek gcr i gck. |
a7e7c597 MB |
113 | |
114 | %prep | |
115 | %setup -q | |
116 | ||
117 | %build | |
118 | %{__intltoolize} | |
119 | %{__libtoolize} | |
120 | %{__aclocal} -I build/m4 | |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
124 | %configure \ | |
125 | %{__enable_disable apidocs gtk-doc} \ | |
126 | %{__enable_disable static_libs static} \ | |
08736337 MB |
127 | --disable-update-mime \ |
128 | --disable-update-icon-cache \ | |
a7e7c597 MB |
129 | --disable-silent-rules \ |
130 | --with-html-dir=%{_gtkdocdir} | |
131 | %{__make} | |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmock-test-module.* | |
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
141 | ||
142 | %find_lang %{name} | |
143 | ||
144 | %clean | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post | |
148 | %glib_compile_schemas | |
149 | %update_icon_cache hicolor | |
150 | %update_mime_database | |
151 | %update_desktop_database_post | |
152 | ||
153 | %postun | |
154 | %glib_compile_schemas | |
155 | %update_icon_cache hicolor | |
156 | %update_mime_database | |
157 | %update_desktop_database_postun | |
158 | ||
6f3debce | 159 | %post libs -p /sbin/ldconfig |
a7e7c597 MB |
160 | %postun libs -p /sbin/ldconfig |
161 | ||
162 | %files -f %{name}.lang | |
163 | %defattr(644,root,root,755) | |
164 | %doc AUTHORS ChangeLog HACKING NEWS README | |
165 | %attr(755,root,root) %{_bindir}/gcr-viewer | |
166 | %attr(755,root,root) %{_libexecdir}/gcr-prompter | |
167 | %{_desktopdir}/gcr-prompter.desktop | |
168 | %{_desktopdir}/gcr-viewer.desktop | |
169 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp.convert | |
170 | %{_datadir}/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert | |
171 | %{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service | |
172 | %{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service | |
173 | %{_datadir}/gcr-3 | |
174 | %{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml | |
175 | %{_datadir}/mime/packages/gcr-crypto-types.xml | |
176 | %{_iconsdir}/hicolor/*/*/*.png | |
177 | ||
178 | %files libs | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_libdir}/libgck-1.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libgck-1.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libgcr-3.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libgcr-3.so.1 | |
184 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libgcr-base-3.so.1 | |
186 | %{_libdir}/girepository-1.0/Gck-1.typelib | |
187 | %{_libdir}/girepository-1.0/Gcr-3.typelib | |
188 | ||
189 | %files devel | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/libgck-1.so | |
192 | %attr(755,root,root) %{_libdir}/libgcr-3.so | |
193 | %attr(755,root,root) %{_libdir}/libgcr-base-3.so | |
194 | %{_datadir}/gir-1.0/Gck-1.gir | |
195 | %{_datadir}/gir-1.0/Gcr-3.gir | |
196 | %{_includedir}/gck-1 | |
197 | %{_includedir}/gcr-3 | |
198 | %{_pkgconfigdir}/gck-1.pc | |
199 | %{_pkgconfigdir}/gcr-3.pc | |
200 | %{_pkgconfigdir}/gcr-base-3.pc | |
201 | ||
202 | %if %{with static_libs} | |
203 | %files static | |
204 | %defattr(644,root,root,755) | |
205 | %{_libdir}/libgck-1.a | |
206 | %{_libdir}/libgcr-3.a | |
207 | %{_libdir}/libgcr-base-3.a | |
208 | %endif | |
209 | ||
210 | %if %{with apidocs} | |
211 | %files apidocs | |
212 | %defattr(644,root,root,755) | |
213 | %{_gtkdocdir}/gck | |
214 | %{_gtkdocdir}/gcr-3 | |
215 | %endif |