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