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: 54732a0a76d59646b7e0b682fb357c22
15 Source1: gnupg-agent.sh
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-pth.patch
18 # send it upstream after updating!
19 Patch2: %{name}-pl.po-update.patch
20 Patch3: %{name}-disable_tests.patch
21 URL: http://www.gnupg.org/
22 BuildRequires: adns-devel
23 BuildRequires: autoconf >= 2.61
24 BuildRequires: automake >= 1:1.10
25 BuildRequires: bzip2-devel
26 BuildRequires: curl-devel
27 BuildRequires: gettext-devel >= 0.16.1
28 BuildRequires: libassuan1-devel >= 1.0.5
29 BuildRequires: libgcrypt-devel >= 1.2.2
30 BuildRequires: libgpg-error-devel >= 1.4
31 BuildRequires: libksba-devel >= 1.0.2
32 BuildRequires: libusb-compat-devel
33 BuildRequires: openldap-devel
34 BuildRequires: pcsc-lite-devel
35 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
36 BuildRequires: rpmbuild(macros) >= 1.177
37 BuildRequires: texinfo
38 BuildRequires: zlib-devel
40 Requires: gnupg2-common = %{version}-%{release}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _libexecdir %{_libdir}/gnupg2
46 GnuPG is GNU's tool for secure communication and data storage. It can
47 be used to encrypt data and to create digital signatures. It includes
48 an advanced key management facility and is compliant with the proposed
49 OpenPGP Internet standard as described in RFC2440.
51 This is enhanced version.
53 %description -l pl.UTF-8
54 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
55 bezpiecznego przechowywania danych. Może być używany do szyfrowania
56 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
57 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
60 To jest wersja rozszerzona.
63 Summary: GnuPG - common files
64 Summary(pl.UTF-8): GnuPG - pliki wspólne
65 Group: Applications/File
66 Requires: libassuan1 >= 1.0.2
67 Requires: libgcrypt >= 1.2.2
68 Requires: libgpg-error >= 1.4
69 Requires: libksba >= 1.0.2
70 Conflicts: gnupg-agent < 1.9.14-2
73 Common files used by tools from GnuPG project.
75 %description common -l pl.UTF-8
76 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
78 %package plugin-keys_curl
79 Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
80 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
81 Group: Applications/File
82 Requires: %{name}-common = %{version}-%{release}
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}
196 %{!?with_tests:%patch3 -p1}
200 sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4
204 %{__aclocal} -I m4 -I gl/m4
209 %{!?with_pth:--disable-threads} \
211 --enable-symcryptrun \
212 --with-capabilities \
213 --with-pinentry-pgm=%{_bindir}/pinentry \
214 --with-mailprog=/usr/lib/sendmail
219 rm -rf $RPM_BUILD_ROOT
222 DESTDIR=$RPM_BUILD_ROOT \
223 pkglibdir=%{_libexecdir}
225 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
226 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
228 mv ChangeLog main-ChangeLog || :
229 find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
232 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
235 rm -rf $RPM_BUILD_ROOT
237 %post -p /sbin/postshell
238 -/usr/sbin/fix-info-dir -c %{_infodir}
240 %postun -p /sbin/postshell
241 -/usr/sbin/fix-info-dir -c %{_infodir}
243 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
244 %banner gnupg-agent-1.9.16-2 << EOF
245 Scripts for starting gnupg-agent have been moved to separate
246 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
250 %defattr(644,root,root,755)
251 %doc g10-ChangeLog g10/options.skel
252 %attr(755,root,root) %{_bindir}/gpg2
253 %attr(755,root,root) %{_bindir}/gpgv2
254 %{_mandir}/man1/gpg2.1*
255 %{_mandir}/man1/gpgv2.1*
257 %files common -f gnupg2.lang
258 %defattr(644,root,root,755)
259 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
260 %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
261 %attr(755,root,root) %{_bindir}/gpg-connect-agent
262 %attr(755,root,root) %{_bindir}/gpgconf
263 %attr(755,root,root) %{_bindir}/gpgkey2ssh
264 %attr(755,root,root) %{_bindir}/gpgparsemail
265 %attr(755,root,root) %{_bindir}/kbxutil
266 %attr(755,root,root) %{_bindir}/watchgnupg
267 %attr(755,root,root) %{_sbindir}/addgnupghome
268 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
271 %{_mandir}/man1/gpg-connect-agent.1*
272 %{_mandir}/man1/gpgconf.1*
273 %{_mandir}/man1/gpgparsemail.1*
274 %{_mandir}/man1/watchgnupg.1*
275 %{_mandir}/man8/addgnupghome.8*
276 %{_mandir}/man8/applygnupgdefaults.8*
277 %{_infodir}/gnupg.info*
279 %files plugin-keys_curl
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
283 %files plugin-keys_finger
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
287 %files plugin-keys_hkp
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
291 %files plugin-keys_kdns
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
295 %files plugin-keys_ldap
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
299 %files -n gnupg-smime
300 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_bindir}/gpgsm
303 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
304 %{_mandir}/man1/gpgsm.1*
305 %{_mandir}/man1/gpgsm-gencert.sh.1*
307 %files -n gnupg-agent
308 %defattr(644,root,root,755)
309 %doc agent-ChangeLog scd-ChangeLog
310 %attr(755,root,root) %{_bindir}/gpg-agent
311 %attr(755,root,root) %{_bindir}/scdaemon
312 %attr(755,root,root) %{_bindir}/symcryptrun
313 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
314 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
315 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
316 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
317 %{_mandir}/man1/gpg-agent.1*
318 %{_mandir}/man1/gpg-preset-passphrase.1*
319 %{_mandir}/man1/scdaemon.1*
320 %{_mandir}/man1/symcryptrun.1*
322 %files -n gnupg-agent-profile_d
323 %defattr(644,root,root,755)
324 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
326 %files -n gnupg-agent-xinitrc
327 %defattr(644,root,root,755)
328 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh