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