3 %bcond_without tests # testsuite on build
4 %bcond_without dirmngr # dirmngr packages build
5 %bcond_without 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
15 Group: Applications/File
16 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
17 # Source0-md5: 626f92eecc6c5560eb4315ae0aeac47c
18 Source1: gnupg-agent.sh
19 Patch0: %{name}-info.patch
20 Patch1: %{name}-nogit.patch
21 Patch2: %{name}-pl.po-update.patch
22 URL: http://www.gnupg.org/
23 BuildRequires: autoconf >= 2.61
24 BuildRequires: automake >= 1:1.14
25 BuildRequires: bzip2-devel
26 BuildRequires: curl-devel >= 7.10
27 BuildRequires: gettext-tools >= 0.17
28 %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
29 BuildRequires: libassuan-devel >= 1:2.5.0
30 BuildRequires: libgcrypt-devel >= 1.8.0
31 BuildRequires: libgpg-error-devel >= 1.25
32 BuildRequires: libksba-devel >= 1.3.4
33 BuildRequires: libusb-devel >= 1.0
34 BuildRequires: npth-devel >= 1.2
35 %{!?with_gnutls:BuildRequires: ntbtls-devel >= 0.1.0}
36 %{?with_dirmngr:BuildRequires: openldap-devel >= 2.4.6}
37 BuildRequires: pkgconfig
38 BuildRequires: readline-devel
39 BuildRequires: rpmbuild(macros) >= 1.177
40 BuildRequires: sqlite3-devel >= 3.7
41 BuildRequires: texinfo
42 BuildRequires: zlib-devel
43 Requires: gnupg2-common = %{version}-%{release}
44 Requires: sqlite3 >= 3.7
45 %if %{with default_gpg}
47 Obsoletes: gnupg-plugin-keys_curl < 2
48 Obsoletes: gnupg-plugin-keys_hkp < 2
49 Provides: gnupg = %{version}-%{release}
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define pkglibexecdir %{_libexecdir}/gnupg2
57 GnuPG is GNU's tool for secure communication and data storage. It can
58 be used to encrypt data and to create digital signatures. It includes
59 an advanced key management facility and is compliant with the proposed
60 OpenPGP Internet standard as described in RFC2440.
62 This is enhanced version.
64 %description -l pl.UTF-8
65 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
66 bezpiecznego przechowywania danych. Może być używany do szyfrowania
67 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
68 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
71 To jest wersja rozszerzona.
74 Summary: GnuPG - common files
75 Summary(pl.UTF-8): GnuPG - pliki wspólne
76 Group: Applications/File
77 Requires: libassuan >= 1:2.5.0
78 Requires: libgcrypt >= 1.8.0
79 Requires: libgpg-error >= 1.25
80 Requires: libksba >= 1.3.4
82 Obsoletes: gnupg2-plugin-keys_curl
83 Obsoletes: gnupg2-plugin-keys_finger
84 Obsoletes: gnupg2-plugin-keys_hkp
85 Obsoletes: gnupg2-plugin-keys_kdns
86 Obsoletes: gnupg2-plugin-keys_ldap
87 Conflicts: gnupg < 1.4.18-2
88 Conflicts: gnupg-agent < 1.9.14-2
91 Common files used by tools from GnuPG project.
93 %description common -l pl.UTF-8
94 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
96 %package -n gnupg-agent
97 Summary: GnuPG extension - agent
98 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
99 Group: Applications/File
100 Requires: %{name}-common = %{version}-%{release}
101 Requires: pinentry >= 0.7.5-2
104 %description -n gnupg-agent
105 GnuPG extension - agent.
107 %description -n gnupg-agent -l pl.UTF-8
108 Rozszerzenie GnuPG - agent.
110 %package -n gnupg-agent-profile_d
111 Summary: gnupg-agent start script for text mode
112 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
113 Group: Applications/File
114 Requires: gnupg-agent = %{version}-%{release}
116 %description -n gnupg-agent-profile_d
117 gnupg-agent start script for text mode.
119 %description -n gnupg-agent-profile_d -l pl.UTF-8
120 Skrypt startowy gnupg-agenta dla trybu tekstowego.
122 %package -n gnupg-agent-xinitrc
123 Summary: gnupg-agent start script for X-Window mode
124 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
125 Group: Applications/File
126 Requires: gnupg-agent = %{version}-%{release}
129 %description -n gnupg-agent-xinitrc
130 gnupg-agent start script for X-Window mode.
132 %description -n gnupg-agent-xinitrc -l pl.UTF-8
133 Skrypt startowy gnupg-agenta dla trybu X-Window.
135 %package -n gnupg-smime
136 Summary: GnuPG extension - S/MIME support
137 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
138 Group: Applications/File
139 Requires: %{name}-common = %{version}-%{release}
140 Conflicts: gnupg-agent < 1.9.14-2
142 %description -n gnupg-smime
143 GnuPG extension - S/MIME support.
145 %description -n gnupg-smime -l pl.UTF-8
146 Rozszerzenie GnuPG - obsługa S/MIME.
149 Summary: X509/LDAP certificate and revocation list client
150 Summary(pl.UTF-8): Klient certyfikatów i list anulujących X509/LDAP
152 Requires: %{name}-common = %{version}-%{release}
154 %description -n dirmngr
155 DirMngr is a client for managing and downloading certificate
156 revocation lists (CRLs) for X509 certificates and for downloading the
157 certificates themselves. DirMngr is usually invoked by gpgsm and in
158 general not used directly.
160 %description -n dirmngr -l pl.UTF-8
161 DirMngr to klient do zarządzania i pobierania list anulujących
162 certyfikaty (CRLs - certificate revocation lists) dla certyfikatów
163 X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle
164 wywoływany przez gpgsm i nie używany bezpośrednio.
167 %setup -q -n gnupg-%{version}
180 if (grep -q ^development_version=yes configure); then
181 echo "configure incorrectly rebuild with messed up development status and likely version and revision." >&2
182 echo "Consider fixing nogit.patch" >&2
187 --libexecdir=%{pkglibexecdir} \
188 %{!?with_dirmngr:--disable-dirmngr} \
190 %{!?with_default_gpg:--enable-gpg-is-gpg2} \
191 %{?with_gnutls:--disable-ntbtls} \
192 %{?with_selinux:--enable-selinux-support} \
193 --enable-symcryptrun \
194 %{!?with_tests:--disable-tests} \
196 --with-capabilities \
197 --with-pinentry-pgm=%{_bindir}/pinentry \
198 --with-mailprog=/usr/lib/sendmail
200 # required for info rebuild
201 %{__make} -C doc defs.inc
206 rm -rf $RPM_BUILD_ROOT
209 DESTDIR=$RPM_BUILD_ROOT \
210 pkglibdir=%{_libexecdir}
212 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
213 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
215 install -d $RPM_BUILD_ROOT%{systemduserunitdir}
216 install -p doc/examples/systemd-user/*.{socket,service} $RPM_BUILD_ROOT%{systemduserunitdir}
218 %if %{without dirmngr}
219 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
221 install -p doc/examples/systemd-user/dirmngr.{socket,service} $RPM_BUILD_ROOT%{systemduserunitdir}
224 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
226 # files useful for users packaged as %doc
227 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
232 rm -rf $RPM_BUILD_ROOT
234 %post common -p /sbin/postshell
235 -/usr/sbin/fix-info-dir -c %{_infodir}
237 %postun common -p /sbin/postshell
238 -/usr/sbin/fix-info-dir -c %{_infodir}
240 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
241 %banner gnupg-agent-1.9.16-2 << EOF
242 Scripts for starting gnupg-agent have been moved to separate
243 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
247 %defattr(644,root,root,755)
248 %if %{with default_gpg}
249 %attr(755,root,root) %{_bindir}/gpg
250 %attr(755,root,root) %{_bindir}/gpgv
251 %{_mandir}/man1/gpg.1*
252 %{_mandir}/man1/gpgv.1*
254 %attr(755,root,root) %{_bindir}/gpg2
255 %attr(755,root,root) %{_bindir}/gpgv2
256 %{_mandir}/man1/gpg2.1*
257 %{_mandir}/man1/gpgv2.1*
260 %files common -f gnupg2.lang
261 %defattr(644,root,root,755)
262 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
263 %attr(755,root,root) %{_bindir}/g13
264 %attr(755,root,root) %{_bindir}/gpg-connect-agent
265 %attr(755,root,root) %{_bindir}/gpgconf
266 %attr(755,root,root) %{_bindir}/gpgparsemail
267 %{?with_tests:%attr(755,root,root) %{_bindir}/gpgscm}
268 %attr(755,root,root) %{_bindir}/gpgsplit
269 %attr(755,root,root) %{_bindir}/gpgtar
270 %attr(755,root,root) %{_bindir}/kbxutil
271 %attr(755,root,root) %{_bindir}/watchgnupg
272 %attr(755,root,root) %{_sbindir}/addgnupghome
273 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
274 %attr(755,root,root) %{_sbindir}/g13-syshelp
275 %dir %{pkglibexecdir}
278 %{_mandir}/man1/gpg-connect-agent.1*
279 %{_mandir}/man1/gpgconf.1*
280 %{_mandir}/man1/gpgparsemail.1*
281 %{_mandir}/man1/gpgtar.1*
282 %{_mandir}/man1/watchgnupg.1*
283 %{_mandir}/man7/gnupg.7*
284 %{_mandir}/man8/addgnupghome.8*
285 %{_mandir}/man8/applygnupgdefaults.8*
286 %{_infodir}/gnupg.info*
288 %files -n gnupg-smime
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_bindir}/gpgsm
291 %{_mandir}/man1/gpgsm.1*
293 %files -n gnupg-agent
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_bindir}/gpg-agent
296 %attr(755,root,root) %{_bindir}/gpg-wks-server
297 %attr(755,root,root) %{_bindir}/symcryptrun
298 %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
299 %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
300 %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
301 %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
302 %attr(755,root,root) %{pkglibexecdir}/scdaemon
303 %{systemduserunitdir}/gpg-agent.service
304 %{systemduserunitdir}/gpg-agent.socket
305 %{systemduserunitdir}/gpg-agent-browser.socket
306 %{systemduserunitdir}/gpg-agent-extra.socket
307 %{systemduserunitdir}/gpg-agent-ssh.socket
308 %{_mandir}/man1/gpg-agent.1*
309 %{_mandir}/man1/gpg-preset-passphrase.1*
310 %{_mandir}/man1/gpg-wks-client.1*
311 %{_mandir}/man1/gpg-wks-server.1*
312 %{_mandir}/man1/scdaemon.1*
313 %{_mandir}/man1/symcryptrun.1*
315 %files -n gnupg-agent-profile_d
316 %defattr(644,root,root,755)
317 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
319 %files -n gnupg-agent-xinitrc
320 %defattr(644,root,root,755)
321 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_bindir}/dirmngr
327 %attr(755,root,root) %{_bindir}/dirmngr-client
328 %attr(755,root,root) %{pkglibexecdir}/dirmngr_ldap
329 %{systemduserunitdir}/dirmngr.service
330 %{systemduserunitdir}/dirmngr.socket
331 %{_mandir}/man1/dirmngr-client.1*
332 %{_mandir}/man8/dirmngr.8*