]>
Commit | Line | Data |
---|---|---|
a8a8efb4 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | ||
5 | Summary: GObject and GUI library for high level crypto parsing and display | |
6 | Summary(pl.UTF-8): Biblioteka GObject i GUI do wysokopoziomowej analizy i wyświetlania danych kryptograficznych | |
7 | Name: gcr4 | |
7031b88c | 8 | Version: 4.1.0 |
a8a8efb4 JB |
9 | Release: 1 |
10 | License: LGPL v2+ | |
11 | Group: X11/Applications | |
7031b88c JB |
12 | Source0: https://download.gnome.org/sources/gcr/4.1/gcr-%{version}.tar.xz |
13 | # Source0-md5: bb2e957f0ce11a8c527d1d5079ba485f | |
a8a8efb4 JB |
14 | URL: https://gitlab.gnome.org/GNOME/gcr |
15 | BuildRequires: gettext-tools >= 0.19.8 | |
16 | BuildRequires: glib2-devel >= 1:2.68 | |
17 | BuildRequires: gobject-introspection-devel >= 1.34.0 | |
18 | BuildRequires: gtk-doc >= 1.9 | |
19 | BuildRequires: gtk4-devel >= 4 | |
20 | BuildRequires: libgcrypt-devel >= 1.4.5 | |
21 | BuildRequires: libsecret-devel >= 0.20 | |
22 | BuildRequires: libtasn1-devel | |
23 | BuildRequires: libxslt-progs | |
24 | BuildRequires: meson >= 0.59 | |
25 | BuildRequires: ninja >= 1.5 | |
26 | # to configure ssh-add,ssh-agent paths | |
27 | BuildRequires: openssh-clients | |
28 | BuildRequires: p11-kit-devel >= 0.19.0 | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: rpm-build >= 4.6 | |
31 | BuildRequires: rpmbuild(macros) >= 2.011 | |
32 | BuildRequires: systemd-devel | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: vala >= 2:0.20.0 | |
35 | BuildRequires: xz | |
36 | Requires(post,preun,postun): systemd-units >= 1:250.1 | |
37 | Requires: gnupg2 >= 2.0 | |
38 | Requires: libsecret >= 0.20 | |
39 | Requires: systemd-units >= 1:250.1 | |
40 | Conflicts: gnome-keyring < 3.3.0 | |
41 | Obsoletes: gcr < 4 | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | gcr is a library for displaying certificates, and crypto UI, accessing | |
46 | key stores. It also provides a viewer for crypto files on the GNOME | |
47 | desktop. | |
48 | ||
49 | gck is a library for accessing PKCS#11 modules like smart cards. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | gcr to biblioteka do wyświetlania certyfikatów oraz kryptograficznego | |
53 | interfejsu użytkownika, pozwalającego na dostęp do kluczy. Zapewnia | |
54 | tekże przeglądarkę plików kryptograficznych dla środowiska GNOME. | |
55 | ||
56 | gck to biblioteka dostepu do modułów PKCS#11, takich jak karty | |
57 | procesorowe. | |
58 | ||
59 | %package libs | |
60 | Summary: gcr and gck libraries | |
61 | Summary(pl.UTF-8): Biblioteki gcr i gck | |
62 | Group: Libraries | |
63 | Requires: glib2 >= 1:2.68 | |
64 | Requires: libgcrypt >= 1.4.5 | |
65 | Requires: p11-kit >= 0.19.0 | |
66 | Obsoletes: gnome-keyring-libs < 3.3.0 | |
67 | ||
68 | %description libs | |
69 | This package provides gcr and gck libraries. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Ten pakiet dostarcza biblioteki gcr i gck. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for gcr and gck libraries | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gcr i gck | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-libs = %{version}-%{release} | |
79 | Requires: glib2-devel >= 1:2.68 | |
80 | Requires: p11-kit-devel >= 0.19.0 | |
81 | Obsoletes: gcr-static < 3.36.0 | |
82 | Obsoletes: gcr-ui-static < 3.36.0 | |
83 | Obsoletes: gnome-keyring-devel < 3.3.0 | |
84 | ||
85 | %description devel | |
86 | Header files for gcr and gck libraries. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe bibliotek gcr i gck. | |
90 | ||
91 | %package -n vala-gcr4 | |
92 | Summary: gcr and gck API for Vala language | |
93 | Summary(pl.UTF-8): API gcr i gck dla języka Vala | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | Requires: vala >= 2:0.20.0 | |
97 | BuildArch: noarch | |
98 | ||
99 | %description -n vala-gcr4 | |
100 | gcr and gck API for Vala language. | |
101 | ||
102 | %description -n vala-gcr4 -l pl.UTF-8 | |
103 | API gcr i gck dla języka Vala. | |
104 | ||
105 | %package apidocs | |
106 | Summary: gcr and gck API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API bibliotek gcr i gck | |
108 | Group: Documentation | |
109 | Requires: gtk-doc-common | |
110 | Obsoletes: gnome-keyring-apidocs < 3.3.0 | |
111 | BuildArch: noarch | |
112 | ||
113 | %description apidocs | |
114 | API and gck documentation for gcr library. | |
115 | ||
116 | %description apidocs -l pl.UTF-8 | |
117 | Dokumentacja API bibliotek gcr i gck. | |
118 | ||
119 | %prep | |
120 | %setup -q -n gcr-%{version} | |
121 | ||
122 | %build | |
123 | %meson build \ | |
124 | -Dgpg_path=%{__gpg} \ | |
125 | -Dgtk_doc=%{__true_false apidocs} | |
126 | ||
127 | %ninja_build -C build | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %ninja_install -C build | |
133 | ||
134 | # FIXME: where to package gi-docgen generated docs? | |
135 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
136 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/{gck-2,gcr-4} $RPM_BUILD_ROOT%{_gtkdocdir} | |
137 | ||
138 | %find_lang gcr-4 | |
139 | ||
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %systemd_user_post gcr-ssh-agent.service | |
145 | ||
146 | %preun | |
147 | %systemd_user_preun gcr-ssh-agent.service | |
148 | ||
149 | %postun | |
150 | %systemd_user_postun_with_restart gcr-ssh-agent.service | |
151 | ||
152 | %post libs -p /sbin/ldconfig | |
153 | %postun libs -p /sbin/ldconfig | |
154 | ||
155 | %files -f gcr-4.lang | |
156 | %defattr(644,root,root,755) | |
157 | %doc CONTRIBUTING.md NEWS README.md | |
158 | %attr(755,root,root) %{_bindir}/gcr-viewer-gtk4 | |
159 | %attr(755,root,root) %{_libexecdir}/gcr-ssh-agent | |
160 | %attr(755,root,root) %{_libexecdir}/gcr4-ssh-askpass | |
161 | %{systemduserunitdir}/gcr-ssh-agent.service | |
162 | %{systemduserunitdir}/gcr-ssh-agent.socket | |
163 | ||
164 | %files libs | |
165 | %defattr(644,root,root,755) | |
7031b88c JB |
166 | %attr(755,root,root) %{_libdir}/libgck-2.so.*.*.* |
167 | %attr(755,root,root) %ghost %{_libdir}/libgck-2.so.2 | |
168 | %attr(755,root,root) %{_libdir}/libgcr-4.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libgcr-4.so.4 | |
a8a8efb4 JB |
170 | %{_libdir}/girepository-1.0/Gck-2.typelib |
171 | %{_libdir}/girepository-1.0/Gcr-4.typelib | |
172 | ||
173 | %files devel | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_libdir}/libgck-2.so | |
176 | %attr(755,root,root) %{_libdir}/libgcr-4.so | |
177 | %{_datadir}/gir-1.0/Gck-2.gir | |
178 | %{_datadir}/gir-1.0/Gcr-4.gir | |
179 | %{_includedir}/gck-2 | |
180 | %{_includedir}/gcr-4 | |
181 | %{_pkgconfigdir}/gck-2.pc | |
182 | %{_pkgconfigdir}/gcr-4.pc | |
183 | ||
184 | %files -n vala-gcr4 | |
185 | %defattr(644,root,root,755) | |
186 | %{_datadir}/vala/vapi/gck-2.deps | |
187 | %{_datadir}/vala/vapi/gck-2.vapi | |
188 | %{_datadir}/vala/vapi/gcr-4.deps | |
189 | %{_datadir}/vala/vapi/gcr-4.vapi | |
190 | ||
191 | %if %{with apidocs} | |
192 | %files apidocs | |
193 | %defattr(644,root,root,755) | |
194 | %{_gtkdocdir}/gck-2 | |
195 | %{_gtkdocdir}/gcr-4 | |
196 | %endif |