]>
Commit | Line | Data |
---|---|---|
79f30f85 | 1 | # |
03076a38 | 2 | # Conditional build: |
491f1c67 | 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 |
9a524b95 JB |
9 | # 2.1.x is development version unfortunately (see gpg2 --version) |
10 | Version: 2.1.16 | |
11 | Release: 0.1 | |
71099ee5 | 12 | License: GPL v3+ |
b626fce0 | 13 | Group: Applications/File |
d47c18c2 | 14 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
9a524b95 | 15 | # Source0-md5: bfb53004773a014d401694f94229fc00 |
b626fce0 | 16 | Source1: gnupg-agent.sh |
c85d209c | 17 | Patch0: %{name}-info.patch |
491f1c67 | 18 | Patch1: %{name}-pth.patch |
ea6e9952 | 19 | Patch2: %{name}-disable_tests.patch |
6f582fc9 | 20 | Patch3: %{name}-pl.po-update.patch |
491f1c67 | 21 | Patch4: %{name}-am.patch |
b626fce0 | 22 | URL: http://www.gnupg.org/ |
7eecd7af | 23 | BuildRequires: adns-devel |
71099ee5 | 24 | BuildRequires: autoconf >= 2.61 |
cc42aea4 | 25 | BuildRequires: automake >= 1:1.14 |
b636b9b9 | 26 | BuildRequires: bzip2-devel |
da0f8718 | 27 | BuildRequires: curl-devel >= 7.10 |
cc42aea4 | 28 | BuildRequires: gettext-devel >= 0.19.3 |
491f1c67 | 29 | BuildRequires: libassuan-devel >= 1:2.0.0 |
cc42aea4 JB |
30 | BuildRequires: libgcrypt-devel >= 1.5.0 |
31 | BuildRequires: libgpg-error-devel >= 1.11 | |
491f1c67 JR |
32 | BuildRequires: libksba-devel >= 1.0.7 |
33 | BuildRequires: libusb-compat-devel | |
34 | BuildRequires: openldap-devel | |
35 | BuildRequires: pcsc-lite-devel | |
36 | %{?with_pth:BuildRequires: pth-devel >= 2.0.0} | |
f197b41f | 37 | BuildRequires: rpmbuild(macros) >= 1.177 |
b626fce0 AM |
38 | BuildRequires: texinfo |
39 | BuildRequires: zlib-devel | |
c85d209c | 40 | Requires: gnupg2-common = %{version}-%{release} |
150f8795 | 41 | Suggests: gnupg-agent |
b626fce0 AM |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
c85d209c | 44 | %define _libexecdir %{_libdir}/gnupg2 |
b626fce0 AM |
45 | |
46 | %description | |
c85d209c AF |
47 | GnuPG is GNU's tool for secure communication and data storage. It can |
48 | be used to encrypt data and to create digital signatures. It includes | |
49 | an advanced key management facility and is compliant with the proposed | |
50 | OpenPGP Internet standard as described in RFC2440. | |
51 | ||
f56b1d35 | 52 | This is enhanced version. |
b626fce0 | 53 | |
0998c692 JR |
54 | %description -l pl.UTF-8 |
55 | GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i | |
56 | bezpiecznego przechowywania danych. Może być używany do szyfrowania | |
57 | oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami | |
58 | i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany | |
c85d209c AF |
59 | w RFC2440. |
60 | ||
f56b1d35 | 61 | To jest wersja rozszerzona. |
c85d209c AF |
62 | |
63 | %package common | |
64 | Summary: GnuPG - common files | |
4049c7b1 | 65 | Summary(pl.UTF-8): GnuPG - pliki wspólne |
c85d209c | 66 | Group: Applications/File |
491f1c67 | 67 | Requires: libassuan >= 1:2.0.0 |
cc42aea4 JB |
68 | Requires: libgcrypt >= 1.5.0 |
69 | Requires: libgpg-error >= 1.11 | |
491f1c67 | 70 | Requires: libksba >= 1.0.7 |
c85d209c AF |
71 | Conflicts: gnupg-agent < 1.9.14-2 |
72 | ||
73 | %description common | |
74 | Common files used by tools from GnuPG project. | |
75 | ||
0998c692 JR |
76 | %description common -l pl.UTF-8 |
77 | Pliki wspólne używane przez różne narzędzia z projektu GnuPG. | |
c85d209c | 78 | |
491f1c67 JR |
79 | %package plugin-keys_curl |
80 | Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver | |
81 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP | |
82 | Group: Applications/File | |
83 | Requires: %{name}-common = %{version}-%{release} | |
84 | Requires: curl-libs >= 7.10 | |
85 | ||
86 | %description plugin-keys_curl | |
87 | GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver. | |
88 | ||
89 | %description plugin-keys_curl -l pl.UTF-8 | |
90 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy | |
91 | HTTP(S)/FTP(S). | |
92 | ||
93 | %package plugin-keys_finger | |
94 | Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver | |
95 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER | |
96 | Group: Applications/File | |
97 | Requires: %{name}-common = %{version}-%{release} | |
98 | ||
99 | %description plugin-keys_finger | |
100 | GnuPG 2 plugin for allow talk to a FINGER keyserver. | |
101 | ||
102 | %description plugin-keys_finger -l pl.UTF-8 | |
103 | Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER. | |
104 | ||
105 | %package plugin-keys_hkp | |
106 | Summary: GnuPG 2 plugin for allow talk to a HKP keyserver | |
107 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP | |
108 | Group: Applications/File | |
109 | Requires: %{name}-common = %{version}-%{release} | |
110 | ||
111 | %description plugin-keys_hkp | |
112 | GnuPG 2 plugin for allow talk to a HKP keyserver. | |
113 | ||
114 | %description plugin-keys_hkp -l pl.UTF-8 | |
115 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP. | |
116 | ||
117 | %package plugin-keys_kdns | |
118 | Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver | |
119 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS | |
120 | Group: Applications/File | |
121 | Requires: %{name}-common = %{version}-%{release} | |
122 | ||
123 | %description plugin-keys_kdns | |
124 | GnuPG 2 plugin for allow talk to a KDNS keyserver. | |
125 | ||
126 | %description plugin-keys_kdns -l pl.UTF-8 | |
127 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS. | |
128 | ||
129 | %package plugin-keys_ldap | |
130 | Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver | |
131 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP | |
132 | Group: Applications/File | |
133 | Requires: %{name}-common = %{version}-%{release} | |
134 | ||
135 | %description plugin-keys_ldap | |
136 | GnuPG 2 plugin for allow talk to a LDAP keyserver. | |
137 | ||
138 | %description plugin-keys_ldap -l pl.UTF-8 | |
139 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP. | |
140 | ||
c85d209c AF |
141 | %package -n gnupg-agent |
142 | Summary: GnuPG extension - agent | |
4049c7b1 | 143 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 144 | Group: Applications/File |
7b3cd4e7 | 145 | Requires: %{name}-common = %{version}-%{release} |
1dbb261a | 146 | Requires: pinentry >= 0.7.5-2 |
c85d209c AF |
147 | Obsoletes: newpg |
148 | ||
149 | %description -n gnupg-agent | |
150 | GnuPG extension - agent. | |
151 | ||
0998c692 | 152 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
153 | Rozszerzenie GnuPG - agent. |
154 | ||
f197b41f | 155 | %package -n gnupg-agent-profile_d |
156 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 157 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 158 | Group: Applications/File |
159 | Requires: gnupg-agent = %{version}-%{release} | |
160 | ||
161 | %description -n gnupg-agent-profile_d | |
162 | gnupg-agent start script for text mode. | |
163 | ||
0998c692 | 164 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 165 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
166 | ||
167 | %package -n gnupg-agent-xinitrc | |
168 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 169 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 170 | Group: Applications/File |
171 | Requires: gnupg-agent = %{version}-%{release} | |
172 | Requires: xinitrc | |
173 | ||
174 | %description -n gnupg-agent-xinitrc | |
175 | gnupg-agent start script for X-Window mode. | |
176 | ||
0998c692 | 177 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 178 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
179 | ||
c85d209c AF |
180 | %package -n gnupg-smime |
181 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 182 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 183 | Group: Applications/File |
7b3cd4e7 | 184 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
185 | Conflicts: gnupg-agent < 1.9.14-2 |
186 | ||
187 | %description -n gnupg-smime | |
188 | GnuPG extension - S/MIME support. | |
189 | ||
0998c692 JR |
190 | %description -n gnupg-smime -l pl.UTF-8 |
191 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 192 | |
b626fce0 AM |
193 | %prep |
194 | %setup -q -n gnupg-%{version} | |
c85d209c | 195 | %patch0 -p1 |
491f1c67 | 196 | %patch1 -p1 |
ea6e9952 | 197 | %{!?with_tests:%patch2 -p1} |
491f1c67 JR |
198 | %patch3 -p1 |
199 | %patch4 -p1 | |
6f582fc9 JB |
200 | |
201 | %{__rm} po/stamp-po | |
b626fce0 AM |
202 | |
203 | %build | |
3d3dbf69 | 204 | %{__gettextize} |
491f1c67 | 205 | %{__aclocal} -I m4 -I gl/m4 |
3d3dbf69 JB |
206 | %{__autoconf} |
207 | %{__autoheader} | |
155bb60b | 208 | %{__automake} |
b626fce0 | 209 | %configure \ |
491f1c67 | 210 | %{!?with_pth:--disable-threads} \ |
df2f3764 | 211 | --enable-gpg \ |
d47c18c2 JB |
212 | --enable-symcryptrun \ |
213 | --with-capabilities \ | |
1dbb261a | 214 | --with-pinentry-pgm=%{_bindir}/pinentry \ |
b626fce0 AM |
215 | --with-mailprog=/usr/lib/sendmail |
216 | ||
62f46a6b | 217 | %{__make} |
b626fce0 AM |
218 | |
219 | %install | |
220 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
221 | |
222 | %{__make} install \ | |
c85d209c AF |
223 | DESTDIR=$RPM_BUILD_ROOT \ |
224 | pkglibdir=%{_libexecdir} | |
b626fce0 | 225 | |
f197b41f | 226 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh |
227 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh | |
c85d209c | 228 | |
f1d02fc8 | 229 | %find_lang gnupg2 |
491f1c67 | 230 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
b626fce0 AM |
231 | |
232 | %clean | |
233 | rm -rf $RPM_BUILD_ROOT | |
234 | ||
491f1c67 | 235 | %post -p /sbin/postshell |
4be7d664 | 236 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 237 | |
491f1c67 | 238 | %postun -p /sbin/postshell |
4be7d664 | 239 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 240 | |
f197b41f | 241 | %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2 |
242 | %banner gnupg-agent-1.9.16-2 << EOF | |
243 | Scripts for starting gnupg-agent have been moved to separate | |
244 | subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc. | |
84ab814f | 245 | EOF |
f197b41f | 246 | |
84ab814f | 247 | %files |
b626fce0 | 248 | %defattr(644,root,root,755) |
6462d2ce | 249 | %doc g10/options.skel |
c85d209c AF |
250 | %attr(755,root,root) %{_bindir}/gpg2 |
251 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
252 | %{_mandir}/man1/gpg2.1* |
253 | %{_mandir}/man1/gpgv2.1* | |
c85d209c AF |
254 | |
255 | %files common -f gnupg2.lang | |
256 | %defattr(644,root,root,755) | |
491f1c67 | 257 | %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO |
df2f3764 | 258 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 259 | %attr(755,root,root) %{_bindir}/gpgconf |
491f1c67 | 260 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 261 | %attr(755,root,root) %{_bindir}/gpgparsemail |
579ff0a0 | 262 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
263 | %attr(755,root,root) %{_bindir}/watchgnupg |
264 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 265 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
579ff0a0 | 266 | %dir %{_libexecdir} |
c85d209c | 267 | %{_datadir}/gnupg |
579ff0a0 JB |
268 | %{_mandir}/man1/gpg-connect-agent.1* |
269 | %{_mandir}/man1/gpgconf.1* | |
270 | %{_mandir}/man1/gpgparsemail.1* | |
271 | %{_mandir}/man1/watchgnupg.1* | |
272 | %{_mandir}/man8/addgnupghome.8* | |
21eea941 | 273 | %{_mandir}/man8/applygnupgdefaults.8* |
00461e0e | 274 | %{_infodir}/gnupg.info* |
c85d209c | 275 | |
491f1c67 JR |
276 | %files plugin-keys_curl |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libexecdir}/gpg2keys_curl | |
279 | ||
280 | %files plugin-keys_finger | |
281 | %defattr(644,root,root,755) | |
282 | %attr(755,root,root) %{_libexecdir}/gpg2keys_finger | |
283 | ||
284 | %files plugin-keys_hkp | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp | |
287 | ||
288 | %files plugin-keys_kdns | |
289 | %defattr(644,root,root,755) | |
290 | %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns | |
291 | ||
292 | %files plugin-keys_ldap | |
293 | %defattr(644,root,root,755) | |
294 | %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap | |
295 | ||
c85d209c AF |
296 | %files -n gnupg-smime |
297 | %defattr(644,root,root,755) | |
b626fce0 | 298 | %attr(755,root,root) %{_bindir}/gpgsm |
491f1c67 | 299 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 | 300 | %{_mandir}/man1/gpgsm.1* |
491f1c67 | 301 | %{_mandir}/man1/gpgsm-gencert.sh.1* |
c85d209c AF |
302 | |
303 | %files -n gnupg-agent | |
304 | %defattr(644,root,root,755) | |
c85d209c | 305 | %attr(755,root,root) %{_bindir}/gpg-agent |
d47c18c2 | 306 | %attr(755,root,root) %{_bindir}/symcryptrun |
491f1c67 | 307 | %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper |
a38280f6 | 308 | %attr(755,root,root) %{_libexecdir}/gpg-check-pattern |
c85d209c AF |
309 | %attr(755,root,root) %{_libexecdir}/gpg-protect-tool |
310 | %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase | |
9a524b95 | 311 | %attr(755,root,root) %{_libexecdir}/gpg-wks-client |
eb43eafb | 312 | %attr(755,root,root) %{_libexecdir}/scdaemon |
579ff0a0 JB |
313 | %{_mandir}/man1/gpg-agent.1* |
314 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
315 | %{_mandir}/man1/scdaemon.1* | |
d47c18c2 | 316 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 317 | |
318 | %files -n gnupg-agent-profile_d | |
319 | %defattr(644,root,root,755) | |
c85d209c | 320 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 321 | |
322 | %files -n gnupg-agent-xinitrc | |
323 | %defattr(644,root,root,755) | |
324 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh |