]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- converted to UTF-8
[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#
c85d209c 6Summary: GNU Privacy Guard - tool for secure communication and data storage - development version
0998c692 7Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozwojowa
c85d209c 8Name: gnupg2
b505a53f
JB
9Version: 2.0.2
10Release: 0.1
b626fce0
AM
11License: GPL
12Group: Applications/File
d47c18c2 13Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
b505a53f 14# Source0-md5: 9f972c78135a7dea1bae66bb9f263980
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/
fe2f6c68 21BuildRequires: autoconf >= 2.59
3d3dbf69 22BuildRequires: automake >= 1:1.9.3
b636b9b9 23BuildRequires: bzip2-devel
579ff0a0 24BuildRequires: curl-devel
fe2f6c68 25BuildRequires: gettext-devel >= 0.15
890f5126
JB
26BuildRequires: libassuan-devel >= 1:0.9.3
27BuildRequires: libgcrypt-devel >= 1.2.0
579ff0a0
JB
28BuildRequires: libgpg-error-devel >= 1.4
29BuildRequires: libksba-devel >= 1.0.0
aa189556 30BuildRequires: libusb-devel
579ff0a0 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
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
48This is development version. Don't use it with production keys.
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
0998c692 57Wersja rozwojowa. Nie do użytku z kluczami produkcyjnymi.
c85d209c
AF
58
59%package common
60Summary: GnuPG - common files
0998c692 61Summary(pl.UTF-8): GnuPG - pliki wspólne
c85d209c 62Group: Applications/File
890f5126 63Requires: libassuan >= 1:0.9.3
579ff0a0 64Requires: libgpg-error >= 1.4
c85d209c
AF
65Conflicts: gnupg-agent < 1.9.14-2
66
67%description common
68Common files used by tools from GnuPG project.
69
0998c692
JR
70%description common -l pl.UTF-8
71Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
c85d209c 72
7b3cd4e7
JB
73%package plugin-keys_curl
74Summary: GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
0998c692 75Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
7b3cd4e7
JB
76Group: Applications/File
77Requires: %{name}-common = %{version}-%{release}
78
79%description plugin-keys_curl
80GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
81
0998c692
JR
82%description plugin-keys_curl -l pl.UTF-8
83Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
7b3cd4e7
JB
84HTTP(S)/FTP(S).
85
86%package plugin-keys_finger
87Summary: GnuPG 2 plugin for allow talk to a FINGER keyserver
0998c692 88Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
7b3cd4e7
JB
89Group: Applications/File
90Requires: %{name}-common = %{version}-%{release}
91
92%description plugin-keys_finger
93GnuPG 2 plugin for allow talk to a FINGER keyserver.
94
0998c692
JR
95%description plugin-keys_finger -l pl.UTF-8
96Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
7b3cd4e7
JB
97
98%package plugin-keys_hkp
99Summary: GnuPG 2 plugin for allow talk to a HKP keyserver
0998c692 100Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
7b3cd4e7
JB
101Group: Applications/File
102Requires: %{name}-common = %{version}-%{release}
103
104%description plugin-keys_hkp
105GnuPG 2 plugin for allow talk to a HKP keyserver.
106
0998c692
JR
107%description plugin-keys_hkp -l pl.UTF-8
108Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
7b3cd4e7
JB
109
110%package plugin-keys_ldap
111Summary: GnuPG 2 plugin for allow talk to a LDAP keyserver
0998c692 112Summary(pl.UTF-8): Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
7b3cd4e7
JB
113Group: Applications/File
114Requires: %{name}-common = %{version}-%{release}
115
116%description plugin-keys_ldap
117GnuPG 2 plugin for allow talk to a LDAP keyserver.
118
0998c692
JR
119%description plugin-keys_ldap -l pl.UTF-8
120Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
7b3cd4e7 121
c85d209c
AF
122%package -n gnupg-agent
123Summary: GnuPG extension - agent
0998c692 124Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
c85d209c 125Group: Applications/File
7b3cd4e7 126Requires: %{name}-common = %{version}-%{release}
c85d209c 127Requires: pinentry
c85d209c
AF
128Obsoletes: newpg
129
130%description -n gnupg-agent
131GnuPG extension - agent.
132
0998c692 133%description -n gnupg-agent -l pl.UTF-8
b626fce0
AM
134Rozszerzenie GnuPG - agent.
135
f197b41f 136%package -n gnupg-agent-profile_d
137Summary: gnupg-agent start script for text mode
0998c692 138Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
f197b41f 139Group: Applications/File
140Requires: gnupg-agent = %{version}-%{release}
141
142%description -n gnupg-agent-profile_d
143gnupg-agent start script for text mode.
144
0998c692 145%description -n gnupg-agent-profile_d -l pl.UTF-8
f197b41f 146Skrypt startowy gnupg-agenta dla trybu tekstowego.
147
148%package -n gnupg-agent-xinitrc
149Summary: gnupg-agent start script for X-Window mode
0998c692 150Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
f197b41f 151Group: Applications/File
152Requires: gnupg-agent = %{version}-%{release}
153Requires: xinitrc
154
155%description -n gnupg-agent-xinitrc
156gnupg-agent start script for X-Window mode.
157
0998c692 158%description -n gnupg-agent-xinitrc -l pl.UTF-8
f197b41f 159Skrypt startowy gnupg-agenta dla trybu X-Window.
160
c85d209c
AF
161%package -n gnupg-smime
162Summary: GnuPG extension - S/MIME support
0998c692 163Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
c85d209c 164Group: Applications/File
7b3cd4e7 165Requires: %{name}-common = %{version}-%{release}
c85d209c
AF
166Conflicts: gnupg-agent < 1.9.14-2
167
168%description -n gnupg-smime
169GnuPG extension - S/MIME support.
170
0998c692
JR
171%description -n gnupg-smime -l pl.UTF-8
172Rozszerzenie GnuPG - obsługa S/MIME.
c85d209c 173
b626fce0
AM
174%prep
175%setup -q -n gnupg-%{version}
c85d209c 176%patch0 -p1
df2f3764 177%patch1 -p1
7e935671
JB
178%patch2 -p1
179%{!?with_tests:%patch3 -p1}
180
181rm -f po/stamp-po
b626fce0
AM
182
183%build
3d3dbf69
JB
184%{__gettextize}
185%{__aclocal} -I m4 -I gl/m4
186%{__autoconf}
187%{__autoheader}
155bb60b 188%{__automake}
b626fce0 189%configure \
c85d209c 190 %{!?with_pth:--disable-threads} \
df2f3764 191 --enable-gpg \
d47c18c2
JB
192 --enable-symcryptrun \
193 --with-capabilities \
b626fce0
AM
194 --with-mailprog=/usr/lib/sendmail
195
155bb60b 196%{__make}
b626fce0
AM
197
198%install
199rm -rf $RPM_BUILD_ROOT
b626fce0
AM
200
201%{__make} install \
c85d209c
AF
202 DESTDIR=$RPM_BUILD_ROOT \
203 pkglibdir=%{_libexecdir}
b626fce0 204
f197b41f 205install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
206install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
c85d209c
AF
207
208mv ChangeLog main-ChangeLog || :
209find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
b626fce0 210
f1d02fc8 211%find_lang gnupg2
84ab814f 212rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
b626fce0
AM
213
214%clean
215rm -rf $RPM_BUILD_ROOT
216
217%post
218[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
219
220%postun
221[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
222
f197b41f 223%triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
224%banner gnupg-agent-1.9.16-2 << EOF
225Scripts for starting gnupg-agent have been moved to separate
226subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
84ab814f 227EOF
f197b41f 228
84ab814f 229%files
b626fce0 230%defattr(644,root,root,755)
c85d209c
AF
231%doc g10-ChangeLog g10/options.skel
232%attr(755,root,root) %{_bindir}/gpg2
233%attr(755,root,root) %{_bindir}/gpgv2
579ff0a0
JB
234%{_mandir}/man1/gpg2.1*
235%{_mandir}/man1/gpgv2.1*
c85d209c
AF
236
237%files common -f gnupg2.lang
238%defattr(644,root,root,755)
84ab814f 239%doc AUTHORS main-ChangeLog NEWS README THANKS TODO
c85d209c 240%doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
df2f3764 241%attr(755,root,root) %{_bindir}/gpg-connect-agent
a83b3e7b 242%attr(755,root,root) %{_bindir}/gpgconf
3ea00a0c 243%attr(755,root,root) %{_bindir}/gpgkey2ssh
da4fafa6 244%attr(755,root,root) %{_bindir}/gpgparsemail
579ff0a0 245%attr(755,root,root) %{_bindir}/kbxutil
c85d209c
AF
246%attr(755,root,root) %{_bindir}/watchgnupg
247%attr(755,root,root) %{_sbindir}/addgnupghome
579ff0a0 248%dir %{_libexecdir}
c85d209c 249%{_datadir}/gnupg
579ff0a0
JB
250%{_mandir}/man1/gpg-connect-agent.1*
251%{_mandir}/man1/gpgconf.1*
252%{_mandir}/man1/gpgparsemail.1*
253%{_mandir}/man1/watchgnupg.1*
254%{_mandir}/man8/addgnupghome.8*
255%{_infodir}/*.info*
c85d209c 256
7b3cd4e7
JB
257%files plugin-keys_curl
258%defattr(644,root,root,755)
259%attr(755,root,root) %{_libexecdir}/gpg2keys_curl
260
261%files plugin-keys_finger
262%defattr(644,root,root,755)
263%attr(755,root,root) %{_libexecdir}/gpg2keys_finger
264
265%files plugin-keys_hkp
266%defattr(644,root,root,755)
267%attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
268
269%files plugin-keys_ldap
270%defattr(644,root,root,755)
271%attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
272
c85d209c
AF
273%files -n gnupg-smime
274%defattr(644,root,root,755)
275%doc sm-ChangeLog
b626fce0 276%attr(755,root,root) %{_bindir}/gpgsm
5fbfe0df 277%attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
579ff0a0
JB
278%{_mandir}/man1/gpgsm.1*
279%{_mandir}/man1/gpgsm-gencert.sh.1*
c85d209c
AF
280
281%files -n gnupg-agent
282%defattr(644,root,root,755)
283%doc agent-ChangeLog scd-ChangeLog
284%attr(755,root,root) %{_bindir}/gpg-agent
b626fce0 285%attr(755,root,root) %{_bindir}/scdaemon
d47c18c2 286%attr(755,root,root) %{_bindir}/symcryptrun
fe2f6c68 287%attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
c85d209c
AF
288%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
289%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
579ff0a0
JB
290%{_mandir}/man1/gpg-agent.1*
291%{_mandir}/man1/gpg-preset-passphrase.1*
292%{_mandir}/man1/scdaemon.1*
d47c18c2 293%{_mandir}/man1/symcryptrun.1*
f197b41f 294
295%files -n gnupg-agent-profile_d
296%defattr(644,root,root,755)
c85d209c 297%attr(755,root,root) /etc/profile.d/gnupg-agent.sh
f197b41f 298
299%files -n gnupg-agent-xinitrc
300%defattr(644,root,root,755)
301%attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 1.03376 seconds and 4 git commands to generate.