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: 97fa4809da1e8f24fcb0ed7205b2f484
18 Source1: gnupg-agent.sh
19 Patch0: %{name}-info.patch
20 Patch1: %{name}-nogit.patch
21 Patch2: %{name}-disable_tests.patch
22 Patch3: %{name}-pl.po-update.patch
23 URL: http://www.gnupg.org/
24 BuildRequires: autoconf >= 2.61
25 BuildRequires: automake >= 1:1.14
26 BuildRequires: bzip2-devel
27 BuildRequires: curl-devel >= 7.10
28 BuildRequires: gettext-tools >= 0.17
29 %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
30 BuildRequires: libassuan-devel >= 1:2.5.0
31 BuildRequires: libgcrypt-devel >= 1.7.0
32 BuildRequires: libgpg-error-devel >= 1.24
33 BuildRequires: libksba-devel >= 1.3.4
34 BuildRequires: libusb-devel >= 1.0
35 BuildRequires: npth-devel >= 1.2
36 %{!?with_gnutls:BuildRequires: ntbtls-devel >= 0.1.0}
37 %{?with_dirmngr:BuildRequires: openldap-devel >= 2.4.6}
38 BuildRequires: pkgconfig
39 BuildRequires: readline-devel
40 BuildRequires: rpmbuild(macros) >= 1.177
41 BuildRequires: sqlite3-devel >= 3.7
42 BuildRequires: texinfo
43 BuildRequires: zlib-devel
44 Requires: gnupg2-common = %{version}-%{release}
45 Requires: sqlite3 >= 3.7
46 %if %{with default_gpg}
48 Obsoletes: gnupg-plugin-keys_curl < 2
49 Obsoletes: gnupg-plugin-keys_hkp < 2
50 Provides: gnupg = %{version}-%{release}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define pkglibexecdir %{_libexecdir}/gnupg2
58 GnuPG is GNU's tool for secure communication and data storage. It can
59 be used to encrypt data and to create digital signatures. It includes
60 an advanced key management facility and is compliant with the proposed
61 OpenPGP Internet standard as described in RFC2440.
63 This is enhanced version.
65 %description -l pl.UTF-8
66 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
67 bezpiecznego przechowywania danych. Może być używany do szyfrowania
68 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
69 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
72 To jest wersja rozszerzona.
75 Summary: GnuPG - common files
76 Summary(pl.UTF-8): GnuPG - pliki wspólne
77 Group: Applications/File
78 Requires: libassuan >= 1:2.5.0
79 Requires: libgcrypt >= 1.7.0
80 Requires: libgpg-error >= 1.24
81 Requires: libksba >= 1.3.4
83 Obsoletes: gnupg2-plugin-keys_curl
84 Obsoletes: gnupg2-plugin-keys_finger
85 Obsoletes: gnupg2-plugin-keys_hkp
86 Obsoletes: gnupg2-plugin-keys_kdns
87 Obsoletes: gnupg2-plugin-keys_ldap
88 Conflicts: gnupg < 1.4.18-2
89 Conflicts: gnupg-agent < 1.9.14-2
92 Common files used by tools from GnuPG project.
94 %description common -l pl.UTF-8
95 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
97 %package -n gnupg-agent
98 Summary: GnuPG extension - agent
99 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
100 Group: Applications/File
101 Requires: %{name}-common = %{version}-%{release}
102 Requires: pinentry >= 0.7.5-2
105 %description -n gnupg-agent
106 GnuPG extension - agent.
108 %description -n gnupg-agent -l pl.UTF-8
109 Rozszerzenie GnuPG - agent.
111 %package -n gnupg-agent-profile_d
112 Summary: gnupg-agent start script for text mode
113 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
114 Group: Applications/File
115 Requires: gnupg-agent = %{version}-%{release}
117 %description -n gnupg-agent-profile_d
118 gnupg-agent start script for text mode.
120 %description -n gnupg-agent-profile_d -l pl.UTF-8
121 Skrypt startowy gnupg-agenta dla trybu tekstowego.
123 %package -n gnupg-agent-xinitrc
124 Summary: gnupg-agent start script for X-Window mode
125 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
126 Group: Applications/File
127 Requires: gnupg-agent = %{version}-%{release}
130 %description -n gnupg-agent-xinitrc
131 gnupg-agent start script for X-Window mode.
133 %description -n gnupg-agent-xinitrc -l pl.UTF-8
134 Skrypt startowy gnupg-agenta dla trybu X-Window.
136 %package -n gnupg-smime
137 Summary: GnuPG extension - S/MIME support
138 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
139 Group: Applications/File
140 Requires: %{name}-common = %{version}-%{release}
141 Conflicts: gnupg-agent < 1.9.14-2
143 %description -n gnupg-smime
144 GnuPG extension - S/MIME support.
146 %description -n gnupg-smime -l pl.UTF-8
147 Rozszerzenie GnuPG - obsługa S/MIME.
150 Summary: X509/LDAP certificate and revocation list client
151 Summary(pl.UTF-8): Klient certyfikatów i list anulujących X509/LDAP
153 Requires: %{name}-common = %{version}-%{release}
155 %description -n dirmngr
156 DirMngr is a client for managing and downloading certificate
157 revocation lists (CRLs) for X509 certificates and for downloading the
158 certificates themselves. DirMngr is usually invoked by gpgsm and in
159 general not used directly.
161 %description -n dirmngr -l pl.UTF-8
162 DirMngr to klient do zarządzania i pobierania list anulujących
163 certyfikaty (CRLs - certificate revocation lists) dla certyfikatów
164 X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle
165 wywoływany przez gpgsm i nie używany bezpośrednio.
168 %setup -q -n gnupg-%{version}
171 %{!?with_tests:%patch2 -p1}
182 if (grep -q ^development_version=yes configure); then
183 echo "configure incorrectly rebuild with messed up development status and likely version and revision." >&2
184 echo "Consider fixing nogit.patch" >&2
189 --libexecdir=%{pkglibexecdir} \
190 %{!?with_dirmngr:--disable-dirmngr} \
192 %{!?with_default_gpg:--enable-gpg-is-gpg2} \
193 %{?with_gnutls:--disable-ntbtls} \
194 %{?with_selinux:--enable-selinux-support} \
195 --enable-symcryptrun \
197 --with-capabilities \
198 --with-pinentry-pgm=%{_bindir}/pinentry \
199 --with-mailprog=/usr/lib/sendmail
201 # required for info rebuild
202 %{__make} -C doc defs.inc
207 rm -rf $RPM_BUILD_ROOT
210 DESTDIR=$RPM_BUILD_ROOT \
211 pkglibdir=%{_libexecdir}
213 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
214 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
216 install -d $RPM_BUILD_ROOT%{systemduserunitdir}
217 install -p doc/examples/systemd-user/*.{socket,service} $RPM_BUILD_ROOT%{systemduserunitdir}
219 %if %{without dirmngr}
220 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
222 install -p doc/examples/systemd-user/dirmngr.{socket,service} $RPM_BUILD_ROOT%{systemduserunitdir}
225 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
227 # files useful for users packaged as %doc
228 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
233 rm -rf $RPM_BUILD_ROOT
235 %post common -p /sbin/postshell
236 -/usr/sbin/fix-info-dir -c %{_infodir}
238 %postun common -p /sbin/postshell
239 -/usr/sbin/fix-info-dir -c %{_infodir}
241 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
242 %banner gnupg-agent-1.9.16-2 << EOF
243 Scripts for starting gnupg-agent have been moved to separate
244 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
248 %defattr(644,root,root,755)
249 %if %{with default_gpg}
250 %attr(755,root,root) %{_bindir}/gpg
251 %attr(755,root,root) %{_bindir}/gpgv
252 %{_mandir}/man1/gpg.1*
253 %{_mandir}/man1/gpgv.1*
255 %attr(755,root,root) %{_bindir}/gpg2
256 %attr(755,root,root) %{_bindir}/gpgv2
257 %{_mandir}/man1/gpg2.1*
258 %{_mandir}/man1/gpgv2.1*
261 %files common -f gnupg2.lang
262 %defattr(644,root,root,755)
263 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
264 %attr(755,root,root) %{_bindir}/g13
265 %attr(755,root,root) %{_bindir}/gpg-connect-agent
266 %attr(755,root,root) %{_bindir}/gpgconf
267 %attr(755,root,root) %{_bindir}/gpgparsemail
268 %{?with_tests:%attr(755,root,root) %{_bindir}/gpgscm}
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*