]>
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 | # |
c85d209c | 6 | Summary: GNU Privacy Guard - tool for secure communication and data storage - development version |
4049c7b1 | 7 | Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozwojowa |
c85d209c | 8 | Name: gnupg2 |
49309934 JB |
9 | Version: 2.0.4 |
10 | Release: 1 | |
b626fce0 AM |
11 | License: GPL |
12 | Group: Applications/File | |
d47c18c2 | 13 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
49309934 | 14 | # Source0-md5: e16efce067ba132f933792a3ec7f180e |
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/ |
fe2f6c68 | 21 | BuildRequires: autoconf >= 2.59 |
3d3dbf69 | 22 | BuildRequires: automake >= 1:1.9.3 |
b636b9b9 | 23 | BuildRequires: bzip2-devel |
579ff0a0 | 24 | BuildRequires: curl-devel |
fe2f6c68 | 25 | BuildRequires: gettext-devel >= 0.15 |
890f5126 JB |
26 | BuildRequires: libassuan-devel >= 1:0.9.3 |
27 | BuildRequires: libgcrypt-devel >= 1.2.0 | |
579ff0a0 JB |
28 | BuildRequires: libgpg-error-devel >= 1.4 |
29 | BuildRequires: libksba-devel >= 1.0.0 | |
aa189556 | 30 | BuildRequires: libusb-devel |
579ff0a0 | 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 | |
c85d209c | 37 | Requires: gnupg2-common = %{version}-%{release} |
b626fce0 AM |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
c85d209c | 40 | %define _libexecdir %{_libdir}/gnupg2 |
b626fce0 AM |
41 | |
42 | %description | |
c85d209c AF |
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. | |
47 | ||
48 | This is development version. Don't use it with production keys. | |
b626fce0 | 49 | |
0998c692 JR |
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 | |
c85d209c AF |
55 | w RFC2440. |
56 | ||
0998c692 | 57 | Wersja rozwojowa. Nie do użytku z kluczami produkcyjnymi. |
c85d209c AF |
58 | |
59 | %package common | |
60 | Summary: GnuPG - common files | |
4049c7b1 | 61 | Summary(pl.UTF-8): GnuPG - pliki wspólne |
c85d209c | 62 | Group: Applications/File |
890f5126 | 63 | Requires: libassuan >= 1:0.9.3 |
579ff0a0 | 64 | Requires: libgpg-error >= 1.4 |
c85d209c AF |
65 | Conflicts: gnupg-agent < 1.9.14-2 |
66 | ||
67 | %description common | |
68 | Common files used by tools from GnuPG project. | |
69 | ||
0998c692 JR |
70 | %description common -l pl.UTF-8 |
71 | Pliki wspólne używane przez różne narzędzia z projektu GnuPG. | |
c85d209c | 72 | |
7b3cd4e7 JB |
73 | %package plugin-keys_curl |
74 | Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver | |
4049c7b1 | 75 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP |
7b3cd4e7 JB |
76 | Group: Applications/File |
77 | Requires: %{name}-common = %{version}-%{release} | |
78 | ||
79 | %description plugin-keys_curl | |
80 | GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver. | |
81 | ||
0998c692 JR |
82 | %description plugin-keys_curl -l pl.UTF-8 |
83 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy | |
7b3cd4e7 JB |
84 | HTTP(S)/FTP(S). |
85 | ||
86 | %package plugin-keys_finger | |
87 | Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver | |
4049c7b1 | 88 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER |
7b3cd4e7 JB |
89 | Group: Applications/File |
90 | Requires: %{name}-common = %{version}-%{release} | |
91 | ||
92 | %description plugin-keys_finger | |
93 | GnuPG 2 plugin for allow talk to a FINGER keyserver. | |
94 | ||
0998c692 JR |
95 | %description plugin-keys_finger -l pl.UTF-8 |
96 | Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER. | |
7b3cd4e7 JB |
97 | |
98 | %package plugin-keys_hkp | |
99 | Summary: GnuPG 2 plugin for allow talk to a HKP keyserver | |
4049c7b1 | 100 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP |
7b3cd4e7 JB |
101 | Group: Applications/File |
102 | Requires: %{name}-common = %{version}-%{release} | |
103 | ||
104 | %description plugin-keys_hkp | |
105 | GnuPG 2 plugin for allow talk to a HKP keyserver. | |
106 | ||
0998c692 JR |
107 | %description plugin-keys_hkp -l pl.UTF-8 |
108 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP. | |
7b3cd4e7 JB |
109 | |
110 | %package plugin-keys_ldap | |
111 | Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver | |
4049c7b1 | 112 | Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP |
7b3cd4e7 JB |
113 | Group: Applications/File |
114 | Requires: %{name}-common = %{version}-%{release} | |
115 | ||
116 | %description plugin-keys_ldap | |
117 | GnuPG 2 plugin for allow talk to a LDAP keyserver. | |
118 | ||
0998c692 JR |
119 | %description plugin-keys_ldap -l pl.UTF-8 |
120 | Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP. | |
7b3cd4e7 | 121 | |
c85d209c AF |
122 | %package -n gnupg-agent |
123 | Summary: GnuPG extension - agent | |
4049c7b1 | 124 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 125 | Group: Applications/File |
7b3cd4e7 | 126 | Requires: %{name}-common = %{version}-%{release} |
c85d209c | 127 | Requires: pinentry |
c85d209c AF |
128 | Obsoletes: newpg |
129 | ||
130 | %description -n gnupg-agent | |
131 | GnuPG extension - agent. | |
132 | ||
0998c692 | 133 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
134 | Rozszerzenie GnuPG - agent. |
135 | ||
f197b41f | 136 | %package -n gnupg-agent-profile_d |
137 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 138 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 139 | Group: Applications/File |
140 | Requires: gnupg-agent = %{version}-%{release} | |
141 | ||
142 | %description -n gnupg-agent-profile_d | |
143 | gnupg-agent start script for text mode. | |
144 | ||
0998c692 | 145 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 146 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
147 | ||
148 | %package -n gnupg-agent-xinitrc | |
149 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 150 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 151 | Group: Applications/File |
152 | Requires: gnupg-agent = %{version}-%{release} | |
153 | Requires: xinitrc | |
154 | ||
155 | %description -n gnupg-agent-xinitrc | |
156 | gnupg-agent start script for X-Window mode. | |
157 | ||
0998c692 | 158 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 159 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
160 | ||
c85d209c AF |
161 | %package -n gnupg-smime |
162 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 163 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 164 | Group: Applications/File |
7b3cd4e7 | 165 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
166 | Conflicts: gnupg-agent < 1.9.14-2 |
167 | ||
168 | %description -n gnupg-smime | |
169 | GnuPG extension - S/MIME support. | |
170 | ||
0998c692 JR |
171 | %description -n gnupg-smime -l pl.UTF-8 |
172 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 173 | |
b626fce0 AM |
174 | %prep |
175 | %setup -q -n gnupg-%{version} | |
c85d209c | 176 | %patch0 -p1 |
df2f3764 | 177 | %patch1 -p1 |
7e935671 JB |
178 | %patch2 -p1 |
179 | %{!?with_tests:%patch3 -p1} | |
180 | ||
181 | rm -f po/stamp-po | |
b626fce0 AM |
182 | |
183 | %build | |
3d3dbf69 JB |
184 | %{__gettextize} |
185 | %{__aclocal} -I m4 -I gl/m4 | |
186 | %{__autoconf} | |
187 | %{__autoheader} | |
155bb60b | 188 | %{__automake} |
b626fce0 | 189 | %configure \ |
c85d209c | 190 | %{!?with_pth:--disable-threads} \ |
df2f3764 | 191 | --enable-gpg \ |
d47c18c2 JB |
192 | --enable-symcryptrun \ |
193 | --with-capabilities \ | |
b626fce0 AM |
194 | --with-mailprog=/usr/lib/sendmail |
195 | ||
155bb60b | 196 | %{__make} |
b626fce0 AM |
197 | |
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
200 | |
201 | %{__make} install \ | |
c85d209c AF |
202 | DESTDIR=$RPM_BUILD_ROOT \ |
203 | pkglibdir=%{_libexecdir} | |
b626fce0 | 204 | |
f197b41f | 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 | |
c85d209c AF |
207 | |
208 | mv ChangeLog main-ChangeLog || : | |
209 | find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh | |
b626fce0 | 210 | |
f1d02fc8 | 211 | %find_lang gnupg2 |
84ab814f | 212 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
b626fce0 AM |
213 | |
214 | %clean | |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
217 | %post | |
218 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
219 | ||
220 | %postun | |
221 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
222 | ||
f197b41f | 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. | |
84ab814f | 227 | EOF |
f197b41f | 228 | |
84ab814f | 229 | %files |
b626fce0 | 230 | %defattr(644,root,root,755) |
c85d209c AF |
231 | %doc g10-ChangeLog g10/options.skel |
232 | %attr(755,root,root) %{_bindir}/gpg2 | |
233 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
234 | %{_mandir}/man1/gpg2.1* |
235 | %{_mandir}/man1/gpgv2.1* | |
c85d209c AF |
236 | |
237 | %files common -f gnupg2.lang | |
238 | %defattr(644,root,root,755) | |
84ab814f | 239 | %doc AUTHORS main-ChangeLog NEWS README THANKS TODO |
c85d209c | 240 | %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog |
df2f3764 | 241 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 242 | %attr(755,root,root) %{_bindir}/gpgconf |
3ea00a0c | 243 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 244 | %attr(755,root,root) %{_bindir}/gpgparsemail |
579ff0a0 | 245 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
246 | %attr(755,root,root) %{_bindir}/watchgnupg |
247 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 248 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
579ff0a0 | 249 | %dir %{_libexecdir} |
c85d209c | 250 | %{_datadir}/gnupg |
579ff0a0 JB |
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* | |
21eea941 | 256 | %{_mandir}/man8/applygnupgdefaults.8* |
579ff0a0 | 257 | %{_infodir}/*.info* |
c85d209c | 258 | |
7b3cd4e7 JB |
259 | %files plugin-keys_curl |
260 | %defattr(644,root,root,755) | |
261 | %attr(755,root,root) %{_libexecdir}/gpg2keys_curl | |
262 | ||
263 | %files plugin-keys_finger | |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_libexecdir}/gpg2keys_finger | |
266 | ||
267 | %files plugin-keys_hkp | |
268 | %defattr(644,root,root,755) | |
269 | %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp | |
270 | ||
271 | %files plugin-keys_ldap | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap | |
274 | ||
c85d209c AF |
275 | %files -n gnupg-smime |
276 | %defattr(644,root,root,755) | |
277 | %doc sm-ChangeLog | |
b626fce0 | 278 | %attr(755,root,root) %{_bindir}/gpgsm |
5fbfe0df | 279 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 JB |
280 | %{_mandir}/man1/gpgsm.1* |
281 | %{_mandir}/man1/gpgsm-gencert.sh.1* | |
c85d209c AF |
282 | |
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 | |
b626fce0 | 287 | %attr(755,root,root) %{_bindir}/scdaemon |
d47c18c2 | 288 | %attr(755,root,root) %{_bindir}/symcryptrun |
fe2f6c68 | 289 | %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper |
c85d209c AF |
290 | %attr(755,root,root) %{_libexecdir}/gpg-protect-tool |
291 | %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase | |
579ff0a0 JB |
292 | %{_mandir}/man1/gpg-agent.1* |
293 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
294 | %{_mandir}/man1/scdaemon.1* | |
d47c18c2 | 295 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 296 | |
297 | %files -n gnupg-agent-profile_d | |
298 | %defattr(644,root,root,755) | |
c85d209c | 299 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 300 | |
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 |