]>
Commit | Line | Data |
---|---|---|
79f30f85 | 1 | # |
03076a38 | 2 | # Conditional build: |
b5bc826d | 3 | %bcond_without tests # testsuite on build |
74217b8a | 4 | %bcond_without dirmngr # dirmngr packages build |
b5bc826d JB |
5 | %bcond_with default_gpg # install as gpg/gpgv instead of gpg2/gpgv2 |
6 | %bcond_with gnutls # GnuTLS instead of NTBTLS | |
7 | %bcond_with selinux # "SELinux hacks" | |
d54c94db | 8 | # |
f56b1d35 JB |
9 | Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version |
10 | Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona | |
c85d209c | 11 | Name: gnupg2 |
9a524b95 | 12 | # 2.1.x is development version unfortunately (see gpg2 --version) |
99fb3cd8 | 13 | Version: 2.2.3 |
9a524b95 | 14 | Release: 0.1 |
71099ee5 | 15 | License: GPL v3+ |
b626fce0 | 16 | Group: Applications/File |
d47c18c2 | 17 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
99fb3cd8 | 18 | # Source0-md5: 6911c0127e4231ce52d60f26029dba68 |
b626fce0 | 19 | Source1: gnupg-agent.sh |
c85d209c | 20 | Patch0: %{name}-info.patch |
491f1c67 | 21 | Patch1: %{name}-pth.patch |
ea6e9952 | 22 | Patch2: %{name}-disable_tests.patch |
6f582fc9 | 23 | Patch3: %{name}-pl.po-update.patch |
491f1c67 | 24 | Patch4: %{name}-am.patch |
b626fce0 | 25 | URL: http://www.gnupg.org/ |
71099ee5 | 26 | BuildRequires: autoconf >= 2.61 |
cc42aea4 | 27 | BuildRequires: automake >= 1:1.14 |
b636b9b9 | 28 | BuildRequires: bzip2-devel |
da0f8718 | 29 | BuildRequires: curl-devel >= 7.10 |
169b8933 JB |
30 | BuildRequires: gettext-tools >= 0.17 |
31 | %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0} | |
32 | BuildRequires: libassuan-devel >= 1:2.4.3 | |
33 | BuildRequires: libgcrypt-devel >= 1.7.0 | |
34 | BuildRequires: libgpg-error-devel >= 1.24 | |
35 | BuildRequires: libksba-devel >= 1.3.4 | |
36 | BuildRequires: libusb-devel >= 1.0 | |
37 | BuildRequires: npth-devel >= 1.2 | |
38 | %{!?with_gnutls:BuildRequires: ntbtls-devel >= 0.1.0} | |
74217b8a | 39 | %{?with_dirmngr:BuildRequires: openldap-devel >= 2.4.6} |
169b8933 JB |
40 | BuildRequires: pkgconfig |
41 | BuildRequires: readline-devel | |
f197b41f | 42 | BuildRequires: rpmbuild(macros) >= 1.177 |
b626fce0 AM |
43 | BuildRequires: texinfo |
44 | BuildRequires: zlib-devel | |
c85d209c | 45 | Requires: gnupg2-common = %{version}-%{release} |
b5bc826d JB |
46 | Requires: sqlite3 >= 3.7 |
47 | %{?with_default_gpg:Obsoletes: gnupg < 2} | |
150f8795 | 48 | Suggests: gnupg-agent |
b626fce0 AM |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
b5bc826d | 51 | %define pkglibexecdir %{_libexecdir}/gnupg2 |
b626fce0 AM |
52 | |
53 | %description | |
c85d209c AF |
54 | GnuPG is GNU's tool for secure communication and data storage. It can |
55 | be used to encrypt data and to create digital signatures. It includes | |
56 | an advanced key management facility and is compliant with the proposed | |
57 | OpenPGP Internet standard as described in RFC2440. | |
58 | ||
f56b1d35 | 59 | This is enhanced version. |
b626fce0 | 60 | |
0998c692 JR |
61 | %description -l pl.UTF-8 |
62 | GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i | |
63 | bezpiecznego przechowywania danych. Może być używany do szyfrowania | |
64 | oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami | |
65 | i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany | |
c85d209c AF |
66 | w RFC2440. |
67 | ||
f56b1d35 | 68 | To jest wersja rozszerzona. |
c85d209c AF |
69 | |
70 | %package common | |
71 | Summary: GnuPG - common files | |
4049c7b1 | 72 | Summary(pl.UTF-8): GnuPG - pliki wspólne |
c85d209c | 73 | Group: Applications/File |
491f1c67 | 74 | Requires: libassuan >= 1:2.0.0 |
cc42aea4 JB |
75 | Requires: libgcrypt >= 1.5.0 |
76 | Requires: libgpg-error >= 1.11 | |
491f1c67 | 77 | Requires: libksba >= 1.0.7 |
c85d209c AF |
78 | Conflicts: gnupg-agent < 1.9.14-2 |
79 | ||
80 | %description common | |
81 | Common files used by tools from GnuPG project. | |
82 | ||
0998c692 JR |
83 | %description common -l pl.UTF-8 |
84 | Pliki wspólne używane przez różne narzędzia z projektu GnuPG. | |
c85d209c | 85 | |
491f1c67 JR |
86 | %package plugin-keys_curl |
87 | Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver | |
88 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP | |
89 | Group: Applications/File | |
90 | Requires: %{name}-common = %{version}-%{release} | |
91 | Requires: curl-libs >= 7.10 | |
92 | ||
93 | %description plugin-keys_curl | |
94 | GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver. | |
95 | ||
96 | %description plugin-keys_curl -l pl.UTF-8 | |
97 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy | |
98 | HTTP(S)/FTP(S). | |
99 | ||
100 | %package plugin-keys_finger | |
101 | Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver | |
102 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER | |
103 | Group: Applications/File | |
104 | Requires: %{name}-common = %{version}-%{release} | |
105 | ||
106 | %description plugin-keys_finger | |
107 | GnuPG 2 plugin for allow talk to a FINGER keyserver. | |
108 | ||
109 | %description plugin-keys_finger -l pl.UTF-8 | |
110 | Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER. | |
111 | ||
112 | %package plugin-keys_hkp | |
113 | Summary: GnuPG 2 plugin for allow talk to a HKP keyserver | |
114 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP | |
115 | Group: Applications/File | |
116 | Requires: %{name}-common = %{version}-%{release} | |
117 | ||
118 | %description plugin-keys_hkp | |
119 | GnuPG 2 plugin for allow talk to a HKP keyserver. | |
120 | ||
121 | %description plugin-keys_hkp -l pl.UTF-8 | |
122 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP. | |
123 | ||
124 | %package plugin-keys_kdns | |
125 | Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver | |
126 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS | |
127 | Group: Applications/File | |
128 | Requires: %{name}-common = %{version}-%{release} | |
129 | ||
130 | %description plugin-keys_kdns | |
131 | GnuPG 2 plugin for allow talk to a KDNS keyserver. | |
132 | ||
133 | %description plugin-keys_kdns -l pl.UTF-8 | |
134 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS. | |
135 | ||
136 | %package plugin-keys_ldap | |
137 | Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver | |
138 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP | |
139 | Group: Applications/File | |
140 | Requires: %{name}-common = %{version}-%{release} | |
141 | ||
142 | %description plugin-keys_ldap | |
143 | GnuPG 2 plugin for allow talk to a LDAP keyserver. | |
144 | ||
145 | %description plugin-keys_ldap -l pl.UTF-8 | |
146 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP. | |
147 | ||
c85d209c AF |
148 | %package -n gnupg-agent |
149 | Summary: GnuPG extension - agent | |
4049c7b1 | 150 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 151 | Group: Applications/File |
7b3cd4e7 | 152 | Requires: %{name}-common = %{version}-%{release} |
1dbb261a | 153 | Requires: pinentry >= 0.7.5-2 |
c85d209c AF |
154 | Obsoletes: newpg |
155 | ||
156 | %description -n gnupg-agent | |
157 | GnuPG extension - agent. | |
158 | ||
0998c692 | 159 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
160 | Rozszerzenie GnuPG - agent. |
161 | ||
f197b41f | 162 | %package -n gnupg-agent-profile_d |
163 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 164 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 165 | Group: Applications/File |
166 | Requires: gnupg-agent = %{version}-%{release} | |
167 | ||
168 | %description -n gnupg-agent-profile_d | |
169 | gnupg-agent start script for text mode. | |
170 | ||
0998c692 | 171 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 172 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
173 | ||
174 | %package -n gnupg-agent-xinitrc | |
175 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 176 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 177 | Group: Applications/File |
178 | Requires: gnupg-agent = %{version}-%{release} | |
179 | Requires: xinitrc | |
180 | ||
181 | %description -n gnupg-agent-xinitrc | |
182 | gnupg-agent start script for X-Window mode. | |
183 | ||
0998c692 | 184 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 185 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
186 | ||
c85d209c AF |
187 | %package -n gnupg-smime |
188 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 189 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 190 | Group: Applications/File |
7b3cd4e7 | 191 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
192 | Conflicts: gnupg-agent < 1.9.14-2 |
193 | ||
194 | %description -n gnupg-smime | |
195 | GnuPG extension - S/MIME support. | |
196 | ||
0998c692 JR |
197 | %description -n gnupg-smime -l pl.UTF-8 |
198 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 199 | |
74217b8a JB |
200 | %package -n dirmngr |
201 | Summary: X509/LDAP certificate and revocation list client | |
202 | Summary(pl.UTF-8): Klient certyfikatów i list anulujących X509/LDAP | |
203 | Group: Applications | |
204 | Requires: %{name}-common = %{version}-%{release} | |
205 | ||
206 | %description -n dirmngr | |
207 | DirMngr is a client for managing and downloading certificate | |
208 | revocation lists (CRLs) for X509 certificates and for downloading the | |
209 | certificates themselves. DirMngr is usually invoked by gpgsm and in | |
210 | general not used directly. | |
211 | ||
212 | %description -n dirmngr -l pl.UTF-8 | |
213 | DirMngr to klient do zarządzania i pobierania list anulujących | |
214 | certyfikaty (CRLs - certificate revocation lists) dla certyfikatów | |
215 | X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle | |
216 | wywoływany przez gpgsm i nie używany bezpośrednio. | |
217 | ||
b626fce0 AM |
218 | %prep |
219 | %setup -q -n gnupg-%{version} | |
c85d209c | 220 | %patch0 -p1 |
491f1c67 | 221 | %patch1 -p1 |
ea6e9952 | 222 | %{!?with_tests:%patch2 -p1} |
491f1c67 JR |
223 | %patch3 -p1 |
224 | %patch4 -p1 | |
6f582fc9 JB |
225 | |
226 | %{__rm} po/stamp-po | |
b626fce0 AM |
227 | |
228 | %build | |
3d3dbf69 | 229 | %{__gettextize} |
491f1c67 | 230 | %{__aclocal} -I m4 -I gl/m4 |
3d3dbf69 JB |
231 | %{__autoconf} |
232 | %{__autoheader} | |
155bb60b | 233 | %{__automake} |
b626fce0 | 234 | %configure \ |
b5bc826d | 235 | --libexecdir=%{pkglibexecdir} \ |
74217b8a | 236 | %{!?with_dirmngr:--disable-dirmngr} \ |
b5bc826d JB |
237 | --enable-g13 \ |
238 | %{!?with_default_gpg:--enable-gpg-is-gpg2} \ | |
169b8933 JB |
239 | %{?with_gnutls:--disable-ntbtls} \ |
240 | %{?with_selinux:--enable-selinux-support} \ | |
d47c18c2 | 241 | --enable-symcryptrun \ |
b5bc826d | 242 | --enable-wks-tools \ |
d47c18c2 | 243 | --with-capabilities \ |
1dbb261a | 244 | --with-pinentry-pgm=%{_bindir}/pinentry \ |
b626fce0 AM |
245 | --with-mailprog=/usr/lib/sendmail |
246 | ||
62f46a6b | 247 | %{__make} |
b626fce0 AM |
248 | |
249 | %install | |
250 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
251 | |
252 | %{__make} install \ | |
c85d209c AF |
253 | DESTDIR=$RPM_BUILD_ROOT \ |
254 | pkglibdir=%{_libexecdir} | |
b626fce0 | 255 | |
f197b41f | 256 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh |
257 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh | |
c85d209c | 258 | |
74217b8a JB |
259 | %if %{without dirmngr} |
260 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8} | |
261 | %endif | |
262 | ||
263 | %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir | |
264 | ||
265 | # files useful for users packaged as %doc | |
266 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg | |
267 | ||
f1d02fc8 | 268 | %find_lang gnupg2 |
491f1c67 | 269 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
b626fce0 AM |
270 | |
271 | %clean | |
272 | rm -rf $RPM_BUILD_ROOT | |
273 | ||
491f1c67 | 274 | %post -p /sbin/postshell |
4be7d664 | 275 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 276 | |
491f1c67 | 277 | %postun -p /sbin/postshell |
4be7d664 | 278 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 279 | |
f197b41f | 280 | %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2 |
281 | %banner gnupg-agent-1.9.16-2 << EOF | |
282 | Scripts for starting gnupg-agent have been moved to separate | |
283 | subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc. | |
84ab814f | 284 | EOF |
f197b41f | 285 | |
84ab814f | 286 | %files |
b626fce0 | 287 | %defattr(644,root,root,755) |
b5bc826d JB |
288 | %if %{with default_gpg} |
289 | %attr(755,root,root) %{_bindir}/gpg | |
290 | %attr(755,root,root) %{_bindir}/gpgv | |
291 | %{_mandir}/man1/gpg.1* | |
292 | %{_mandir}/man1/gpgv.1* | |
293 | %else | |
c85d209c AF |
294 | %attr(755,root,root) %{_bindir}/gpg2 |
295 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
296 | %{_mandir}/man1/gpg2.1* |
297 | %{_mandir}/man1/gpgv2.1* | |
b5bc826d | 298 | %endif |
c85d209c AF |
299 | |
300 | %files common -f gnupg2.lang | |
301 | %defattr(644,root,root,755) | |
491f1c67 | 302 | %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO |
df2f3764 | 303 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 304 | %attr(755,root,root) %{_bindir}/gpgconf |
491f1c67 | 305 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 306 | %attr(755,root,root) %{_bindir}/gpgparsemail |
579ff0a0 | 307 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
308 | %attr(755,root,root) %{_bindir}/watchgnupg |
309 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 310 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
b5bc826d JB |
311 | %attr(755,root,root) %{_sbindir}/g13-syshelp |
312 | %dir %{pkglibexecdir} | |
313 | ||
c85d209c | 314 | %{_datadir}/gnupg |
579ff0a0 JB |
315 | %{_mandir}/man1/gpg-connect-agent.1* |
316 | %{_mandir}/man1/gpgconf.1* | |
317 | %{_mandir}/man1/gpgparsemail.1* | |
99fb3cd8 | 318 | %{_mandir}/man1/gpgtar.1* |
579ff0a0 JB |
319 | %{_mandir}/man1/watchgnupg.1* |
320 | %{_mandir}/man8/addgnupghome.8* | |
21eea941 | 321 | %{_mandir}/man8/applygnupgdefaults.8* |
00461e0e | 322 | %{_infodir}/gnupg.info* |
c85d209c | 323 | |
491f1c67 JR |
324 | %files plugin-keys_curl |
325 | %defattr(644,root,root,755) | |
326 | %attr(755,root,root) %{_libexecdir}/gpg2keys_curl | |
327 | ||
328 | %files plugin-keys_finger | |
329 | %defattr(644,root,root,755) | |
330 | %attr(755,root,root) %{_libexecdir}/gpg2keys_finger | |
331 | ||
332 | %files plugin-keys_hkp | |
333 | %defattr(644,root,root,755) | |
334 | %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp | |
335 | ||
336 | %files plugin-keys_kdns | |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns | |
339 | ||
340 | %files plugin-keys_ldap | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap | |
343 | ||
c85d209c AF |
344 | %files -n gnupg-smime |
345 | %defattr(644,root,root,755) | |
b626fce0 | 346 | %attr(755,root,root) %{_bindir}/gpgsm |
491f1c67 | 347 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 | 348 | %{_mandir}/man1/gpgsm.1* |
491f1c67 | 349 | %{_mandir}/man1/gpgsm-gencert.sh.1* |
c85d209c AF |
350 | |
351 | %files -n gnupg-agent | |
352 | %defattr(644,root,root,755) | |
c85d209c | 353 | %attr(755,root,root) %{_bindir}/gpg-agent |
b5bc826d | 354 | %attr(755,root,root) %{_bindir}/gpg-wks-server |
d47c18c2 | 355 | %attr(755,root,root) %{_bindir}/symcryptrun |
b5bc826d JB |
356 | %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern |
357 | %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool | |
358 | %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase | |
359 | %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client | |
360 | %attr(755,root,root) %{pkglibexecdir}/scdaemon | |
579ff0a0 JB |
361 | %{_mandir}/man1/gpg-agent.1* |
362 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
b5bc826d JB |
363 | %{_mandir}/man1/gpg-wks-client.1* |
364 | %{_mandir}/man1/gpg-wks-server.1* | |
579ff0a0 | 365 | %{_mandir}/man1/scdaemon.1* |
d47c18c2 | 366 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 367 | |
368 | %files -n gnupg-agent-profile_d | |
369 | %defattr(644,root,root,755) | |
c85d209c | 370 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 371 | |
372 | %files -n gnupg-agent-xinitrc | |
373 | %defattr(644,root,root,755) | |
374 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh | |
74217b8a JB |
375 | |
376 | %if %{with dirmngr} | |
377 | %files -n dirmngr | |
378 | %defattr(644,root,root,755) | |
379 | %attr(755,root,root) %{_bindir}/dirmngr | |
380 | %attr(755,root,root) %{_bindir}/dirmngr-client | |
381 | %attr(755,root,root) %{pkglibexecdir}/dirmngr_ldap | |
382 | %{_mandir}/man1/dirmngr-client.1* | |
383 | %{_mandir}/man8/dirmngr.8* | |
384 | %endif |