3 %bcond_without pth # without pth-based based version of gnupg
4 %bcond_without tests # testsuite on build
6 Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version
7 Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
12 Group: Applications/File
13 Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
14 # Source0-md5: 2f37e0722666a0fedbe4d9f9227ac4d7
15 Source1: gnupg-agent.sh
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-pth.patch
18 Patch2: %{name}-disable_tests.patch
19 Patch3: %{name}-pl.po-update.patch
20 URL: http://www.gnupg.org/
21 BuildRequires: adns-devel
22 BuildRequires: autoconf >= 2.61
23 BuildRequires: automake >= 1:1.10
24 BuildRequires: bzip2-devel
25 BuildRequires: curl-devel >= 7.10
26 BuildRequires: gettext-devel >= 0.17
27 BuildRequires: libassuan-devel >= 1:2.0.0
28 BuildRequires: libgcrypt-devel >= 1.4.0
29 BuildRequires: libgpg-error-devel >= 1.7
30 BuildRequires: libksba-devel >= 1.0.7
31 BuildRequires: libusb-compat-devel
32 BuildRequires: openldap-devel
33 BuildRequires: pcsc-lite-devel
34 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
35 BuildRequires: rpmbuild(macros) >= 1.177
36 BuildRequires: texinfo
37 BuildRequires: zlib-devel
39 Requires: gnupg2-common = %{version}-%{release}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _libexecdir %{_libdir}/gnupg2
45 GnuPG is GNU's tool for secure communication and data storage. It can
46 be used to encrypt data and to create digital signatures. It includes
47 an advanced key management facility and is compliant with the proposed
48 OpenPGP Internet standard as described in RFC2440.
50 This is enhanced version.
52 %description -l pl.UTF-8
53 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
54 bezpiecznego przechowywania danych. Może być używany do szyfrowania
55 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
56 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
59 To jest wersja rozszerzona.
62 Summary: GnuPG - common files
63 Summary(pl.UTF-8): GnuPG - pliki wspólne
64 Group: Applications/File
65 Requires: libassuan >= 1:2.0.0
66 Requires: libgcrypt >= 1.4.0
67 Requires: libgpg-error >= 1.7
68 Requires: libksba >= 1.0.7
69 Conflicts: gnupg-agent < 1.9.14-2
72 Common files used by tools from GnuPG project.
74 %description common -l pl.UTF-8
75 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
77 %package plugin-keys_curl
78 Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
79 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
80 Group: Applications/File
81 Requires: %{name}-common = %{version}-%{release}
82 Requires: curl-libs >= 7.10
84 %description plugin-keys_curl
85 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
87 %description plugin-keys_curl -l pl.UTF-8
88 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
91 %package plugin-keys_finger
92 Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
93 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
94 Group: Applications/File
95 Requires: %{name}-common = %{version}-%{release}
97 %description plugin-keys_finger
98 GnuPG 2 plugin for allow talk to a FINGER keyserver.
100 %description plugin-keys_finger -l pl.UTF-8
101 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
103 %package plugin-keys_hkp
104 Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
105 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
106 Group: Applications/File
107 Requires: %{name}-common = %{version}-%{release}
109 %description plugin-keys_hkp
110 GnuPG 2 plugin for allow talk to a HKP keyserver.
112 %description plugin-keys_hkp -l pl.UTF-8
113 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
115 %package plugin-keys_kdns
116 Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver
117 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
118 Group: Applications/File
119 Requires: %{name}-common = %{version}-%{release}
121 %description plugin-keys_kdns
122 GnuPG 2 plugin for allow talk to a KDNS keyserver.
124 %description plugin-keys_kdns -l pl.UTF-8
125 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
127 %package plugin-keys_ldap
128 Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
129 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
130 Group: Applications/File
131 Requires: %{name}-common = %{version}-%{release}
133 %description plugin-keys_ldap
134 GnuPG 2 plugin for allow talk to a LDAP keyserver.
136 %description plugin-keys_ldap -l pl.UTF-8
137 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
139 %package -n gnupg-agent
140 Summary: GnuPG extension - agent
141 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
142 Group: Applications/File
143 Requires: %{name}-common = %{version}-%{release}
144 Requires: pinentry >= 0.7.5-2
147 %description -n gnupg-agent
148 GnuPG extension - agent.
150 %description -n gnupg-agent -l pl.UTF-8
151 Rozszerzenie GnuPG - agent.
153 %package -n gnupg-agent-profile_d
154 Summary: gnupg-agent start script for text mode
155 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
156 Group: Applications/File
157 Requires: gnupg-agent = %{version}-%{release}
159 %description -n gnupg-agent-profile_d
160 gnupg-agent start script for text mode.
162 %description -n gnupg-agent-profile_d -l pl.UTF-8
163 Skrypt startowy gnupg-agenta dla trybu tekstowego.
165 %package -n gnupg-agent-xinitrc
166 Summary: gnupg-agent start script for X-Window mode
167 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
168 Group: Applications/File
169 Requires: gnupg-agent = %{version}-%{release}
172 %description -n gnupg-agent-xinitrc
173 gnupg-agent start script for X-Window mode.
175 %description -n gnupg-agent-xinitrc -l pl.UTF-8
176 Skrypt startowy gnupg-agenta dla trybu X-Window.
178 %package -n gnupg-smime
179 Summary: GnuPG extension - S/MIME support
180 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
181 Group: Applications/File
182 Requires: %{name}-common = %{version}-%{release}
183 Conflicts: gnupg-agent < 1.9.14-2
185 %description -n gnupg-smime
186 GnuPG extension - S/MIME support.
188 %description -n gnupg-smime -l pl.UTF-8
189 Rozszerzenie GnuPG - obsługa S/MIME.
192 %setup -q -n gnupg-%{version}
195 %{!?with_tests:%patch2 -p1}
202 %{__aclocal} -I m4 -I gl/m4
207 %{!?with_pth:--disable-threads} \
209 --enable-symcryptrun \
210 --with-capabilities \
211 --with-pinentry-pgm=%{_bindir}/pinentry \
212 --with-mailprog=/usr/lib/sendmail
217 rm -rf $RPM_BUILD_ROOT
220 DESTDIR=$RPM_BUILD_ROOT \
221 pkglibdir=%{_libexecdir}
223 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
224 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
226 mv ChangeLog main-ChangeLog || :
227 find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
230 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
233 rm -rf $RPM_BUILD_ROOT
235 %post -p /sbin/postshell
236 -/usr/sbin/fix-info-dir -c %{_infodir}
238 %postun -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 %doc g10-ChangeLog g10/options.skel
250 %attr(755,root,root) %{_bindir}/gpg2
251 %attr(755,root,root) %{_bindir}/gpgv2
252 %{_mandir}/man1/gpg2.1*
253 %{_mandir}/man1/gpgv2.1*
255 %files common -f gnupg2.lang
256 %defattr(644,root,root,755)
257 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
258 %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
259 %attr(755,root,root) %{_bindir}/gpg-connect-agent
260 %attr(755,root,root) %{_bindir}/gpgconf
261 %attr(755,root,root) %{_bindir}/gpgkey2ssh
262 %attr(755,root,root) %{_bindir}/gpgparsemail
263 %attr(755,root,root) %{_bindir}/kbxutil
264 %attr(755,root,root) %{_bindir}/watchgnupg
265 %attr(755,root,root) %{_sbindir}/addgnupghome
266 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
269 %{_mandir}/man1/gpg-connect-agent.1*
270 %{_mandir}/man1/gpgconf.1*
271 %{_mandir}/man1/gpgparsemail.1*
272 %{_mandir}/man1/watchgnupg.1*
273 %{_mandir}/man8/addgnupghome.8*
274 %{_mandir}/man8/applygnupgdefaults.8*
275 %{_infodir}/gnupg.info*
277 %files plugin-keys_curl
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
281 %files plugin-keys_finger
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
285 %files plugin-keys_hkp
286 %defattr(644,root,root,755)
287 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
289 %files plugin-keys_kdns
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
293 %files plugin-keys_ldap
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
297 %files -n gnupg-smime
298 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/gpgsm
301 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
302 %{_mandir}/man1/gpgsm.1*
303 %{_mandir}/man1/gpgsm-gencert.sh.1*
305 %files -n gnupg-agent
306 %defattr(644,root,root,755)
307 %doc agent-ChangeLog scd-ChangeLog
308 %attr(755,root,root) %{_bindir}/gpg-agent
309 %attr(755,root,root) %{_bindir}/scdaemon
310 %attr(755,root,root) %{_bindir}/symcryptrun
311 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
312 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
313 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
314 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
315 %{_mandir}/man1/gpg-agent.1*
316 %{_mandir}/man1/gpg-preset-passphrase.1*
317 %{_mandir}/man1/scdaemon.1*
318 %{_mandir}/man1/symcryptrun.1*
320 %files -n gnupg-agent-profile_d
321 %defattr(644,root,root,755)
322 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
324 %files -n gnupg-agent-xinitrc
325 %defattr(644,root,root,755)
326 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh