3 %bcond_without tests # testsuite on build
4 %bcond_without dirmngr # dirmngr packages build
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"
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
12 # 2.1.x is development version unfortunately (see gpg2 --version)
16 Group: Applications/File
17 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
18 # Source0-md5: 709e5af5bba84d251c520222e720972f
19 Source1: gnupg-agent.sh
20 Patch0: %{name}-info.patch
21 Patch1: %{name}-pth.patch
22 Patch2: %{name}-disable_tests.patch
23 Patch3: %{name}-pl.po-update.patch
24 Patch4: %{name}-am.patch
25 URL: http://www.gnupg.org/
26 BuildRequires: autoconf >= 2.61
27 BuildRequires: automake >= 1:1.14
28 BuildRequires: bzip2-devel
29 BuildRequires: curl-devel >= 7.10
30 BuildRequires: gettext-tools >= 0.17
31 %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
32 BuildRequires: libassuan-devel >= 1:2.5.0
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}
39 %{?with_dirmngr:BuildRequires: openldap-devel >= 2.4.6}
40 BuildRequires: pkgconfig
41 BuildRequires: readline-devel
42 BuildRequires: rpmbuild(macros) >= 1.177
43 BuildRequires: texinfo
44 BuildRequires: zlib-devel
45 Requires: gnupg2-common = %{version}-%{release}
46 Requires: sqlite3 >= 3.7
47 %{?with_default_gpg:Obsoletes: gnupg < 2}
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 %define pkglibexecdir %{_libexecdir}/gnupg2
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.
59 This is enhanced version.
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
68 To jest wersja rozszerzona.
71 Summary: GnuPG - common files
72 Summary(pl.UTF-8): GnuPG - pliki wspólne
73 Group: Applications/File
74 Requires: libassuan >= 1:2.5.0
75 Requires: libgcrypt >= 1.7.0
76 Requires: libgpg-error >= 1.24
77 Requires: libksba >= 1.3.4
79 Obsoletes: gnupg2-plugin-keys_curl
80 Obsoletes: gnupg2-plugin-keys_finger
81 Obsoletes: gnupg2-plugin-keys_hkp
82 Obsoletes: gnupg2-plugin-keys_kdns
83 Obsoletes: gnupg2-plugin-keys_ldap
84 Conflicts: gnupg < 1.4.18-2
85 Conflicts: gnupg-agent < 1.9.14-2
88 Common files used by tools from GnuPG project.
90 %description common -l pl.UTF-8
91 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
93 %package plugin-keys_curl
94 Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
95 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
96 Group: Applications/File
97 Requires: %{name}-common = %{version}-%{release}
98 Requires: curl-libs >= 7.10
100 %description plugin-keys_curl
101 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
103 %description plugin-keys_curl -l pl.UTF-8
104 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
107 %package plugin-keys_finger
108 Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
109 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
110 Group: Applications/File
111 Requires: %{name}-common = %{version}-%{release}
113 %description plugin-keys_finger
114 GnuPG 2 plugin for allow talk to a FINGER keyserver.
116 %description plugin-keys_finger -l pl.UTF-8
117 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
119 %package plugin-keys_hkp
120 Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
121 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
122 Group: Applications/File
123 Requires: %{name}-common = %{version}-%{release}
125 %description plugin-keys_hkp
126 GnuPG 2 plugin for allow talk to a HKP keyserver.
128 %description plugin-keys_hkp -l pl.UTF-8
129 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
131 %package plugin-keys_kdns
132 Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver
133 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
134 Group: Applications/File
135 Requires: %{name}-common = %{version}-%{release}
137 %description plugin-keys_kdns
138 GnuPG 2 plugin for allow talk to a KDNS keyserver.
140 %description plugin-keys_kdns -l pl.UTF-8
141 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
143 %package plugin-keys_ldap
144 Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
145 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
146 Group: Applications/File
147 Requires: %{name}-common = %{version}-%{release}
149 %description plugin-keys_ldap
150 GnuPG 2 plugin for allow talk to a LDAP keyserver.
152 %description plugin-keys_ldap -l pl.UTF-8
153 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
155 %package -n gnupg-agent
156 Summary: GnuPG extension - agent
157 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
158 Group: Applications/File
159 Requires: %{name}-common = %{version}-%{release}
160 Requires: pinentry >= 0.7.5-2
163 %description -n gnupg-agent
164 GnuPG extension - agent.
166 %description -n gnupg-agent -l pl.UTF-8
167 Rozszerzenie GnuPG - agent.
169 %package -n gnupg-agent-profile_d
170 Summary: gnupg-agent start script for text mode
171 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
172 Group: Applications/File
173 Requires: gnupg-agent = %{version}-%{release}
175 %description -n gnupg-agent-profile_d
176 gnupg-agent start script for text mode.
178 %description -n gnupg-agent-profile_d -l pl.UTF-8
179 Skrypt startowy gnupg-agenta dla trybu tekstowego.
181 %package -n gnupg-agent-xinitrc
182 Summary: gnupg-agent start script for X-Window mode
183 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
184 Group: Applications/File
185 Requires: gnupg-agent = %{version}-%{release}
188 %description -n gnupg-agent-xinitrc
189 gnupg-agent start script for X-Window mode.
191 %description -n gnupg-agent-xinitrc -l pl.UTF-8
192 Skrypt startowy gnupg-agenta dla trybu X-Window.
194 %package -n gnupg-smime
195 Summary: GnuPG extension - S/MIME support
196 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
197 Group: Applications/File
198 Requires: %{name}-common = %{version}-%{release}
199 Conflicts: gnupg-agent < 1.9.14-2
201 %description -n gnupg-smime
202 GnuPG extension - S/MIME support.
204 %description -n gnupg-smime -l pl.UTF-8
205 Rozszerzenie GnuPG - obsługa S/MIME.
208 Summary: X509/LDAP certificate and revocation list client
209 Summary(pl.UTF-8): Klient certyfikatów i list anulujących X509/LDAP
211 Requires: %{name}-common = %{version}-%{release}
213 %description -n dirmngr
214 DirMngr is a client for managing and downloading certificate
215 revocation lists (CRLs) for X509 certificates and for downloading the
216 certificates themselves. DirMngr is usually invoked by gpgsm and in
217 general not used directly.
219 %description -n dirmngr -l pl.UTF-8
220 DirMngr to klient do zarządzania i pobierania list anulujących
221 certyfikaty (CRLs - certificate revocation lists) dla certyfikatów
222 X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle
223 wywoływany przez gpgsm i nie używany bezpośrednio.
226 %setup -q -n gnupg-%{version}
229 %{!?with_tests:%patch2 -p1}
237 %{__aclocal} -I m4 -I gl/m4
242 --libexecdir=%{pkglibexecdir} \
243 %{!?with_dirmngr:--disable-dirmngr} \
245 %{!?with_default_gpg:--enable-gpg-is-gpg2} \
246 %{?with_gnutls:--disable-ntbtls} \
247 %{?with_selinux:--enable-selinux-support} \
248 --enable-symcryptrun \
250 --with-capabilities \
251 --with-pinentry-pgm=%{_bindir}/pinentry \
252 --with-mailprog=/usr/lib/sendmail
257 rm -rf $RPM_BUILD_ROOT
260 DESTDIR=$RPM_BUILD_ROOT \
261 pkglibdir=%{_libexecdir}
263 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
264 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
266 %if %{without dirmngr}
267 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
270 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
272 # files useful for users packaged as %doc
273 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
276 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
279 rm -rf $RPM_BUILD_ROOT
281 %post -p /sbin/postshell
282 -/usr/sbin/fix-info-dir -c %{_infodir}
284 %postun -p /sbin/postshell
285 -/usr/sbin/fix-info-dir -c %{_infodir}
287 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
288 %banner gnupg-agent-1.9.16-2 << EOF
289 Scripts for starting gnupg-agent have been moved to separate
290 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
294 %defattr(644,root,root,755)
295 %if %{with default_gpg}
296 %attr(755,root,root) %{_bindir}/gpg
297 %attr(755,root,root) %{_bindir}/gpgv
298 %{_mandir}/man1/gpg.1*
299 %{_mandir}/man1/gpgv.1*
301 %attr(755,root,root) %{_bindir}/gpg2
302 %attr(755,root,root) %{_bindir}/gpgv2
303 %{_mandir}/man1/gpg2.1*
304 %{_mandir}/man1/gpgv2.1*
307 %files common -f gnupg2.lang
308 %defattr(644,root,root,755)
309 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO
310 %attr(755,root,root) %{_bindir}/gpg-connect-agent
311 %attr(755,root,root) %{_bindir}/gpgconf
312 %attr(755,root,root) %{_bindir}/gpgkey2ssh
313 %attr(755,root,root) %{_bindir}/gpgparsemail
314 %attr(755,root,root) %{_bindir}/kbxutil
315 %attr(755,root,root) %{_bindir}/watchgnupg
316 %attr(755,root,root) %{_sbindir}/addgnupghome
317 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
318 %attr(755,root,root) %{_sbindir}/g13-syshelp
319 %dir %{pkglibexecdir}
322 %{_mandir}/man1/gpg-connect-agent.1*
323 %{_mandir}/man1/gpgconf.1*
324 %{_mandir}/man1/gpgparsemail.1*
325 %{_mandir}/man1/gpgtar.1*
326 %{_mandir}/man1/watchgnupg.1*
327 %{_mandir}/man8/addgnupghome.8*
328 %{_mandir}/man8/applygnupgdefaults.8*
329 %{_infodir}/gnupg.info*
331 %files plugin-keys_curl
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
335 %files plugin-keys_finger
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
339 %files plugin-keys_hkp
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
343 %files plugin-keys_kdns
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
347 %files plugin-keys_ldap
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
351 %files -n gnupg-smime
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/gpgsm
354 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
355 %{_mandir}/man1/gpgsm.1*
356 %{_mandir}/man1/gpgsm-gencert.sh.1*
358 %files -n gnupg-agent
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_bindir}/gpg-agent
361 %attr(755,root,root) %{_bindir}/gpg-wks-server
362 %attr(755,root,root) %{_bindir}/symcryptrun
363 %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
364 %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
365 %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
366 %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
367 %attr(755,root,root) %{pkglibexecdir}/scdaemon
368 %{_mandir}/man1/gpg-agent.1*
369 %{_mandir}/man1/gpg-preset-passphrase.1*
370 %{_mandir}/man1/gpg-wks-client.1*
371 %{_mandir}/man1/gpg-wks-server.1*
372 %{_mandir}/man1/scdaemon.1*
373 %{_mandir}/man1/symcryptrun.1*
375 %files -n gnupg-agent-profile_d
376 %defattr(644,root,root,755)
377 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
379 %files -n gnupg-agent-xinitrc
380 %defattr(644,root,root,755)
381 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_bindir}/dirmngr
387 %attr(755,root,root) %{_bindir}/dirmngr-client
388 %attr(755,root,root) %{pkglibexecdir}/dirmngr_ldap
389 %{_mandir}/man1/dirmngr-client.1*
390 %{_mandir}/man8/dirmngr.8*