]>
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 |
6462d2ce | 9 | Version: 2.0.19 |
ea6e9952 | 10 | Release: 1 |
71099ee5 | 11 | License: GPL v3+ |
b626fce0 | 12 | Group: Applications/File |
d47c18c2 | 13 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
6462d2ce | 14 | # Source0-md5: 6a8589381ca1b0c1a921e9955f42b016 |
b626fce0 | 15 | Source1: gnupg-agent.sh |
c85d209c | 16 | Patch0: %{name}-info.patch |
df2f3764 | 17 | Patch1: %{name}-pth.patch |
ea6e9952 | 18 | Patch2: %{name}-disable_tests.patch |
6f582fc9 | 19 | Patch3: %{name}-pl.po-update.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 |
da0f8718 JB |
25 | BuildRequires: curl-devel >= 7.10 |
26 | BuildRequires: gettext-devel >= 0.17 | |
27 | BuildRequires: libassuan-devel >= 1:2.0.0 | |
28 | BuildRequires: libgcrypt-devel >= 1.4.0 | |
29 | BuildRequires: libgpg-error-devel >= 1.7 | |
30 | BuildRequires: libksba-devel >= 1.0.7 | |
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 |
da0f8718 JB |
65 | Requires: libassuan >= 1:2.0.0 |
66 | Requires: libgcrypt >= 1.4.0 | |
67 | Requires: libgpg-error >= 1.7 | |
68 | Requires: libksba >= 1.0.7 | |
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} | |
da0f8718 | 82 | Requires: curl-libs >= 7.10 |
7b3cd4e7 JB |
83 | |
84 | %description plugin-keys_curl | |
85 | GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver. | |
86 | ||
0998c692 JR |
87 | %description plugin-keys_curl -l pl.UTF-8 |
88 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy | |
7b3cd4e7 JB |
89 | HTTP(S)/FTP(S). |
90 | ||
91 | %package plugin-keys_finger | |
92 | Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver | |
4049c7b1 | 93 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER |
7b3cd4e7 JB |
94 | Group: Applications/File |
95 | Requires: %{name}-common = %{version}-%{release} | |
96 | ||
97 | %description plugin-keys_finger | |
98 | GnuPG 2 plugin for allow talk to a FINGER keyserver. | |
99 | ||
0998c692 JR |
100 | %description plugin-keys_finger -l pl.UTF-8 |
101 | Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER. | |
7b3cd4e7 JB |
102 | |
103 | %package plugin-keys_hkp | |
104 | Summary: GnuPG 2 plugin for allow talk to a HKP keyserver | |
4049c7b1 | 105 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP |
7b3cd4e7 JB |
106 | Group: Applications/File |
107 | Requires: %{name}-common = %{version}-%{release} | |
108 | ||
109 | %description plugin-keys_hkp | |
110 | GnuPG 2 plugin for allow talk to a HKP keyserver. | |
111 | ||
0998c692 JR |
112 | %description plugin-keys_hkp -l pl.UTF-8 |
113 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP. | |
7b3cd4e7 | 114 | |
7eecd7af JB |
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} | |
120 | ||
121 | %description plugin-keys_kdns | |
122 | GnuPG 2 plugin for allow talk to a KDNS keyserver. | |
123 | ||
124 | %description plugin-keys_kdns -l pl.UTF-8 | |
125 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS. | |
126 | ||
7b3cd4e7 JB |
127 | %package plugin-keys_ldap |
128 | Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver | |
4049c7b1 | 129 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP |
7b3cd4e7 JB |
130 | Group: Applications/File |
131 | Requires: %{name}-common = %{version}-%{release} | |
132 | ||
133 | %description plugin-keys_ldap | |
134 | GnuPG 2 plugin for allow talk to a LDAP keyserver. | |
135 | ||
0998c692 JR |
136 | %description plugin-keys_ldap -l pl.UTF-8 |
137 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP. | |
7b3cd4e7 | 138 | |
c85d209c AF |
139 | %package -n gnupg-agent |
140 | Summary: GnuPG extension - agent | |
4049c7b1 | 141 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 142 | Group: Applications/File |
7b3cd4e7 | 143 | Requires: %{name}-common = %{version}-%{release} |
1dbb261a | 144 | Requires: pinentry >= 0.7.5-2 |
c85d209c AF |
145 | Obsoletes: newpg |
146 | ||
147 | %description -n gnupg-agent | |
148 | GnuPG extension - agent. | |
149 | ||
0998c692 | 150 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
151 | Rozszerzenie GnuPG - agent. |
152 | ||
f197b41f | 153 | %package -n gnupg-agent-profile_d |
154 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 155 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 156 | Group: Applications/File |
157 | Requires: gnupg-agent = %{version}-%{release} | |
158 | ||
159 | %description -n gnupg-agent-profile_d | |
160 | gnupg-agent start script for text mode. | |
161 | ||
0998c692 | 162 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 163 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
164 | ||
165 | %package -n gnupg-agent-xinitrc | |
166 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 167 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 168 | Group: Applications/File |
169 | Requires: gnupg-agent = %{version}-%{release} | |
170 | Requires: xinitrc | |
171 | ||
172 | %description -n gnupg-agent-xinitrc | |
173 | gnupg-agent start script for X-Window mode. | |
174 | ||
0998c692 | 175 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 176 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
177 | ||
c85d209c AF |
178 | %package -n gnupg-smime |
179 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 180 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 181 | Group: Applications/File |
7b3cd4e7 | 182 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
183 | Conflicts: gnupg-agent < 1.9.14-2 |
184 | ||
185 | %description -n gnupg-smime | |
186 | GnuPG extension - S/MIME support. | |
187 | ||
0998c692 JR |
188 | %description -n gnupg-smime -l pl.UTF-8 |
189 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 190 | |
b626fce0 AM |
191 | %prep |
192 | %setup -q -n gnupg-%{version} | |
c85d209c | 193 | %patch0 -p1 |
df2f3764 | 194 | %patch1 -p1 |
ea6e9952 | 195 | %{!?with_tests:%patch2 -p1} |
6f582fc9 JB |
196 | %patch3 -p1 |
197 | ||
198 | %{__rm} po/stamp-po | |
b626fce0 AM |
199 | |
200 | %build | |
3d3dbf69 JB |
201 | %{__gettextize} |
202 | %{__aclocal} -I m4 -I gl/m4 | |
203 | %{__autoconf} | |
204 | %{__autoheader} | |
155bb60b | 205 | %{__automake} |
b626fce0 | 206 | %configure \ |
c85d209c | 207 | %{!?with_pth:--disable-threads} \ |
df2f3764 | 208 | --enable-gpg \ |
d47c18c2 JB |
209 | --enable-symcryptrun \ |
210 | --with-capabilities \ | |
1dbb261a | 211 | --with-pinentry-pgm=%{_bindir}/pinentry \ |
b626fce0 AM |
212 | --with-mailprog=/usr/lib/sendmail |
213 | ||
62f46a6b | 214 | %{__make} |
b626fce0 AM |
215 | |
216 | %install | |
217 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
218 | |
219 | %{__make} install \ | |
c85d209c AF |
220 | DESTDIR=$RPM_BUILD_ROOT \ |
221 | pkglibdir=%{_libexecdir} | |
b626fce0 | 222 | |
f197b41f | 223 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh |
224 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh | |
c85d209c | 225 | |
f1d02fc8 | 226 | %find_lang gnupg2 |
84ab814f | 227 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
b626fce0 AM |
228 | |
229 | %clean | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
da0f8718 | 232 | %post -p /sbin/postshell |
4be7d664 | 233 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 234 | |
da0f8718 | 235 | %postun -p /sbin/postshell |
4be7d664 | 236 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 237 | |
f197b41f | 238 | %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2 |
239 | %banner gnupg-agent-1.9.16-2 << EOF | |
240 | Scripts for starting gnupg-agent have been moved to separate | |
241 | subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc. | |
84ab814f | 242 | EOF |
f197b41f | 243 | |
84ab814f | 244 | %files |
b626fce0 | 245 | %defattr(644,root,root,755) |
6462d2ce | 246 | %doc g10/options.skel |
c85d209c AF |
247 | %attr(755,root,root) %{_bindir}/gpg2 |
248 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
249 | %{_mandir}/man1/gpg2.1* |
250 | %{_mandir}/man1/gpgv2.1* | |
c85d209c AF |
251 | |
252 | %files common -f gnupg2.lang | |
253 | %defattr(644,root,root,755) | |
6462d2ce | 254 | %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO |
df2f3764 | 255 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 256 | %attr(755,root,root) %{_bindir}/gpgconf |
3ea00a0c | 257 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 258 | %attr(755,root,root) %{_bindir}/gpgparsemail |
579ff0a0 | 259 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
260 | %attr(755,root,root) %{_bindir}/watchgnupg |
261 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 262 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
579ff0a0 | 263 | %dir %{_libexecdir} |
c85d209c | 264 | %{_datadir}/gnupg |
579ff0a0 JB |
265 | %{_mandir}/man1/gpg-connect-agent.1* |
266 | %{_mandir}/man1/gpgconf.1* | |
267 | %{_mandir}/man1/gpgparsemail.1* | |
268 | %{_mandir}/man1/watchgnupg.1* | |
269 | %{_mandir}/man8/addgnupghome.8* | |
21eea941 | 270 | %{_mandir}/man8/applygnupgdefaults.8* |
00461e0e | 271 | %{_infodir}/gnupg.info* |
c85d209c | 272 | |
7b3cd4e7 JB |
273 | %files plugin-keys_curl |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libexecdir}/gpg2keys_curl | |
276 | ||
277 | %files plugin-keys_finger | |
278 | %defattr(644,root,root,755) | |
279 | %attr(755,root,root) %{_libexecdir}/gpg2keys_finger | |
280 | ||
281 | %files plugin-keys_hkp | |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp | |
284 | ||
7eecd7af JB |
285 | %files plugin-keys_kdns |
286 | %defattr(644,root,root,755) | |
287 | %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns | |
288 | ||
7b3cd4e7 JB |
289 | %files plugin-keys_ldap |
290 | %defattr(644,root,root,755) | |
291 | %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap | |
292 | ||
c85d209c AF |
293 | %files -n gnupg-smime |
294 | %defattr(644,root,root,755) | |
b626fce0 | 295 | %attr(755,root,root) %{_bindir}/gpgsm |
5fbfe0df | 296 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 JB |
297 | %{_mandir}/man1/gpgsm.1* |
298 | %{_mandir}/man1/gpgsm-gencert.sh.1* | |
c85d209c AF |
299 | |
300 | %files -n gnupg-agent | |
301 | %defattr(644,root,root,755) | |
c85d209c | 302 | %attr(755,root,root) %{_bindir}/gpg-agent |
b626fce0 | 303 | %attr(755,root,root) %{_bindir}/scdaemon |
d47c18c2 | 304 | %attr(755,root,root) %{_bindir}/symcryptrun |
fe2f6c68 | 305 | %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper |
a38280f6 | 306 | %attr(755,root,root) %{_libexecdir}/gpg-check-pattern |
c85d209c AF |
307 | %attr(755,root,root) %{_libexecdir}/gpg-protect-tool |
308 | %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase | |
579ff0a0 JB |
309 | %{_mandir}/man1/gpg-agent.1* |
310 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
311 | %{_mandir}/man1/scdaemon.1* | |
d47c18c2 | 312 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 313 | |
314 | %files -n gnupg-agent-profile_d | |
315 | %defattr(644,root,root,755) | |
c85d209c | 316 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 317 | |
318 | %files -n gnupg-agent-xinitrc | |
319 | %defattr(644,root,root,755) | |
320 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh |