]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- rel 2
[packages/gnupg2.git] / gnupg2.spec
CommitLineData
d54c94db 1#
03076a38 2# Conditional build:
c85d209c 3%bcond_without pth # without pth-based based version of gnupg
fe2f6c68 4%bcond_without tests # testsuite on build
d54c94db 5#
f56b1d35
JB
6Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version
7Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
c85d209c 8Name: gnupg2
da0f8718 9Version: 2.0.16
51b517e6 10Release: 2
71099ee5 11License: GPL v3+
b626fce0 12Group: Applications/File
d47c18c2 13Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
da0f8718 14# Source0-md5: 88a4d46deca63d2eca29b2b611304afb
b626fce0 15Source1: gnupg-agent.sh
c85d209c 16Patch0: %{name}-info.patch
df2f3764 17Patch1: %{name}-pth.patch
44a0cbeb 18# send it upstream after updating!
7e935671
JB
19Patch2: %{name}-pl.po-update.patch
20Patch3: %{name}-disable_tests.patch
570b1f1f 21Patch4: CVE-2010-2547.patch
b626fce0 22URL: http://www.gnupg.org/
7eecd7af 23BuildRequires: adns-devel
71099ee5
JB
24BuildRequires: autoconf >= 2.61
25BuildRequires: automake >= 1:1.10
b636b9b9 26BuildRequires: bzip2-devel
da0f8718
JB
27BuildRequires: curl-devel >= 7.10
28BuildRequires: gettext-devel >= 0.17
29BuildRequires: libassuan-devel >= 1:2.0.0
30BuildRequires: libgcrypt-devel >= 1.4.0
31BuildRequires: libgpg-error-devel >= 1.7
32BuildRequires: libksba-devel >= 1.0.7
2702d975 33BuildRequires: libusb-compat-devel
b7eee439 34BuildRequires: openldap-devel
b626fce0 35BuildRequires: pcsc-lite-devel
1394a6a6 36%{?with_pth:BuildRequires: pth-devel >= 2.0.0}
f197b41f 37BuildRequires: rpmbuild(macros) >= 1.177
b626fce0
AM
38BuildRequires: texinfo
39BuildRequires: zlib-devel
b103a488 40Suggests: gnupg-agent
c85d209c 41Requires: gnupg2-common = %{version}-%{release}
b626fce0
AM
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
c85d209c 44%define _libexecdir %{_libdir}/gnupg2
b626fce0
AM
45
46%description
c85d209c
AF
47GnuPG is GNU's tool for secure communication and data storage. It can
48be used to encrypt data and to create digital signatures. It includes
49an advanced key management facility and is compliant with the proposed
50OpenPGP Internet standard as described in RFC2440.
51
f56b1d35 52This is enhanced version.
b626fce0 53
0998c692
JR
54%description -l pl.UTF-8
55GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
56bezpiecznego przechowywania danych. Może być używany do szyfrowania
57oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
58i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
c85d209c
AF
59w RFC2440.
60
f56b1d35 61To jest wersja rozszerzona.
c85d209c
AF
62
63%package common
64Summary: GnuPG - common files
4049c7b1 65Summary(pl.UTF-8): GnuPG - pliki wspólne
c85d209c 66Group: Applications/File
da0f8718
JB
67Requires: libassuan >= 1:2.0.0
68Requires: libgcrypt >= 1.4.0
69Requires: libgpg-error >= 1.7
70Requires: libksba >= 1.0.7
c85d209c
AF
71Conflicts: gnupg-agent < 1.9.14-2
72
73%description common
74Common files used by tools from GnuPG project.
75
0998c692
JR
76%description common -l pl.UTF-8
77Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
c85d209c 78
7b3cd4e7
JB
79%package plugin-keys_curl
80Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
4049c7b1 81Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
7b3cd4e7
JB
82Group: Applications/File
83Requires: %{name}-common = %{version}-%{release}
da0f8718 84Requires: curl-libs >= 7.10
7b3cd4e7
JB
85
86%description plugin-keys_curl
87GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
88
0998c692
JR
89%description plugin-keys_curl -l pl.UTF-8
90Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
7b3cd4e7
JB
91HTTP(S)/FTP(S).
92
93%package plugin-keys_finger
94Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
4049c7b1 95Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
7b3cd4e7
JB
96Group: Applications/File
97Requires: %{name}-common = %{version}-%{release}
98
99%description plugin-keys_finger
100GnuPG 2 plugin for allow talk to a FINGER keyserver.
101
0998c692
JR
102%description plugin-keys_finger -l pl.UTF-8
103Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
7b3cd4e7
JB
104
105%package plugin-keys_hkp
106Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
4049c7b1 107Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
7b3cd4e7
JB
108Group: Applications/File
109Requires: %{name}-common = %{version}-%{release}
110
111%description plugin-keys_hkp
112GnuPG 2 plugin for allow talk to a HKP keyserver.
113
0998c692
JR
114%description plugin-keys_hkp -l pl.UTF-8
115Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
7b3cd4e7 116
7eecd7af
JB
117%package plugin-keys_kdns
118Summary: GnuPG 2 plugin for allow talk to a KDNS keyserver
119Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
120Group: Applications/File
121Requires: %{name}-common = %{version}-%{release}
122
123%description plugin-keys_kdns
124GnuPG 2 plugin for allow talk to a KDNS keyserver.
125
126%description plugin-keys_kdns -l pl.UTF-8
127Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
128
7b3cd4e7
JB
129%package plugin-keys_ldap
130Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
4049c7b1 131Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
7b3cd4e7
JB
132Group: Applications/File
133Requires: %{name}-common = %{version}-%{release}
134
135%description plugin-keys_ldap
136GnuPG 2 plugin for allow talk to a LDAP keyserver.
137
0998c692
JR
138%description plugin-keys_ldap -l pl.UTF-8
139Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
7b3cd4e7 140
c85d209c
AF
141%package -n gnupg-agent
142Summary: GnuPG extension - agent
4049c7b1 143Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
c85d209c 144Group: Applications/File
7b3cd4e7 145Requires: %{name}-common = %{version}-%{release}
1dbb261a 146Requires: pinentry >= 0.7.5-2
c85d209c
AF
147Obsoletes: newpg
148
149%description -n gnupg-agent
150GnuPG extension - agent.
151
0998c692 152%description -n gnupg-agent -l pl.UTF-8
b626fce0
AM
153Rozszerzenie GnuPG - agent.
154
f197b41f 155%package -n gnupg-agent-profile_d
156Summary: gnupg-agent start script for text mode
4049c7b1 157Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
f197b41f 158Group: Applications/File
159Requires: gnupg-agent = %{version}-%{release}
160
161%description -n gnupg-agent-profile_d
162gnupg-agent start script for text mode.
163
0998c692 164%description -n gnupg-agent-profile_d -l pl.UTF-8
f197b41f 165Skrypt startowy gnupg-agenta dla trybu tekstowego.
166
167%package -n gnupg-agent-xinitrc
168Summary: gnupg-agent start script for X-Window mode
4049c7b1 169Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
f197b41f 170Group: Applications/File
171Requires: gnupg-agent = %{version}-%{release}
172Requires: xinitrc
173
174%description -n gnupg-agent-xinitrc
175gnupg-agent start script for X-Window mode.
176
0998c692 177%description -n gnupg-agent-xinitrc -l pl.UTF-8
f197b41f 178Skrypt startowy gnupg-agenta dla trybu X-Window.
179
c85d209c
AF
180%package -n gnupg-smime
181Summary: GnuPG extension - S/MIME support
4049c7b1 182Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
c85d209c 183Group: Applications/File
7b3cd4e7 184Requires: %{name}-common = %{version}-%{release}
c85d209c
AF
185Conflicts: gnupg-agent < 1.9.14-2
186
187%description -n gnupg-smime
188GnuPG extension - S/MIME support.
189
0998c692
JR
190%description -n gnupg-smime -l pl.UTF-8
191Rozszerzenie GnuPG - obsługa S/MIME.
c85d209c 192
b626fce0
AM
193%prep
194%setup -q -n gnupg-%{version}
c85d209c 195%patch0 -p1
df2f3764 196%patch1 -p1
da0f8718 197%patch2 -p1
7e935671 198%{!?with_tests:%patch3 -p1}
570b1f1f 199%patch4 -p1
7e935671
JB
200
201rm -f po/stamp-po
b626fce0
AM
202
203%build
3d3dbf69
JB
204%{__gettextize}
205%{__aclocal} -I m4 -I gl/m4
206%{__autoconf}
207%{__autoheader}
155bb60b 208%{__automake}
b626fce0 209%configure \
c85d209c 210 %{!?with_pth:--disable-threads} \
df2f3764 211 --enable-gpg \
d47c18c2
JB
212 --enable-symcryptrun \
213 --with-capabilities \
1dbb261a 214 --with-pinentry-pgm=%{_bindir}/pinentry \
b626fce0
AM
215 --with-mailprog=/usr/lib/sendmail
216
62f46a6b 217%{__make}
b626fce0
AM
218
219%install
220rm -rf $RPM_BUILD_ROOT
b626fce0
AM
221
222%{__make} install \
c85d209c
AF
223 DESTDIR=$RPM_BUILD_ROOT \
224 pkglibdir=%{_libexecdir}
b626fce0 225
f197b41f 226install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
227install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
c85d209c
AF
228
229mv ChangeLog main-ChangeLog || :
8b86efc3 230find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
b626fce0 231
f1d02fc8 232%find_lang gnupg2
84ab814f 233rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
b626fce0
AM
234
235%clean
236rm -rf $RPM_BUILD_ROOT
237
da0f8718 238%post -p /sbin/postshell
4be7d664 239-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 240
da0f8718 241%postun -p /sbin/postshell
4be7d664 242-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 243
f197b41f 244%triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
245%banner gnupg-agent-1.9.16-2 << EOF
246Scripts for starting gnupg-agent have been moved to separate
247subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
84ab814f 248EOF
f197b41f 249
84ab814f 250%files
b626fce0 251%defattr(644,root,root,755)
c85d209c
AF
252%doc g10-ChangeLog g10/options.skel
253%attr(755,root,root) %{_bindir}/gpg2
254%attr(755,root,root) %{_bindir}/gpgv2
579ff0a0
JB
255%{_mandir}/man1/gpg2.1*
256%{_mandir}/man1/gpgv2.1*
c85d209c
AF
257
258%files common -f gnupg2.lang
259%defattr(644,root,root,755)
84ab814f 260%doc AUTHORS main-ChangeLog NEWS README THANKS TODO
71099ee5 261%doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
df2f3764 262%attr(755,root,root) %{_bindir}/gpg-connect-agent
a83b3e7b 263%attr(755,root,root) %{_bindir}/gpgconf
3ea00a0c 264%attr(755,root,root) %{_bindir}/gpgkey2ssh
da4fafa6 265%attr(755,root,root) %{_bindir}/gpgparsemail
579ff0a0 266%attr(755,root,root) %{_bindir}/kbxutil
c85d209c
AF
267%attr(755,root,root) %{_bindir}/watchgnupg
268%attr(755,root,root) %{_sbindir}/addgnupghome
21eea941 269%attr(755,root,root) %{_sbindir}/applygnupgdefaults
579ff0a0 270%dir %{_libexecdir}
c85d209c 271%{_datadir}/gnupg
579ff0a0
JB
272%{_mandir}/man1/gpg-connect-agent.1*
273%{_mandir}/man1/gpgconf.1*
274%{_mandir}/man1/gpgparsemail.1*
275%{_mandir}/man1/watchgnupg.1*
276%{_mandir}/man8/addgnupghome.8*
21eea941 277%{_mandir}/man8/applygnupgdefaults.8*
00461e0e 278%{_infodir}/gnupg.info*
c85d209c 279
7b3cd4e7
JB
280%files plugin-keys_curl
281%defattr(644,root,root,755)
282%attr(755,root,root) %{_libexecdir}/gpg2keys_curl
283
284%files plugin-keys_finger
285%defattr(644,root,root,755)
286%attr(755,root,root) %{_libexecdir}/gpg2keys_finger
287
288%files plugin-keys_hkp
289%defattr(644,root,root,755)
290%attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
291
7eecd7af
JB
292%files plugin-keys_kdns
293%defattr(644,root,root,755)
294%attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
295
7b3cd4e7
JB
296%files plugin-keys_ldap
297%defattr(644,root,root,755)
298%attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
299
c85d209c
AF
300%files -n gnupg-smime
301%defattr(644,root,root,755)
302%doc sm-ChangeLog
b626fce0 303%attr(755,root,root) %{_bindir}/gpgsm
5fbfe0df 304%attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
579ff0a0
JB
305%{_mandir}/man1/gpgsm.1*
306%{_mandir}/man1/gpgsm-gencert.sh.1*
c85d209c
AF
307
308%files -n gnupg-agent
309%defattr(644,root,root,755)
310%doc agent-ChangeLog scd-ChangeLog
311%attr(755,root,root) %{_bindir}/gpg-agent
b626fce0 312%attr(755,root,root) %{_bindir}/scdaemon
d47c18c2 313%attr(755,root,root) %{_bindir}/symcryptrun
fe2f6c68 314%attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
a38280f6 315%attr(755,root,root) %{_libexecdir}/gpg-check-pattern
c85d209c
AF
316%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
317%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
579ff0a0
JB
318%{_mandir}/man1/gpg-agent.1*
319%{_mandir}/man1/gpg-preset-passphrase.1*
320%{_mandir}/man1/scdaemon.1*
d47c18c2 321%{_mandir}/man1/symcryptrun.1*
f197b41f 322
323%files -n gnupg-agent-profile_d
324%defattr(644,root,root,755)
c85d209c 325%attr(755,root,root) /etc/profile.d/gnupg-agent.sh
f197b41f 326
327%files -n gnupg-agent-xinitrc
328%defattr(644,root,root,755)
329%attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.096712 seconds and 4 git commands to generate.