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: 1cb778dd555f87685a8fde2f7113725e
15 Source1: gnupg-agent.sh
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-pth.patch
18 Patch2: %{name}-pl.po-update.patch
19 Patch3: %{name}-disable_tests.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
26 BuildRequires: gettext-devel >= 0.16.1
27 BuildRequires: libassuan-devel >= 1:1.0.4
28 BuildRequires: libgcrypt-devel >= 1.2.2
29 BuildRequires: libgpg-error-devel >= 1.4
30 BuildRequires: libksba-devel >= 1.0.2
31 BuildRequires: libusb-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:1.0.2
66 Requires: libgcrypt >= 1.2.2
67 Requires: libgpg-error >= 1.4
68 Requires: libksba >= 1.0.2
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}
83 %description plugin-keys_curl
84 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
86 %description plugin-keys_curl -l pl.UTF-8
87 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
90 %package plugin-keys_finger
91 Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
92 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
93 Group: Applications/File
94 Requires: %{name}-common = %{version}-%{release}
96 %description plugin-keys_finger
97 GnuPG 2 plugin for allow talk to a FINGER keyserver.
99 %description plugin-keys_finger -l pl.UTF-8
100 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
102 %package plugin-keys_hkp
103 Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
104 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
105 Group: Applications/File
106 Requires: %{name}-common = %{version}-%{release}
108 %description plugin-keys_hkp
109 GnuPG 2 plugin for allow talk to a HKP keyserver.
111 %description plugin-keys_hkp -l pl.UTF-8
112 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
114 %package plugin-keys_kdns
115 Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver
116 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
117 Group: Applications/File
118 Requires: %{name}-common = %{version}-%{release}
120 %description plugin-keys_kdns
121 GnuPG 2 plugin for allow talk to a KDNS keyserver.
123 %description plugin-keys_kdns -l pl.UTF-8
124 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
126 %package plugin-keys_ldap
127 Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
128 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
129 Group: Applications/File
130 Requires: %{name}-common = %{version}-%{release}
132 %description plugin-keys_ldap
133 GnuPG 2 plugin for allow talk to a LDAP keyserver.
135 %description plugin-keys_ldap -l pl.UTF-8
136 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
138 %package -n gnupg-agent
139 Summary: GnuPG extension - agent
140 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
141 Group: Applications/File
142 Requires: %{name}-common = %{version}-%{release}
143 Requires: pinentry >= 0.7.5-2
146 %description -n gnupg-agent
147 GnuPG extension - agent.
149 %description -n gnupg-agent -l pl.UTF-8
150 Rozszerzenie GnuPG - agent.
152 %package -n gnupg-agent-profile_d
153 Summary: gnupg-agent start script for text mode
154 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
155 Group: Applications/File
156 Requires: gnupg-agent = %{version}-%{release}
158 %description -n gnupg-agent-profile_d
159 gnupg-agent start script for text mode.
161 %description -n gnupg-agent-profile_d -l pl.UTF-8
162 Skrypt startowy gnupg-agenta dla trybu tekstowego.
164 %package -n gnupg-agent-xinitrc
165 Summary: gnupg-agent start script for X-Window mode
166 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
167 Group: Applications/File
168 Requires: gnupg-agent = %{version}-%{release}
171 %description -n gnupg-agent-xinitrc
172 gnupg-agent start script for X-Window mode.
174 %description -n gnupg-agent-xinitrc -l pl.UTF-8
175 Skrypt startowy gnupg-agenta dla trybu X-Window.
177 %package -n gnupg-smime
178 Summary: GnuPG extension - S/MIME support
179 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
180 Group: Applications/File
181 Requires: %{name}-common = %{version}-%{release}
182 Conflicts: gnupg-agent < 1.9.14-2
184 %description -n gnupg-smime
185 GnuPG extension - S/MIME support.
187 %description -n gnupg-smime -l pl.UTF-8
188 Rozszerzenie GnuPG - obsługa S/MIME.
191 %setup -q -n gnupg-%{version}
195 %{!?with_tests:%patch3 -p1}
199 sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4
203 %{__aclocal} -I m4 -I gl/m4
208 %{!?with_pth:--disable-threads} \
210 --enable-symcryptrun \
211 --with-capabilities \
212 --with-pinentry-pgm=%{_bindir}/pinentry \
213 --with-mailprog=/usr/lib/sendmail
218 rm -rf $RPM_BUILD_ROOT
221 DESTDIR=$RPM_BUILD_ROOT \
222 pkglibdir=%{_libexecdir}
224 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
225 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
227 mv ChangeLog main-ChangeLog || :
228 find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
231 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
234 rm -rf $RPM_BUILD_ROOT
236 %post -p /sbin/postshell
237 -/usr/sbin/fix-info-dir -c %{_infodir}
239 %postun -p /sbin/postshell
240 -/usr/sbin/fix-info-dir -c %{_infodir}
242 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
243 %banner gnupg-agent-1.9.16-2 << EOF
244 Scripts for starting gnupg-agent have been moved to separate
245 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
249 %defattr(644,root,root,755)
250 %doc g10-ChangeLog g10/options.skel
251 %attr(755,root,root) %{_bindir}/gpg2
252 %attr(755,root,root) %{_bindir}/gpgv2
253 %{_mandir}/man1/gpg2.1*
254 %{_mandir}/man1/gpgv2.1*
256 %files common -f gnupg2.lang
257 %defattr(644,root,root,755)
258 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
259 %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
260 %attr(755,root,root) %{_bindir}/gpg-connect-agent
261 %attr(755,root,root) %{_bindir}/gpgconf
262 %attr(755,root,root) %{_bindir}/gpgkey2ssh
263 %attr(755,root,root) %{_bindir}/gpgparsemail
264 %attr(755,root,root) %{_bindir}/kbxutil
265 %attr(755,root,root) %{_bindir}/watchgnupg
266 %attr(755,root,root) %{_sbindir}/addgnupghome
267 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
270 %{_mandir}/man1/gpg-connect-agent.1*
271 %{_mandir}/man1/gpgconf.1*
272 %{_mandir}/man1/gpgparsemail.1*
273 %{_mandir}/man1/watchgnupg.1*
274 %{_mandir}/man8/addgnupghome.8*
275 %{_mandir}/man8/applygnupgdefaults.8*
276 %{_infodir}/gnupg.info*
278 %files plugin-keys_curl
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
282 %files plugin-keys_finger
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
286 %files plugin-keys_hkp
287 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
290 %files plugin-keys_kdns
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
294 %files plugin-keys_ldap
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
298 %files -n gnupg-smime
299 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_bindir}/gpgsm
302 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
303 %{_mandir}/man1/gpgsm.1*
304 %{_mandir}/man1/gpgsm-gencert.sh.1*
306 %files -n gnupg-agent
307 %defattr(644,root,root,755)
308 %doc agent-ChangeLog scd-ChangeLog
309 %attr(755,root,root) %{_bindir}/gpg-agent
310 %attr(755,root,root) %{_bindir}/scdaemon
311 %attr(755,root,root) %{_bindir}/symcryptrun
312 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
313 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
314 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
315 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
316 %{_mandir}/man1/gpg-agent.1*
317 %{_mandir}/man1/gpg-preset-passphrase.1*
318 %{_mandir}/man1/scdaemon.1*
319 %{_mandir}/man1/symcryptrun.1*
321 %files -n gnupg-agent-profile_d
322 %defattr(644,root,root,755)
323 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
325 %files -n gnupg-agent-xinitrc
326 %defattr(644,root,root,755)
327 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh