1 # TODO: ntbtls instead of gnutls (when released)?
4 %bcond_without tests # testsuite on build
5 %bcond_with selinux # "SELinux hacks"
7 Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version
8 Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
10 # 2.1.x is development version unfortunately (see gpg2 --version)
14 Group: Applications/File
15 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
16 # Source0-md5: 808d10b89c1f0de8d4d2a556aa36b623
17 Source1: gnupg-agent.sh
18 Patch0: %{name}-info.patch
20 Patch2: %{name}-disable_tests.patch
21 Patch3: %{name}-pl.po-update.patch
22 URL: http://www.gnupg.org/
23 BuildRequires: adns-devel
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 BuildRequires: gnutls-devel >= 3.0
30 BuildRequires: libassuan-devel >= 1:2.4.3
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 # only for dirmngr, which is not built here
37 #BuildRequires: openldap-devel
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
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _libexecdir %{_libdir}/gnupg2
52 GnuPG is GNU's tool for secure communication and data storage. It can
53 be used to encrypt data and to create digital signatures. It includes
54 an advanced key management facility and is compliant with the proposed
55 OpenPGP Internet standard as described in RFC2440.
57 This is enhanced version.
59 %description -l pl.UTF-8
60 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
61 bezpiecznego przechowywania danych. Może być używany do szyfrowania
62 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
63 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
66 To jest wersja rozszerzona.
69 Summary: GnuPG - common files
70 Summary(pl.UTF-8): GnuPG - pliki wspólne
71 Group: Applications/File
72 Requires: libassuan >= 1:2.4.3
73 Requires: libgcrypt >= 1.7.0
74 Requires: libgpg-error >= 1.24
75 Requires: libksba >= 1.3.4
77 Obsoletes: gnupg2-plugin-keys_curl
78 Obsoletes: gnupg2-plugin-keys_finger
79 Obsoletes: gnupg2-plugin-keys_hkp
80 Obsoletes: gnupg2-plugin-keys_kdns
81 Obsoletes: gnupg2-plugin-keys_ldap
82 Conflicts: gnupg < 1.4.18-2
83 Conflicts: gnupg-agent < 1.9.14-2
86 Common files used by tools from GnuPG project.
88 %description common -l pl.UTF-8
89 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
91 %package -n gnupg-agent
92 Summary: GnuPG extension - agent
93 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
94 Group: Applications/File
95 Requires: %{name}-common = %{version}-%{release}
96 Requires: pinentry >= 0.7.5-2
99 %description -n gnupg-agent
100 GnuPG extension - agent.
102 %description -n gnupg-agent -l pl.UTF-8
103 Rozszerzenie GnuPG - agent.
105 %package -n gnupg-agent-profile_d
106 Summary: gnupg-agent start script for text mode
107 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
108 Group: Applications/File
109 Requires: gnupg-agent = %{version}-%{release}
111 %description -n gnupg-agent-profile_d
112 gnupg-agent start script for text mode.
114 %description -n gnupg-agent-profile_d -l pl.UTF-8
115 Skrypt startowy gnupg-agenta dla trybu tekstowego.
117 %package -n gnupg-agent-xinitrc
118 Summary: gnupg-agent start script for X-Window mode
119 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
120 Group: Applications/File
121 Requires: gnupg-agent = %{version}-%{release}
124 %description -n gnupg-agent-xinitrc
125 gnupg-agent start script for X-Window mode.
127 %description -n gnupg-agent-xinitrc -l pl.UTF-8
128 Skrypt startowy gnupg-agenta dla trybu X-Window.
130 %package -n gnupg-smime
131 Summary: GnuPG extension - S/MIME support
132 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
133 Group: Applications/File
134 Requires: %{name}-common = %{version}-%{release}
135 Conflicts: gnupg-agent < 1.9.14-2
137 %description -n gnupg-smime
138 GnuPG extension - S/MIME support.
140 %description -n gnupg-smime -l pl.UTF-8
141 Rozszerzenie GnuPG - obsługa S/MIME.
144 %setup -q -n gnupg-%{version}
147 %{!?with_tests:%patch2 -p1}
162 %{?with_selinux:--enable-selinux-support} \
163 --enable-symcryptrun \
164 --with-capabilities \
165 --with-pinentry-pgm=%{_bindir}/pinentry \
166 --with-mailprog=/usr/lib/sendmail
168 # required for info rebuild
169 %{__make} -C doc defs.inc
174 rm -rf $RPM_BUILD_ROOT
177 DESTDIR=$RPM_BUILD_ROOT \
178 pkglibdir=%{_libexecdir}
180 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
181 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
183 # see dirmngr package
184 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
186 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
188 # files useful for users packaged as %doc
189 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
194 rm -rf $RPM_BUILD_ROOT
196 %post common -p /sbin/postshell
197 -/usr/sbin/fix-info-dir -c %{_infodir}
199 %postun common -p /sbin/postshell
200 -/usr/sbin/fix-info-dir -c %{_infodir}
202 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
203 %banner gnupg-agent-1.9.16-2 << EOF
204 Scripts for starting gnupg-agent have been moved to separate
205 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
209 %defattr(644,root,root,755)
210 %doc g10/options.skel
211 %attr(755,root,root) %{_bindir}/gpg2
212 %attr(755,root,root) %{_bindir}/gpgv2
213 %{_mandir}/man1/gpg2.1*
214 %{_mandir}/man1/gpgv2.1*
216 %files common -f gnupg2.lang
217 %defattr(644,root,root,755)
218 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
219 %attr(755,root,root) %{_bindir}/g13
220 %attr(755,root,root) %{_bindir}/gpg-connect-agent
221 %attr(755,root,root) %{_bindir}/gpgconf
222 %attr(755,root,root) %{_bindir}/gpgparsemail
223 %attr(755,root,root) %{_bindir}/gpgscm
224 %attr(755,root,root) %{_bindir}/gpgtar
225 %attr(755,root,root) %{_bindir}/kbxutil
226 %attr(755,root,root) %{_bindir}/watchgnupg
227 %attr(755,root,root) %{_sbindir}/addgnupghome
228 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
229 %attr(755,root,root) %{_sbindir}/g13-syshelp
233 %{_mandir}/man1/gpg-connect-agent.1*
234 %{_mandir}/man1/gpgconf.1*
235 %{_mandir}/man1/gpgparsemail.1*
236 %{_mandir}/man1/watchgnupg.1*
237 %{_mandir}/man7/gnupg.7*
238 %{_mandir}/man8/addgnupghome.8*
239 %{_mandir}/man8/applygnupgdefaults.8*
240 %{_infodir}/gnupg.info*
242 %files -n gnupg-smime
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_bindir}/gpgsm
245 %{_mandir}/man1/gpgsm.1*
247 %files -n gnupg-agent
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_bindir}/gpg-agent
250 %attr(755,root,root) %{_bindir}/symcryptrun
251 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
252 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
253 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
254 %attr(755,root,root) %{_libexecdir}/scdaemon
255 %{_mandir}/man1/gpg-agent.1*
256 %{_mandir}/man1/gpg-preset-passphrase.1*
257 %{_mandir}/man1/scdaemon.1*
258 %{_mandir}/man1/symcryptrun.1*
260 %files -n gnupg-agent-profile_d
261 %defattr(644,root,root,755)
262 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
264 %files -n gnupg-agent-xinitrc
265 %defattr(644,root,root,755)
266 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh