]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- updated to 1.7.5
[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
81811939
AG
9Version: 2.0.10
10Release: 1
71099ee5 11License: GPL v3+
b626fce0 12Group: Applications/File
d47c18c2 13Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
81811939 14# Source0-md5: 1cb778dd555f87685a8fde2f7113725e
b626fce0 15Source1: gnupg-agent.sh
c85d209c 16Patch0: %{name}-info.patch
df2f3764 17Patch1: %{name}-pth.patch
7e935671
JB
18Patch2: %{name}-pl.po-update.patch
19Patch3: %{name}-disable_tests.patch
7145dd99
PS
20# this patch is shared with gnupg.spec
21Patch4: gnupg-gcc.patch
b626fce0 22URL: http://www.gnupg.org/
71099ee5
JB
23BuildRequires: autoconf >= 2.61
24BuildRequires: automake >= 1:1.10
b636b9b9 25BuildRequires: bzip2-devel
579ff0a0 26BuildRequires: curl-devel
71099ee5 27BuildRequires: gettext-devel >= 0.16.1
de84b455 28BuildRequires: libassuan-devel >= 1:1.0.4
71099ee5 29BuildRequires: libgcrypt-devel >= 1.2.2
579ff0a0 30BuildRequires: libgpg-error-devel >= 1.4
71099ee5 31BuildRequires: libksba-devel >= 1.0.2
aa189556 32BuildRequires: libusb-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
b103a488 39Suggests: gnupg-agent
c85d209c 40Requires: gnupg2-common = %{version}-%{release}
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
71099ee5
JB
66Requires: libassuan >= 1:1.0.2
67Requires: libgcrypt >= 1.2.2
579ff0a0 68Requires: libgpg-error >= 1.4
71099ee5 69Requires: libksba >= 1.0.2
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}
83
84%description plugin-keys_curl
85GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
86
0998c692
JR
87%description plugin-keys_curl -l pl.UTF-8
88Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
7b3cd4e7
JB
89HTTP(S)/FTP(S).
90
91%package plugin-keys_finger
92Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
4049c7b1 93Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
7b3cd4e7
JB
94Group: Applications/File
95Requires: %{name}-common = %{version}-%{release}
96
97%description plugin-keys_finger
98GnuPG 2 plugin for allow talk to a FINGER keyserver.
99
0998c692
JR
100%description plugin-keys_finger -l pl.UTF-8
101Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
7b3cd4e7
JB
102
103%package plugin-keys_hkp
104Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
4049c7b1 105Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
7b3cd4e7
JB
106Group: Applications/File
107Requires: %{name}-common = %{version}-%{release}
108
109%description plugin-keys_hkp
110GnuPG 2 plugin for allow talk to a HKP keyserver.
111
0998c692
JR
112%description plugin-keys_hkp -l pl.UTF-8
113Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
7b3cd4e7
JB
114
115%package plugin-keys_ldap
116Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
4049c7b1 117Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
7b3cd4e7
JB
118Group: Applications/File
119Requires: %{name}-common = %{version}-%{release}
120
121%description plugin-keys_ldap
122GnuPG 2 plugin for allow talk to a LDAP keyserver.
123
0998c692
JR
124%description plugin-keys_ldap -l pl.UTF-8
125Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
7b3cd4e7 126
c85d209c
AF
127%package -n gnupg-agent
128Summary: GnuPG extension - agent
4049c7b1 129Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
c85d209c 130Group: Applications/File
7b3cd4e7 131Requires: %{name}-common = %{version}-%{release}
1dbb261a 132Requires: pinentry >= 0.7.5-2
c85d209c
AF
133Obsoletes: newpg
134
135%description -n gnupg-agent
136GnuPG extension - agent.
137
0998c692 138%description -n gnupg-agent -l pl.UTF-8
b626fce0
AM
139Rozszerzenie GnuPG - agent.
140
f197b41f 141%package -n gnupg-agent-profile_d
142Summary: gnupg-agent start script for text mode
4049c7b1 143Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
f197b41f 144Group: Applications/File
145Requires: gnupg-agent = %{version}-%{release}
146
147%description -n gnupg-agent-profile_d
148gnupg-agent start script for text mode.
149
0998c692 150%description -n gnupg-agent-profile_d -l pl.UTF-8
f197b41f 151Skrypt startowy gnupg-agenta dla trybu tekstowego.
152
153%package -n gnupg-agent-xinitrc
154Summary: gnupg-agent start script for X-Window mode
4049c7b1 155Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
f197b41f 156Group: Applications/File
157Requires: gnupg-agent = %{version}-%{release}
158Requires: xinitrc
159
160%description -n gnupg-agent-xinitrc
161gnupg-agent start script for X-Window mode.
162
0998c692 163%description -n gnupg-agent-xinitrc -l pl.UTF-8
f197b41f 164Skrypt startowy gnupg-agenta dla trybu X-Window.
165
c85d209c
AF
166%package -n gnupg-smime
167Summary: GnuPG extension - S/MIME support
4049c7b1 168Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
c85d209c 169Group: Applications/File
7b3cd4e7 170Requires: %{name}-common = %{version}-%{release}
c85d209c
AF
171Conflicts: gnupg-agent < 1.9.14-2
172
173%description -n gnupg-smime
174GnuPG extension - S/MIME support.
175
0998c692
JR
176%description -n gnupg-smime -l pl.UTF-8
177Rozszerzenie GnuPG - obsługa S/MIME.
c85d209c 178
b626fce0
AM
179%prep
180%setup -q -n gnupg-%{version}
c85d209c 181%patch0 -p1
df2f3764 182%patch1 -p1
7e935671
JB
183%patch2 -p1
184%{!?with_tests:%patch3 -p1}
7145dd99 185%patch4 -p0
7e935671
JB
186
187rm -f po/stamp-po
b626fce0 188
a38280f6
AM
189sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4
190
b626fce0 191%build
3d3dbf69
JB
192%{__gettextize}
193%{__aclocal} -I m4 -I gl/m4
194%{__autoconf}
195%{__autoheader}
155bb60b 196%{__automake}
b626fce0 197%configure \
c85d209c 198 %{!?with_pth:--disable-threads} \
df2f3764 199 --enable-gpg \
d47c18c2
JB
200 --enable-symcryptrun \
201 --with-capabilities \
1dbb261a 202 --with-pinentry-pgm=%{_bindir}/pinentry \
b626fce0
AM
203 --with-mailprog=/usr/lib/sendmail
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
AF
216
217mv ChangeLog main-ChangeLog || :
8b86efc3 218find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
b626fce0 219
f1d02fc8 220%find_lang gnupg2
84ab814f 221rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
b626fce0
AM
222
223%clean
224rm -rf $RPM_BUILD_ROOT
225
4be7d664
ER
226%post -p /sbin/postshell
227-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 228
4be7d664
ER
229%postun -p /sbin/postshell
230-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 231
f197b41f 232%triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
233%banner gnupg-agent-1.9.16-2 << EOF
234Scripts for starting gnupg-agent have been moved to separate
235subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
84ab814f 236EOF
f197b41f 237
84ab814f 238%files
b626fce0 239%defattr(644,root,root,755)
c85d209c
AF
240%doc g10-ChangeLog g10/options.skel
241%attr(755,root,root) %{_bindir}/gpg2
242%attr(755,root,root) %{_bindir}/gpgv2
579ff0a0
JB
243%{_mandir}/man1/gpg2.1*
244%{_mandir}/man1/gpgv2.1*
c85d209c
AF
245
246%files common -f gnupg2.lang
247%defattr(644,root,root,755)
84ab814f 248%doc AUTHORS main-ChangeLog NEWS README THANKS TODO
71099ee5 249%doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
df2f3764 250%attr(755,root,root) %{_bindir}/gpg-connect-agent
a83b3e7b 251%attr(755,root,root) %{_bindir}/gpgconf
3ea00a0c 252%attr(755,root,root) %{_bindir}/gpgkey2ssh
da4fafa6 253%attr(755,root,root) %{_bindir}/gpgparsemail
579ff0a0 254%attr(755,root,root) %{_bindir}/kbxutil
c85d209c
AF
255%attr(755,root,root) %{_bindir}/watchgnupg
256%attr(755,root,root) %{_sbindir}/addgnupghome
21eea941 257%attr(755,root,root) %{_sbindir}/applygnupgdefaults
579ff0a0 258%dir %{_libexecdir}
c85d209c 259%{_datadir}/gnupg
579ff0a0
JB
260%{_mandir}/man1/gpg-connect-agent.1*
261%{_mandir}/man1/gpgconf.1*
262%{_mandir}/man1/gpgparsemail.1*
263%{_mandir}/man1/watchgnupg.1*
264%{_mandir}/man8/addgnupghome.8*
21eea941 265%{_mandir}/man8/applygnupgdefaults.8*
00461e0e 266%{_infodir}/gnupg.info*
c85d209c 267
7b3cd4e7
JB
268%files plugin-keys_curl
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_libexecdir}/gpg2keys_curl
271
272%files plugin-keys_finger
273%defattr(644,root,root,755)
274%attr(755,root,root) %{_libexecdir}/gpg2keys_finger
275
276%files plugin-keys_hkp
277%defattr(644,root,root,755)
278%attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
279
280%files plugin-keys_ldap
281%defattr(644,root,root,755)
282%attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
283
c85d209c
AF
284%files -n gnupg-smime
285%defattr(644,root,root,755)
286%doc sm-ChangeLog
b626fce0 287%attr(755,root,root) %{_bindir}/gpgsm
5fbfe0df 288%attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
579ff0a0
JB
289%{_mandir}/man1/gpgsm.1*
290%{_mandir}/man1/gpgsm-gencert.sh.1*
c85d209c
AF
291
292%files -n gnupg-agent
293%defattr(644,root,root,755)
294%doc agent-ChangeLog scd-ChangeLog
295%attr(755,root,root) %{_bindir}/gpg-agent
b626fce0 296%attr(755,root,root) %{_bindir}/scdaemon
d47c18c2 297%attr(755,root,root) %{_bindir}/symcryptrun
fe2f6c68 298%attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
a38280f6 299%attr(755,root,root) %{_libexecdir}/gpg-check-pattern
c85d209c
AF
300%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
301%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
579ff0a0
JB
302%{_mandir}/man1/gpg-agent.1*
303%{_mandir}/man1/gpg-preset-passphrase.1*
304%{_mandir}/man1/scdaemon.1*
d47c18c2 305%{_mandir}/man1/symcryptrun.1*
f197b41f 306
307%files -n gnupg-agent-profile_d
308%defattr(644,root,root,755)
c85d209c 309%attr(755,root,root) /etc/profile.d/gnupg-agent.sh
f197b41f 310
311%files -n gnupg-agent-xinitrc
312%defattr(644,root,root,755)
313%attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.09307 seconds and 4 git commands to generate.