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: e16efce067ba132f933792a3ec7f180e
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.59
22 BuildRequires: automake >= 1:1.9.3
23 BuildRequires: bzip2-devel
24 BuildRequires: curl-devel
25 BuildRequires: gettext-devel >= 0.15
26 BuildRequires: libassuan-devel >= 1:0.9.3
27 BuildRequires: libgcrypt-devel >= 1.2.0
28 BuildRequires: libgpg-error-devel >= 1.4
29 BuildRequires: libksba-devel >= 1.0.0
30 BuildRequires: libusb-devel
31 BuildRequires: openldap-devel
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
37 Requires: gnupg2-common = %{version}-%{release}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _libexecdir %{_libdir}/gnupg2
43 GnuPG is GNU's tool for secure communication and data storage. It can
44 be used to encrypt data and to create digital signatures. It includes
45 an advanced key management facility and is compliant with the proposed
46 OpenPGP Internet standard as described in RFC2440.
48 This is enhanced version.
50 %description -l pl.UTF-8
51 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
52 bezpiecznego przechowywania danych. Może być używany do szyfrowania
53 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
54 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
57 To jest wersja rozszerzona.
60 Summary: GnuPG - common files
61 Summary(pl.UTF-8): GnuPG - pliki wspólne
62 Group: Applications/File
63 Requires: libassuan >= 1:0.9.3
64 Requires: libgpg-error >= 1.4
65 Conflicts: gnupg-agent < 1.9.14-2
68 Common files used by tools from GnuPG project.
70 %description common -l pl.UTF-8
71 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
73 %package plugin-keys_curl
74 Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
75 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
76 Group: Applications/File
77 Requires: %{name}-common = %{version}-%{release}
79 %description plugin-keys_curl
80 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
82 %description plugin-keys_curl -l pl.UTF-8
83 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
86 %package plugin-keys_finger
87 Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
88 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
89 Group: Applications/File
90 Requires: %{name}-common = %{version}-%{release}
92 %description plugin-keys_finger
93 GnuPG 2 plugin for allow talk to a FINGER keyserver.
95 %description plugin-keys_finger -l pl.UTF-8
96 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
98 %package plugin-keys_hkp
99 Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
100 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
101 Group: Applications/File
102 Requires: %{name}-common = %{version}-%{release}
104 %description plugin-keys_hkp
105 GnuPG 2 plugin for allow talk to a HKP keyserver.
107 %description plugin-keys_hkp -l pl.UTF-8
108 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
110 %package plugin-keys_ldap
111 Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
112 Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
113 Group: Applications/File
114 Requires: %{name}-common = %{version}-%{release}
116 %description plugin-keys_ldap
117 GnuPG 2 plugin for allow talk to a LDAP keyserver.
119 %description plugin-keys_ldap -l pl.UTF-8
120 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
122 %package -n gnupg-agent
123 Summary: GnuPG extension - agent
124 Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
125 Group: Applications/File
126 Requires: %{name}-common = %{version}-%{release}
130 %description -n gnupg-agent
131 GnuPG extension - agent.
133 %description -n gnupg-agent -l pl.UTF-8
134 Rozszerzenie GnuPG - agent.
136 %package -n gnupg-agent-profile_d
137 Summary: gnupg-agent start script for text mode
138 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
139 Group: Applications/File
140 Requires: gnupg-agent = %{version}-%{release}
142 %description -n gnupg-agent-profile_d
143 gnupg-agent start script for text mode.
145 %description -n gnupg-agent-profile_d -l pl.UTF-8
146 Skrypt startowy gnupg-agenta dla trybu tekstowego.
148 %package -n gnupg-agent-xinitrc
149 Summary: gnupg-agent start script for X-Window mode
150 Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
151 Group: Applications/File
152 Requires: gnupg-agent = %{version}-%{release}
155 %description -n gnupg-agent-xinitrc
156 gnupg-agent start script for X-Window mode.
158 %description -n gnupg-agent-xinitrc -l pl.UTF-8
159 Skrypt startowy gnupg-agenta dla trybu X-Window.
161 %package -n gnupg-smime
162 Summary: GnuPG extension - S/MIME support
163 Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
164 Group: Applications/File
165 Requires: %{name}-common = %{version}-%{release}
166 Conflicts: gnupg-agent < 1.9.14-2
168 %description -n gnupg-smime
169 GnuPG extension - S/MIME support.
171 %description -n gnupg-smime -l pl.UTF-8
172 Rozszerzenie GnuPG - obsługa S/MIME.
175 %setup -q -n gnupg-%{version}
179 %{!?with_tests:%patch3 -p1}
185 %{__aclocal} -I m4 -I gl/m4
190 %{!?with_pth:--disable-threads} \
192 --enable-symcryptrun \
193 --with-capabilities \
194 --with-mailprog=/usr/lib/sendmail
199 rm -rf $RPM_BUILD_ROOT
202 DESTDIR=$RPM_BUILD_ROOT \
203 pkglibdir=%{_libexecdir}
205 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
206 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
208 mv ChangeLog main-ChangeLog || :
209 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
212 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
215 rm -rf $RPM_BUILD_ROOT
218 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
221 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
223 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
224 %banner gnupg-agent-1.9.16-2 << EOF
225 Scripts for starting gnupg-agent have been moved to separate
226 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
230 %defattr(644,root,root,755)
231 %doc g10-ChangeLog g10/options.skel
232 %attr(755,root,root) %{_bindir}/gpg2
233 %attr(755,root,root) %{_bindir}/gpgv2
234 %{_mandir}/man1/gpg2.1*
235 %{_mandir}/man1/gpgv2.1*
237 %files common -f gnupg2.lang
238 %defattr(644,root,root,755)
239 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
240 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
241 %attr(755,root,root) %{_bindir}/gpg-connect-agent
242 %attr(755,root,root) %{_bindir}/gpgconf
243 %attr(755,root,root) %{_bindir}/gpgkey2ssh
244 %attr(755,root,root) %{_bindir}/gpgparsemail
245 %attr(755,root,root) %{_bindir}/kbxutil
246 %attr(755,root,root) %{_bindir}/watchgnupg
247 %attr(755,root,root) %{_sbindir}/addgnupghome
248 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
251 %{_mandir}/man1/gpg-connect-agent.1*
252 %{_mandir}/man1/gpgconf.1*
253 %{_mandir}/man1/gpgparsemail.1*
254 %{_mandir}/man1/watchgnupg.1*
255 %{_mandir}/man8/addgnupghome.8*
256 %{_mandir}/man8/applygnupgdefaults.8*
259 %files plugin-keys_curl
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
263 %files plugin-keys_finger
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
267 %files plugin-keys_hkp
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
271 %files plugin-keys_ldap
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
275 %files -n gnupg-smime
276 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_bindir}/gpgsm
279 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
280 %{_mandir}/man1/gpgsm.1*
281 %{_mandir}/man1/gpgsm-gencert.sh.1*
283 %files -n gnupg-agent
284 %defattr(644,root,root,755)
285 %doc agent-ChangeLog scd-ChangeLog
286 %attr(755,root,root) %{_bindir}/gpg-agent
287 %attr(755,root,root) %{_bindir}/scdaemon
288 %attr(755,root,root) %{_bindir}/symcryptrun
289 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
290 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
291 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
292 %{_mandir}/man1/gpg-agent.1*
293 %{_mandir}/man1/gpg-preset-passphrase.1*
294 %{_mandir}/man1/scdaemon.1*
295 %{_mandir}/man1/symcryptrun.1*
297 %files -n gnupg-agent-profile_d
298 %defattr(644,root,root,755)
299 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
301 %files -n gnupg-agent-xinitrc
302 %defattr(644,root,root,755)
303 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh