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