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