]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- updated to 2.2.3 (new long stable branch)
[packages/gnupg2.git] / gnupg2.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # testsuite on build
4 %bcond_without  dirmngr         # dirmngr packages build
5 %bcond_with     default_gpg     # install as gpg/gpgv instead of gpg2/gpgv2
6 %bcond_with     gnutls          # GnuTLS instead of NTBTLS
7 %bcond_with     selinux         # "SELinux hacks"
8 #
9 Summary:        GNU Privacy Guard - tool for secure communication and data storage - enhanced version
10 Summary(pl.UTF-8):      GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
11 Name:           gnupg2
12 # 2.1.x is development version unfortunately (see gpg2 --version)
13 Version:        2.2.3
14 Release:        0.1
15 License:        GPL v3+
16 Group:          Applications/File
17 Source0:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
18 # Source0-md5:  6911c0127e4231ce52d60f26029dba68
19 Source1:        gnupg-agent.sh
20 Patch0:         %{name}-info.patch
21 Patch1:         %{name}-pth.patch
22 Patch2:         %{name}-disable_tests.patch
23 Patch3:         %{name}-pl.po-update.patch
24 Patch4:         %{name}-am.patch
25 URL:            http://www.gnupg.org/
26 BuildRequires:  autoconf >= 2.61
27 BuildRequires:  automake >= 1:1.14
28 BuildRequires:  bzip2-devel
29 BuildRequires:  curl-devel >= 7.10
30 BuildRequires:  gettext-tools >= 0.17
31 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0}
32 BuildRequires:  libassuan-devel >= 1:2.4.3
33 BuildRequires:  libgcrypt-devel >= 1.7.0
34 BuildRequires:  libgpg-error-devel >= 1.24
35 BuildRequires:  libksba-devel >= 1.3.4
36 BuildRequires:  libusb-devel >= 1.0
37 BuildRequires:  npth-devel >= 1.2
38 %{!?with_gnutls:BuildRequires:  ntbtls-devel >= 0.1.0}
39 %{?with_dirmngr:BuildRequires:  openldap-devel >= 2.4.6}
40 BuildRequires:  pkgconfig
41 BuildRequires:  readline-devel
42 BuildRequires:  rpmbuild(macros) >= 1.177
43 BuildRequires:  texinfo
44 BuildRequires:  zlib-devel
45 Requires:       gnupg2-common = %{version}-%{release}
46 Requires:       sqlite3 >= 3.7
47 %{?with_default_gpg:Obsoletes:  gnupg < 2}
48 Suggests:       gnupg-agent
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %define         pkglibexecdir   %{_libexecdir}/gnupg2
52
53 %description
54 GnuPG is GNU's tool for secure communication and data storage. It can
55 be used to encrypt data and to create digital signatures. It includes
56 an advanced key management facility and is compliant with the proposed
57 OpenPGP Internet standard as described in RFC2440.
58
59 This is enhanced version.
60
61 %description -l pl.UTF-8
62 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
63 bezpiecznego przechowywania danych. Może być używany do szyfrowania
64 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
65 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
66 w RFC2440.
67
68 To jest wersja rozszerzona.
69
70 %package common
71 Summary:        GnuPG - common files
72 Summary(pl.UTF-8):      GnuPG - pliki wspólne
73 Group:          Applications/File
74 Requires:       libassuan >= 1:2.0.0
75 Requires:       libgcrypt >= 1.5.0
76 Requires:       libgpg-error >= 1.11
77 Requires:       libksba >= 1.0.7
78 Conflicts:      gnupg-agent < 1.9.14-2
79
80 %description common
81 Common files used by tools from GnuPG project.
82
83 %description common -l pl.UTF-8
84 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
85
86 %package plugin-keys_curl
87 Summary:        GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
88 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
89 Group:          Applications/File
90 Requires:       %{name}-common = %{version}-%{release}
91 Requires:       curl-libs >= 7.10
92
93 %description plugin-keys_curl
94 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
95
96 %description plugin-keys_curl -l pl.UTF-8
97 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
98 HTTP(S)/FTP(S).
99
100 %package plugin-keys_finger
101 Summary:        GnuPG 2 plugin for allow talk to a FINGER keyserver
102 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
103 Group:          Applications/File
104 Requires:       %{name}-common = %{version}-%{release}
105
106 %description plugin-keys_finger
107 GnuPG 2 plugin for allow talk to a FINGER keyserver.
108
109 %description plugin-keys_finger -l pl.UTF-8
110 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
111
112 %package plugin-keys_hkp
113 Summary:        GnuPG 2 plugin for allow talk to a HKP keyserver
114 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
115 Group:          Applications/File
116 Requires:       %{name}-common = %{version}-%{release}
117
118 %description plugin-keys_hkp
119 GnuPG 2 plugin for allow talk to a HKP keyserver.
120
121 %description plugin-keys_hkp -l pl.UTF-8
122 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
123
124 %package plugin-keys_kdns
125 Summary:        GnuPG 2 plugin for allow talk to a KDNS keyserver
126 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
127 Group:          Applications/File
128 Requires:       %{name}-common = %{version}-%{release}
129
130 %description plugin-keys_kdns
131 GnuPG 2 plugin for allow talk to a KDNS keyserver.
132
133 %description plugin-keys_kdns -l pl.UTF-8
134 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
135
136 %package plugin-keys_ldap
137 Summary:        GnuPG 2 plugin for allow talk to a LDAP keyserver
138 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
139 Group:          Applications/File
140 Requires:       %{name}-common = %{version}-%{release}
141
142 %description plugin-keys_ldap
143 GnuPG 2 plugin for allow talk to a LDAP keyserver.
144
145 %description plugin-keys_ldap -l pl.UTF-8
146 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
147
148 %package -n gnupg-agent
149 Summary:        GnuPG extension - agent
150 Summary(pl.UTF-8):      Rozszerzenie GnuPG - agent
151 Group:          Applications/File
152 Requires:       %{name}-common = %{version}-%{release}
153 Requires:       pinentry >= 0.7.5-2
154 Obsoletes:      newpg
155
156 %description -n gnupg-agent
157 GnuPG extension - agent.
158
159 %description -n gnupg-agent -l pl.UTF-8
160 Rozszerzenie GnuPG - agent.
161
162 %package -n gnupg-agent-profile_d
163 Summary:        gnupg-agent start script for text mode
164 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu tekstowego
165 Group:          Applications/File
166 Requires:       gnupg-agent = %{version}-%{release}
167
168 %description -n gnupg-agent-profile_d
169 gnupg-agent start script for text mode.
170
171 %description -n gnupg-agent-profile_d -l pl.UTF-8
172 Skrypt startowy gnupg-agenta dla trybu tekstowego.
173
174 %package -n gnupg-agent-xinitrc
175 Summary:        gnupg-agent start script for X-Window mode
176 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu X-Window
177 Group:          Applications/File
178 Requires:       gnupg-agent = %{version}-%{release}
179 Requires:       xinitrc
180
181 %description -n gnupg-agent-xinitrc
182 gnupg-agent start script for X-Window mode.
183
184 %description -n gnupg-agent-xinitrc -l pl.UTF-8
185 Skrypt startowy gnupg-agenta dla trybu X-Window.
186
187 %package -n gnupg-smime
188 Summary:        GnuPG extension - S/MIME support
189 Summary(pl.UTF-8):      Rozszerzenie GnuPG - obsługa S/MIME
190 Group:          Applications/File
191 Requires:       %{name}-common = %{version}-%{release}
192 Conflicts:      gnupg-agent < 1.9.14-2
193
194 %description -n gnupg-smime
195 GnuPG extension - S/MIME support.
196
197 %description -n gnupg-smime -l pl.UTF-8
198 Rozszerzenie GnuPG - obsługa S/MIME.
199
200 %package -n dirmngr
201 Summary:        X509/LDAP certificate and revocation list client
202 Summary(pl.UTF-8):      Klient certyfikatów i list anulujących X509/LDAP
203 Group:          Applications
204 Requires:       %{name}-common = %{version}-%{release}
205
206 %description -n dirmngr
207 DirMngr is a client for managing and downloading certificate
208 revocation lists (CRLs) for X509 certificates and for downloading the
209 certificates themselves. DirMngr is usually invoked by gpgsm and in
210 general not used directly.
211
212 %description -n dirmngr -l pl.UTF-8
213 DirMngr to klient do zarządzania i pobierania list anulujących
214 certyfikaty (CRLs - certificate revocation lists) dla certyfikatów
215 X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle
216 wywoływany przez gpgsm i nie używany bezpośrednio.
217
218 %prep
219 %setup -q -n gnupg-%{version}
220 %patch0 -p1
221 %patch1 -p1
222 %{!?with_tests:%patch2 -p1}
223 %patch3 -p1
224 %patch4 -p1
225
226 %{__rm} po/stamp-po
227
228 %build
229 %{__gettextize}
230 %{__aclocal} -I m4 -I gl/m4
231 %{__autoconf}
232 %{__autoheader}
233 %{__automake}
234 %configure \
235         --libexecdir=%{pkglibexecdir} \
236         %{!?with_dirmngr:--disable-dirmngr} \
237         --enable-g13 \
238         %{!?with_default_gpg:--enable-gpg-is-gpg2} \
239         %{?with_gnutls:--disable-ntbtls} \
240         %{?with_selinux:--enable-selinux-support} \
241         --enable-symcryptrun \
242         --enable-wks-tools \
243         --with-capabilities \
244         --with-pinentry-pgm=%{_bindir}/pinentry \
245         --with-mailprog=/usr/lib/sendmail
246
247 %{__make}
248
249 %install
250 rm -rf $RPM_BUILD_ROOT
251
252 %{__make} install \
253         DESTDIR=$RPM_BUILD_ROOT \
254         pkglibdir=%{_libexecdir}
255
256 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
257 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
258
259 %if %{without dirmngr}
260 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
261 %endif
262
263 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
264
265 # files useful for users packaged as %doc
266 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
267
268 %find_lang gnupg2
269 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
270
271 %clean
272 rm -rf $RPM_BUILD_ROOT
273
274 %post   -p /sbin/postshell
275 -/usr/sbin/fix-info-dir -c %{_infodir}
276
277 %postun -p /sbin/postshell
278 -/usr/sbin/fix-info-dir -c %{_infodir}
279
280 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
281 %banner gnupg-agent-1.9.16-2 << EOF
282 Scripts for starting gnupg-agent have been moved to separate
283 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
284 EOF
285
286 %files
287 %defattr(644,root,root,755)
288 %if %{with default_gpg}
289 %attr(755,root,root) %{_bindir}/gpg
290 %attr(755,root,root) %{_bindir}/gpgv
291 %{_mandir}/man1/gpg.1*
292 %{_mandir}/man1/gpgv.1*
293 %else
294 %attr(755,root,root) %{_bindir}/gpg2
295 %attr(755,root,root) %{_bindir}/gpgv2
296 %{_mandir}/man1/gpg2.1*
297 %{_mandir}/man1/gpgv2.1*
298 %endif
299
300 %files common -f gnupg2.lang
301 %defattr(644,root,root,755)
302 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO
303 %attr(755,root,root) %{_bindir}/gpg-connect-agent
304 %attr(755,root,root) %{_bindir}/gpgconf
305 %attr(755,root,root) %{_bindir}/gpgkey2ssh
306 %attr(755,root,root) %{_bindir}/gpgparsemail
307 %attr(755,root,root) %{_bindir}/kbxutil
308 %attr(755,root,root) %{_bindir}/watchgnupg
309 %attr(755,root,root) %{_sbindir}/addgnupghome
310 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
311 %attr(755,root,root) %{_sbindir}/g13-syshelp
312 %dir %{pkglibexecdir}
313
314 %{_datadir}/gnupg
315 %{_mandir}/man1/gpg-connect-agent.1*
316 %{_mandir}/man1/gpgconf.1*
317 %{_mandir}/man1/gpgparsemail.1*
318 %{_mandir}/man1/gpgtar.1*
319 %{_mandir}/man1/watchgnupg.1*
320 %{_mandir}/man8/addgnupghome.8*
321 %{_mandir}/man8/applygnupgdefaults.8*
322 %{_infodir}/gnupg.info*
323
324 %files plugin-keys_curl
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
327
328 %files plugin-keys_finger
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
331
332 %files plugin-keys_hkp
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
335
336 %files plugin-keys_kdns
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
339
340 %files plugin-keys_ldap
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
343
344 %files -n gnupg-smime
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_bindir}/gpgsm
347 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
348 %{_mandir}/man1/gpgsm.1*
349 %{_mandir}/man1/gpgsm-gencert.sh.1*
350
351 %files -n gnupg-agent
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/gpg-agent
354 %attr(755,root,root) %{_bindir}/gpg-wks-server
355 %attr(755,root,root) %{_bindir}/symcryptrun
356 %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
357 %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
358 %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
359 %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
360 %attr(755,root,root) %{pkglibexecdir}/scdaemon
361 %{_mandir}/man1/gpg-agent.1*
362 %{_mandir}/man1/gpg-preset-passphrase.1*
363 %{_mandir}/man1/gpg-wks-client.1*
364 %{_mandir}/man1/gpg-wks-server.1*
365 %{_mandir}/man1/scdaemon.1*
366 %{_mandir}/man1/symcryptrun.1*
367
368 %files -n gnupg-agent-profile_d
369 %defattr(644,root,root,755)
370 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
371
372 %files -n gnupg-agent-xinitrc
373 %defattr(644,root,root,755)
374 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
375
376 %if %{with dirmngr}
377 %files -n dirmngr
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_bindir}/dirmngr
380 %attr(755,root,root) %{_bindir}/dirmngr-client
381 %attr(755,root,root) %{pkglibexecdir}/dirmngr_ldap
382 %{_mandir}/man1/dirmngr-client.1*
383 %{_mandir}/man8/dirmngr.8*
384 %endif
This page took 0.095434 seconds and 3 git commands to generate.