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