]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
5a2f1bfb6e13321e39c6e2b9f1258b9ede53649c
[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.4
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:  709e5af5bba84d251c520222e720972f
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.5.0
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.5.0
75 Requires:       libgcrypt >= 1.7.0
76 Requires:       libgpg-error >= 1.24
77 Requires:       libksba >= 1.3.4
78 Requires:       npth >= 1.2
79 Obsoletes:      gnupg2-plugin-keys_curl
80 Obsoletes:      gnupg2-plugin-keys_finger
81 Obsoletes:      gnupg2-plugin-keys_hkp
82 Obsoletes:      gnupg2-plugin-keys_kdns
83 Obsoletes:      gnupg2-plugin-keys_ldap
84 Conflicts:      gnupg < 1.4.18-2
85 Conflicts:      gnupg-agent < 1.9.14-2
86
87 %description common
88 Common files used by tools from GnuPG project.
89
90 %description common -l pl.UTF-8
91 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
92
93 %package plugin-keys_curl
94 Summary:        GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
95 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
96 Group:          Applications/File
97 Requires:       %{name}-common = %{version}-%{release}
98 Requires:       curl-libs >= 7.10
99
100 %description plugin-keys_curl
101 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
102
103 %description plugin-keys_curl -l pl.UTF-8
104 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
105 HTTP(S)/FTP(S).
106
107 %package plugin-keys_finger
108 Summary:        GnuPG 2 plugin for allow talk to a FINGER keyserver
109 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
110 Group:          Applications/File
111 Requires:       %{name}-common = %{version}-%{release}
112
113 %description plugin-keys_finger
114 GnuPG 2 plugin for allow talk to a FINGER keyserver.
115
116 %description plugin-keys_finger -l pl.UTF-8
117 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
118
119 %package plugin-keys_hkp
120 Summary:        GnuPG 2 plugin for allow talk to a HKP keyserver
121 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
122 Group:          Applications/File
123 Requires:       %{name}-common = %{version}-%{release}
124
125 %description plugin-keys_hkp
126 GnuPG 2 plugin for allow talk to a HKP keyserver.
127
128 %description plugin-keys_hkp -l pl.UTF-8
129 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
130
131 %package plugin-keys_kdns
132 Summary:        GnuPG 2 plugin for allow talk to a KDNS keyserver
133 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
134 Group:          Applications/File
135 Requires:       %{name}-common = %{version}-%{release}
136
137 %description plugin-keys_kdns
138 GnuPG 2 plugin for allow talk to a KDNS keyserver.
139
140 %description plugin-keys_kdns -l pl.UTF-8
141 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
142
143 %package plugin-keys_ldap
144 Summary:        GnuPG 2 plugin for allow talk to a LDAP keyserver
145 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
146 Group:          Applications/File
147 Requires:       %{name}-common = %{version}-%{release}
148
149 %description plugin-keys_ldap
150 GnuPG 2 plugin for allow talk to a LDAP keyserver.
151
152 %description plugin-keys_ldap -l pl.UTF-8
153 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
154
155 %package -n gnupg-agent
156 Summary:        GnuPG extension - agent
157 Summary(pl.UTF-8):      Rozszerzenie GnuPG - agent
158 Group:          Applications/File
159 Requires:       %{name}-common = %{version}-%{release}
160 Requires:       pinentry >= 0.7.5-2
161 Obsoletes:      newpg
162
163 %description -n gnupg-agent
164 GnuPG extension - agent.
165
166 %description -n gnupg-agent -l pl.UTF-8
167 Rozszerzenie GnuPG - agent.
168
169 %package -n gnupg-agent-profile_d
170 Summary:        gnupg-agent start script for text mode
171 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu tekstowego
172 Group:          Applications/File
173 Requires:       gnupg-agent = %{version}-%{release}
174
175 %description -n gnupg-agent-profile_d
176 gnupg-agent start script for text mode.
177
178 %description -n gnupg-agent-profile_d -l pl.UTF-8
179 Skrypt startowy gnupg-agenta dla trybu tekstowego.
180
181 %package -n gnupg-agent-xinitrc
182 Summary:        gnupg-agent start script for X-Window mode
183 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu X-Window
184 Group:          Applications/File
185 Requires:       gnupg-agent = %{version}-%{release}
186 Requires:       xinitrc
187
188 %description -n gnupg-agent-xinitrc
189 gnupg-agent start script for X-Window mode.
190
191 %description -n gnupg-agent-xinitrc -l pl.UTF-8
192 Skrypt startowy gnupg-agenta dla trybu X-Window.
193
194 %package -n gnupg-smime
195 Summary:        GnuPG extension - S/MIME support
196 Summary(pl.UTF-8):      Rozszerzenie GnuPG - obsługa S/MIME
197 Group:          Applications/File
198 Requires:       %{name}-common = %{version}-%{release}
199 Conflicts:      gnupg-agent < 1.9.14-2
200
201 %description -n gnupg-smime
202 GnuPG extension - S/MIME support.
203
204 %description -n gnupg-smime -l pl.UTF-8
205 Rozszerzenie GnuPG - obsługa S/MIME.
206
207 %package -n dirmngr
208 Summary:        X509/LDAP certificate and revocation list client
209 Summary(pl.UTF-8):      Klient certyfikatów i list anulujących X509/LDAP
210 Group:          Applications
211 Requires:       %{name}-common = %{version}-%{release}
212
213 %description -n dirmngr
214 DirMngr is a client for managing and downloading certificate
215 revocation lists (CRLs) for X509 certificates and for downloading the
216 certificates themselves. DirMngr is usually invoked by gpgsm and in
217 general not used directly.
218
219 %description -n dirmngr -l pl.UTF-8
220 DirMngr to klient do zarządzania i pobierania list anulujących
221 certyfikaty (CRLs - certificate revocation lists) dla certyfikatów
222 X509 oraz do pobierania samych certyfikatów. DirMngr jest zwykle
223 wywoływany przez gpgsm i nie używany bezpośrednio.
224
225 %prep
226 %setup -q -n gnupg-%{version}
227 %patch0 -p1
228 %patch1 -p1
229 %{!?with_tests:%patch2 -p1}
230 %patch3 -p1
231 %patch4 -p1
232
233 %{__rm} po/stamp-po
234
235 %build
236 %{__gettextize}
237 %{__aclocal} -I m4 -I gl/m4
238 %{__autoconf}
239 %{__autoheader}
240 %{__automake}
241 %configure \
242         --libexecdir=%{pkglibexecdir} \
243         %{!?with_dirmngr:--disable-dirmngr} \
244         --enable-g13 \
245         %{!?with_default_gpg:--enable-gpg-is-gpg2} \
246         %{?with_gnutls:--disable-ntbtls} \
247         %{?with_selinux:--enable-selinux-support} \
248         --enable-symcryptrun \
249         --enable-wks-tools \
250         --with-capabilities \
251         --with-pinentry-pgm=%{_bindir}/pinentry \
252         --with-mailprog=/usr/lib/sendmail
253
254 %{__make}
255
256 %install
257 rm -rf $RPM_BUILD_ROOT
258
259 %{__make} install \
260         DESTDIR=$RPM_BUILD_ROOT \
261         pkglibdir=%{_libexecdir}
262
263 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
264 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
265
266 %if %{without dirmngr}
267 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
268 %endif
269
270 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
271
272 # files useful for users packaged as %doc
273 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
274
275 %find_lang gnupg2
276 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
277
278 %clean
279 rm -rf $RPM_BUILD_ROOT
280
281 %post   -p /sbin/postshell
282 -/usr/sbin/fix-info-dir -c %{_infodir}
283
284 %postun -p /sbin/postshell
285 -/usr/sbin/fix-info-dir -c %{_infodir}
286
287 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
288 %banner gnupg-agent-1.9.16-2 << EOF
289 Scripts for starting gnupg-agent have been moved to separate
290 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
291 EOF
292
293 %files
294 %defattr(644,root,root,755)
295 %if %{with default_gpg}
296 %attr(755,root,root) %{_bindir}/gpg
297 %attr(755,root,root) %{_bindir}/gpgv
298 %{_mandir}/man1/gpg.1*
299 %{_mandir}/man1/gpgv.1*
300 %else
301 %attr(755,root,root) %{_bindir}/gpg2
302 %attr(755,root,root) %{_bindir}/gpgv2
303 %{_mandir}/man1/gpg2.1*
304 %{_mandir}/man1/gpgv2.1*
305 %endif
306
307 %files common -f gnupg2.lang
308 %defattr(644,root,root,755)
309 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO
310 %attr(755,root,root) %{_bindir}/gpg-connect-agent
311 %attr(755,root,root) %{_bindir}/gpgconf
312 %attr(755,root,root) %{_bindir}/gpgkey2ssh
313 %attr(755,root,root) %{_bindir}/gpgparsemail
314 %attr(755,root,root) %{_bindir}/kbxutil
315 %attr(755,root,root) %{_bindir}/watchgnupg
316 %attr(755,root,root) %{_sbindir}/addgnupghome
317 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
318 %attr(755,root,root) %{_sbindir}/g13-syshelp
319 %dir %{pkglibexecdir}
320
321 %{_datadir}/gnupg
322 %{_mandir}/man1/gpg-connect-agent.1*
323 %{_mandir}/man1/gpgconf.1*
324 %{_mandir}/man1/gpgparsemail.1*
325 %{_mandir}/man1/gpgtar.1*
326 %{_mandir}/man1/watchgnupg.1*
327 %{_mandir}/man8/addgnupghome.8*
328 %{_mandir}/man8/applygnupgdefaults.8*
329 %{_infodir}/gnupg.info*
330
331 %files plugin-keys_curl
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
334
335 %files plugin-keys_finger
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
338
339 %files plugin-keys_hkp
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
342
343 %files plugin-keys_kdns
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
346
347 %files plugin-keys_ldap
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
350
351 %files -n gnupg-smime
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/gpgsm
354 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
355 %{_mandir}/man1/gpgsm.1*
356 %{_mandir}/man1/gpgsm-gencert.sh.1*
357
358 %files -n gnupg-agent
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_bindir}/gpg-agent
361 %attr(755,root,root) %{_bindir}/gpg-wks-server
362 %attr(755,root,root) %{_bindir}/symcryptrun
363 %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
364 %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
365 %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
366 %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
367 %attr(755,root,root) %{pkglibexecdir}/scdaemon
368 %{_mandir}/man1/gpg-agent.1*
369 %{_mandir}/man1/gpg-preset-passphrase.1*
370 %{_mandir}/man1/gpg-wks-client.1*
371 %{_mandir}/man1/gpg-wks-server.1*
372 %{_mandir}/man1/scdaemon.1*
373 %{_mandir}/man1/symcryptrun.1*
374
375 %files -n gnupg-agent-profile_d
376 %defattr(644,root,root,755)
377 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
378
379 %files -n gnupg-agent-xinitrc
380 %defattr(644,root,root,755)
381 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
382
383 %if %{with dirmngr}
384 %files -n dirmngr
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_bindir}/dirmngr
387 %attr(755,root,root) %{_bindir}/dirmngr-client
388 %attr(755,root,root) %{pkglibexecdir}/dirmngr_ldap
389 %{_mandir}/man1/dirmngr-client.1*
390 %{_mandir}/man8/dirmngr.8*
391 %endif
This page took 0.060905 seconds and 3 git commands to generate.