]>
Commit | Line | Data |
---|---|---|
d54c94db | 1 | # |
03076a38 | 2 | # Conditional build: |
c85d209c | 3 | %bcond_without pth # without pth-based based version of gnupg |
fe2f6c68 | 4 | %bcond_without tests # testsuite on build |
d54c94db | 5 | # |
f56b1d35 JB |
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 | |
c85d209c | 8 | Name: gnupg2 |
280b20c1 | 9 | Version: 2.0.11 |
696acc4c | 10 | Release: 2 |
71099ee5 | 11 | License: GPL v3+ |
b626fce0 | 12 | Group: Applications/File |
d47c18c2 | 13 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
280b20c1 | 14 | # Source0-md5: a3014f3b3c919662278060f9a4818b89 |
b626fce0 | 15 | Source1: gnupg-agent.sh |
c85d209c | 16 | Patch0: %{name}-info.patch |
df2f3764 | 17 | Patch1: %{name}-pth.patch |
7e935671 JB |
18 | Patch2: %{name}-pl.po-update.patch |
19 | Patch3: %{name}-disable_tests.patch | |
b626fce0 | 20 | URL: http://www.gnupg.org/ |
7eecd7af | 21 | BuildRequires: adns-devel |
71099ee5 JB |
22 | BuildRequires: autoconf >= 2.61 |
23 | BuildRequires: automake >= 1:1.10 | |
b636b9b9 | 24 | BuildRequires: bzip2-devel |
579ff0a0 | 25 | BuildRequires: curl-devel |
71099ee5 | 26 | BuildRequires: gettext-devel >= 0.16.1 |
de84b455 | 27 | BuildRequires: libassuan-devel >= 1:1.0.4 |
71099ee5 | 28 | BuildRequires: libgcrypt-devel >= 1.2.2 |
579ff0a0 | 29 | BuildRequires: libgpg-error-devel >= 1.4 |
71099ee5 | 30 | BuildRequires: libksba-devel >= 1.0.2 |
2702d975 | 31 | BuildRequires: libusb-compat-devel |
b7eee439 | 32 | BuildRequires: openldap-devel |
b626fce0 | 33 | BuildRequires: pcsc-lite-devel |
1394a6a6 | 34 | %{?with_pth:BuildRequires: pth-devel >= 2.0.0} |
f197b41f | 35 | BuildRequires: rpmbuild(macros) >= 1.177 |
b626fce0 AM |
36 | BuildRequires: texinfo |
37 | BuildRequires: zlib-devel | |
b103a488 | 38 | Suggests: gnupg-agent |
c85d209c | 39 | Requires: gnupg2-common = %{version}-%{release} |
b626fce0 AM |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
c85d209c | 42 | %define _libexecdir %{_libdir}/gnupg2 |
b626fce0 AM |
43 | |
44 | %description | |
c85d209c AF |
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. | |
49 | ||
f56b1d35 | 50 | This is enhanced version. |
b626fce0 | 51 | |
0998c692 JR |
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 | |
c85d209c AF |
57 | w RFC2440. |
58 | ||
f56b1d35 | 59 | To jest wersja rozszerzona. |
c85d209c AF |
60 | |
61 | %package common | |
62 | Summary: GnuPG - common files | |
4049c7b1 | 63 | Summary(pl.UTF-8): GnuPG - pliki wspólne |
c85d209c | 64 | Group: Applications/File |
71099ee5 JB |
65 | Requires: libassuan >= 1:1.0.2 |
66 | Requires: libgcrypt >= 1.2.2 | |
579ff0a0 | 67 | Requires: libgpg-error >= 1.4 |
71099ee5 | 68 | Requires: libksba >= 1.0.2 |
c85d209c AF |
69 | Conflicts: gnupg-agent < 1.9.14-2 |
70 | ||
71 | %description common | |
72 | Common files used by tools from GnuPG project. | |
73 | ||
0998c692 JR |
74 | %description common -l pl.UTF-8 |
75 | Pliki wspólne używane przez różne narzędzia z projektu GnuPG. | |
c85d209c | 76 | |
7b3cd4e7 JB |
77 | %package plugin-keys_curl |
78 | Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver | |
4049c7b1 | 79 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP |
7b3cd4e7 JB |
80 | Group: Applications/File |
81 | Requires: %{name}-common = %{version}-%{release} | |
82 | ||
83 | %description plugin-keys_curl | |
84 | GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver. | |
85 | ||
0998c692 JR |
86 | %description plugin-keys_curl -l pl.UTF-8 |
87 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy | |
7b3cd4e7 JB |
88 | HTTP(S)/FTP(S). |
89 | ||
90 | %package plugin-keys_finger | |
91 | Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver | |
4049c7b1 | 92 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER |
7b3cd4e7 JB |
93 | Group: Applications/File |
94 | Requires: %{name}-common = %{version}-%{release} | |
95 | ||
96 | %description plugin-keys_finger | |
97 | GnuPG 2 plugin for allow talk to a FINGER keyserver. | |
98 | ||
0998c692 JR |
99 | %description plugin-keys_finger -l pl.UTF-8 |
100 | Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER. | |
7b3cd4e7 JB |
101 | |
102 | %package plugin-keys_hkp | |
103 | Summary: GnuPG 2 plugin for allow talk to a HKP keyserver | |
4049c7b1 | 104 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP |
7b3cd4e7 JB |
105 | Group: Applications/File |
106 | Requires: %{name}-common = %{version}-%{release} | |
107 | ||
108 | %description plugin-keys_hkp | |
109 | GnuPG 2 plugin for allow talk to a HKP keyserver. | |
110 | ||
0998c692 JR |
111 | %description plugin-keys_hkp -l pl.UTF-8 |
112 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP. | |
7b3cd4e7 | 113 | |
7eecd7af JB |
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} | |
119 | ||
120 | %description plugin-keys_kdns | |
121 | GnuPG 2 plugin for allow talk to a KDNS keyserver. | |
122 | ||
123 | %description plugin-keys_kdns -l pl.UTF-8 | |
124 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS. | |
125 | ||
7b3cd4e7 JB |
126 | %package plugin-keys_ldap |
127 | Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver | |
4049c7b1 | 128 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP |
7b3cd4e7 JB |
129 | Group: Applications/File |
130 | Requires: %{name}-common = %{version}-%{release} | |
131 | ||
132 | %description plugin-keys_ldap | |
133 | GnuPG 2 plugin for allow talk to a LDAP keyserver. | |
134 | ||
0998c692 JR |
135 | %description plugin-keys_ldap -l pl.UTF-8 |
136 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP. | |
7b3cd4e7 | 137 | |
c85d209c AF |
138 | %package -n gnupg-agent |
139 | Summary: GnuPG extension - agent | |
4049c7b1 | 140 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 141 | Group: Applications/File |
7b3cd4e7 | 142 | Requires: %{name}-common = %{version}-%{release} |
1dbb261a | 143 | Requires: pinentry >= 0.7.5-2 |
c85d209c AF |
144 | Obsoletes: newpg |
145 | ||
146 | %description -n gnupg-agent | |
147 | GnuPG extension - agent. | |
148 | ||
0998c692 | 149 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
150 | Rozszerzenie GnuPG - agent. |
151 | ||
f197b41f | 152 | %package -n gnupg-agent-profile_d |
153 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 154 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 155 | Group: Applications/File |
156 | Requires: gnupg-agent = %{version}-%{release} | |
157 | ||
158 | %description -n gnupg-agent-profile_d | |
159 | gnupg-agent start script for text mode. | |
160 | ||
0998c692 | 161 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 162 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
163 | ||
164 | %package -n gnupg-agent-xinitrc | |
165 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 166 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 167 | Group: Applications/File |
168 | Requires: gnupg-agent = %{version}-%{release} | |
169 | Requires: xinitrc | |
170 | ||
171 | %description -n gnupg-agent-xinitrc | |
172 | gnupg-agent start script for X-Window mode. | |
173 | ||
0998c692 | 174 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 175 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
176 | ||
c85d209c AF |
177 | %package -n gnupg-smime |
178 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 179 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 180 | Group: Applications/File |
7b3cd4e7 | 181 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
182 | Conflicts: gnupg-agent < 1.9.14-2 |
183 | ||
184 | %description -n gnupg-smime | |
185 | GnuPG extension - S/MIME support. | |
186 | ||
0998c692 JR |
187 | %description -n gnupg-smime -l pl.UTF-8 |
188 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 189 | |
b626fce0 AM |
190 | %prep |
191 | %setup -q -n gnupg-%{version} | |
c85d209c | 192 | %patch0 -p1 |
df2f3764 | 193 | %patch1 -p1 |
7e935671 JB |
194 | %patch2 -p1 |
195 | %{!?with_tests:%patch3 -p1} | |
196 | ||
197 | rm -f po/stamp-po | |
b626fce0 | 198 | |
a38280f6 AM |
199 | sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4 |
200 | ||
b626fce0 | 201 | %build |
3d3dbf69 JB |
202 | %{__gettextize} |
203 | %{__aclocal} -I m4 -I gl/m4 | |
204 | %{__autoconf} | |
205 | %{__autoheader} | |
155bb60b | 206 | %{__automake} |
b626fce0 | 207 | %configure \ |
c85d209c | 208 | %{!?with_pth:--disable-threads} \ |
df2f3764 | 209 | --enable-gpg \ |
d47c18c2 JB |
210 | --enable-symcryptrun \ |
211 | --with-capabilities \ | |
1dbb261a | 212 | --with-pinentry-pgm=%{_bindir}/pinentry \ |
b626fce0 AM |
213 | --with-mailprog=/usr/lib/sendmail |
214 | ||
62f46a6b | 215 | %{__make} |
b626fce0 AM |
216 | |
217 | %install | |
218 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
219 | |
220 | %{__make} install \ | |
c85d209c AF |
221 | DESTDIR=$RPM_BUILD_ROOT \ |
222 | pkglibdir=%{_libexecdir} | |
b626fce0 | 223 | |
f197b41f | 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 | |
c85d209c AF |
226 | |
227 | mv ChangeLog main-ChangeLog || : | |
8b86efc3 | 228 | find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh |
b626fce0 | 229 | |
f1d02fc8 | 230 | %find_lang gnupg2 |
84ab814f | 231 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
b626fce0 AM |
232 | |
233 | %clean | |
234 | rm -rf $RPM_BUILD_ROOT | |
235 | ||
4be7d664 ER |
236 | %post -p /sbin/postshell |
237 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
b626fce0 | 238 | |
4be7d664 ER |
239 | %postun -p /sbin/postshell |
240 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
b626fce0 | 241 | |
f197b41f | 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. | |
84ab814f | 246 | EOF |
f197b41f | 247 | |
84ab814f | 248 | %files |
b626fce0 | 249 | %defattr(644,root,root,755) |
c85d209c AF |
250 | %doc g10-ChangeLog g10/options.skel |
251 | %attr(755,root,root) %{_bindir}/gpg2 | |
252 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
253 | %{_mandir}/man1/gpg2.1* |
254 | %{_mandir}/man1/gpgv2.1* | |
c85d209c AF |
255 | |
256 | %files common -f gnupg2.lang | |
257 | %defattr(644,root,root,755) | |
84ab814f | 258 | %doc AUTHORS main-ChangeLog NEWS README THANKS TODO |
71099ee5 | 259 | %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog |
df2f3764 | 260 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 261 | %attr(755,root,root) %{_bindir}/gpgconf |
3ea00a0c | 262 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 263 | %attr(755,root,root) %{_bindir}/gpgparsemail |
579ff0a0 | 264 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
265 | %attr(755,root,root) %{_bindir}/watchgnupg |
266 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 267 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
579ff0a0 | 268 | %dir %{_libexecdir} |
c85d209c | 269 | %{_datadir}/gnupg |
579ff0a0 JB |
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* | |
21eea941 | 275 | %{_mandir}/man8/applygnupgdefaults.8* |
00461e0e | 276 | %{_infodir}/gnupg.info* |
c85d209c | 277 | |
7b3cd4e7 JB |
278 | %files plugin-keys_curl |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_libexecdir}/gpg2keys_curl | |
281 | ||
282 | %files plugin-keys_finger | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_libexecdir}/gpg2keys_finger | |
285 | ||
286 | %files plugin-keys_hkp | |
287 | %defattr(644,root,root,755) | |
288 | %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp | |
289 | ||
7eecd7af JB |
290 | %files plugin-keys_kdns |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns | |
293 | ||
7b3cd4e7 JB |
294 | %files plugin-keys_ldap |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap | |
297 | ||
c85d209c AF |
298 | %files -n gnupg-smime |
299 | %defattr(644,root,root,755) | |
300 | %doc sm-ChangeLog | |
b626fce0 | 301 | %attr(755,root,root) %{_bindir}/gpgsm |
5fbfe0df | 302 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 JB |
303 | %{_mandir}/man1/gpgsm.1* |
304 | %{_mandir}/man1/gpgsm-gencert.sh.1* | |
c85d209c AF |
305 | |
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 | |
b626fce0 | 310 | %attr(755,root,root) %{_bindir}/scdaemon |
d47c18c2 | 311 | %attr(755,root,root) %{_bindir}/symcryptrun |
fe2f6c68 | 312 | %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper |
a38280f6 | 313 | %attr(755,root,root) %{_libexecdir}/gpg-check-pattern |
c85d209c AF |
314 | %attr(755,root,root) %{_libexecdir}/gpg-protect-tool |
315 | %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase | |
579ff0a0 JB |
316 | %{_mandir}/man1/gpg-agent.1* |
317 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
318 | %{_mandir}/man1/scdaemon.1* | |
d47c18c2 | 319 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 320 | |
321 | %files -n gnupg-agent-profile_d | |
322 | %defattr(644,root,root,755) | |
c85d209c | 323 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 324 | |
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 |