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