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