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: fc4377ca67e1bf687eeaf22e79c0b9d1
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: autoconf >= 2.61
22 BuildRequires: automake >= 1:1.10
23 BuildRequires: bzip2-devel
24 BuildRequires: curl-devel
25 BuildRequires: gettext-devel >= 0.16.1
26 BuildRequires: libassuan-devel >= 1:1.0.2
27 BuildRequires: libgcrypt-devel >= 1.2.2
28 BuildRequires: libgpg-error-devel >= 1.4
29 BuildRequires: libksba-devel >= 1.0.2
30 BuildRequires: libusb-devel
31 BuildRequires: openldap-devel >= 2.4.6
32 BuildRequires: pcsc-lite-devel
33 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
34 BuildRequires: rpmbuild(macros) >= 1.177
35 BuildRequires: texinfo
36 BuildRequires: zlib-devel
38 Requires: gnupg2-common = %{version}-%{release}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _libexecdir %{_libdir}/gnupg2
44 GnuPG is GNU's tool for secure communication and data storage. It can
45 be used to encrypt data and to create digital signatures. It includes
46 an advanced key management facility and is compliant with the proposed
47 OpenPGP Internet standard as described in RFC2440.
49 This is enhanced version.
51 %description -l pl.UTF-8
52 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
53 bezpiecznego przechowywania danych. Może być używany do szyfrowania
54 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
55 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
58 To jest wersja rozszerzona.
61 Summary: GnuPG - common files
62 Summary(pl.UTF-8): GnuPG - pliki wspólne
63 Group: Applications/File
64 Requires: libassuan >= 1:1.0.2
65 Requires: libgcrypt >= 1.2.2
66 Requires: libgpg-error >= 1.4
67 Requires: libksba >= 1.0.2
68 Conflicts: gnupg-agent < 1.9.14-2
71 Common files used by tools from GnuPG project.
73 %description common -l pl.UTF-8
74 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
76 %package plugin-keys_curl
77 Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
78 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
79 Group: Applications/File
80 Requires: %{name}-common = %{version}-%{release}
82 %description plugin-keys_curl
83 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
85 %description plugin-keys_curl -l pl.UTF-8
86 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
89 %package plugin-keys_finger
90 Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
91 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
92 Group: Applications/File
93 Requires: %{name}-common = %{version}-%{release}
95 %description plugin-keys_finger
96 GnuPG 2 plugin for allow talk to a FINGER keyserver.
98 %description plugin-keys_finger -l pl.UTF-8
99 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
101 %package plugin-keys_hkp
102 Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
103 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
104 Group: Applications/File
105 Requires: %{name}-common = %{version}-%{release}
107 %description plugin-keys_hkp
108 GnuPG 2 plugin for allow talk to a HKP keyserver.
110 %description plugin-keys_hkp -l pl.UTF-8
111 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
113 %package plugin-keys_ldap
114 Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
115 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
116 Group: Applications/File
117 Requires: %{name}-common = %{version}-%{release}
119 %description plugin-keys_ldap
120 GnuPG 2 plugin for allow talk to a LDAP keyserver.
122 %description plugin-keys_ldap -l pl.UTF-8
123 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
125 %package -n gnupg-agent
126 Summary: GnuPG extension - agent
127 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
128 Group: Applications/File
129 Requires: %{name}-common = %{version}-%{release}
133 %description -n gnupg-agent
134 GnuPG extension - agent.
136 %description -n gnupg-agent -l pl.UTF-8
137 Rozszerzenie GnuPG - agent.
139 %package -n gnupg-agent-profile_d
140 Summary: gnupg-agent start script for text mode
141 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
142 Group: Applications/File
143 Requires: gnupg-agent = %{version}-%{release}
145 %description -n gnupg-agent-profile_d
146 gnupg-agent start script for text mode.
148 %description -n gnupg-agent-profile_d -l pl.UTF-8
149 Skrypt startowy gnupg-agenta dla trybu tekstowego.
151 %package -n gnupg-agent-xinitrc
152 Summary: gnupg-agent start script for X-Window mode
153 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
154 Group: Applications/File
155 Requires: gnupg-agent = %{version}-%{release}
158 %description -n gnupg-agent-xinitrc
159 gnupg-agent start script for X-Window mode.
161 %description -n gnupg-agent-xinitrc -l pl.UTF-8
162 Skrypt startowy gnupg-agenta dla trybu X-Window.
164 %package -n gnupg-smime
165 Summary: GnuPG extension - S/MIME support
166 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
167 Group: Applications/File
168 Requires: %{name}-common = %{version}-%{release}
169 Conflicts: gnupg-agent < 1.9.14-2
171 %description -n gnupg-smime
172 GnuPG extension - S/MIME support.
174 %description -n gnupg-smime -l pl.UTF-8
175 Rozszerzenie GnuPG - obsługa S/MIME.
178 %setup -q -n gnupg-%{version}
182 %{!?with_tests:%patch3 -p1}
186 sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4
190 %{__aclocal} -I m4 -I gl/m4
195 %{!?with_pth:--disable-threads} \
197 --enable-symcryptrun \
198 --with-capabilities \
199 --with-pinentry-pgm=%{_bindir}/pinentry-curses \
200 --with-mailprog=/usr/lib/sendmail
205 rm -rf $RPM_BUILD_ROOT
208 DESTDIR=$RPM_BUILD_ROOT \
209 pkglibdir=%{_libexecdir}
211 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
212 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
214 mv ChangeLog main-ChangeLog || :
215 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
218 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
221 rm -rf $RPM_BUILD_ROOT
223 %post -p /sbin/postshell
224 -/usr/sbin/fix-info-dir -c %{_infodir}
226 %postun -p /sbin/postshell
227 -/usr/sbin/fix-info-dir -c %{_infodir}
229 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
230 %banner gnupg-agent-1.9.16-2 << EOF
231 Scripts for starting gnupg-agent have been moved to separate
232 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
236 %defattr(644,root,root,755)
237 %doc g10-ChangeLog g10/options.skel
238 %attr(755,root,root) %{_bindir}/gpg2
239 %attr(755,root,root) %{_bindir}/gpgv2
240 %{_mandir}/man1/gpg2.1*
241 %{_mandir}/man1/gpgv2.1*
243 %files common -f gnupg2.lang
244 %defattr(644,root,root,755)
245 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
246 %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
247 %attr(755,root,root) %{_bindir}/gpg-connect-agent
248 %attr(755,root,root) %{_bindir}/gpgconf
249 %attr(755,root,root) %{_bindir}/gpgkey2ssh
250 %attr(755,root,root) %{_bindir}/gpgparsemail
251 %attr(755,root,root) %{_bindir}/kbxutil
252 %attr(755,root,root) %{_bindir}/watchgnupg
253 %attr(755,root,root) %{_sbindir}/addgnupghome
254 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
257 %{_mandir}/man1/gpg-connect-agent.1*
258 %{_mandir}/man1/gpgconf.1*
259 %{_mandir}/man1/gpgparsemail.1*
260 %{_mandir}/man1/watchgnupg.1*
261 %{_mandir}/man8/addgnupghome.8*
262 %{_mandir}/man8/applygnupgdefaults.8*
265 %files plugin-keys_curl
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
269 %files plugin-keys_finger
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
273 %files plugin-keys_hkp
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
277 %files plugin-keys_ldap
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
281 %files -n gnupg-smime
282 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_bindir}/gpgsm
285 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
286 %{_mandir}/man1/gpgsm.1*
287 %{_mandir}/man1/gpgsm-gencert.sh.1*
289 %files -n gnupg-agent
290 %defattr(644,root,root,755)
291 %doc agent-ChangeLog scd-ChangeLog
292 %attr(755,root,root) %{_bindir}/gpg-agent
293 %attr(755,root,root) %{_bindir}/scdaemon
294 %attr(755,root,root) %{_bindir}/symcryptrun
295 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
296 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
297 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
298 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
299 %{_mandir}/man1/gpg-agent.1*
300 %{_mandir}/man1/gpg-preset-passphrase.1*
301 %{_mandir}/man1/scdaemon.1*
302 %{_mandir}/man1/symcryptrun.1*
304 %files -n gnupg-agent-profile_d
305 %defattr(644,root,root,755)
306 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
308 %files -n gnupg-agent-xinitrc
309 %defattr(644,root,root,755)
310 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh