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