2 # - separate keys plugins (see gnupg.spec)
3 # - update pl.po (just a note for myself --q)
6 %bcond_without pth # without pth-based based version of gnupg
7 %bcond_with tests # run testsuite ( currently it smashes stack on x86-64 and SEGVs )
9 Summary: GNU Privacy Guard - tool for secure communication and data storage - development version
10 Summary(pl): GnuPG - narzêdzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozwojowa
15 Group: Applications/File
16 Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
17 # Source0-md5: 1da8c928948800efa2a13d4aecb8d013
18 Source1: gnupg-agent.sh
19 Patch0: %{name}-info.patch
20 Patch1: %{name}-pth.patch
21 Patch2: %{name}-ac.patch
22 Patch3: %{name}-disable_tests.patch
23 URL: http://www.gnupg.org/
24 BuildRequires: autoconf >= 2.52
25 BuildRequires: automake >= 1:1.9.3
26 BuildRequires: bzip2-devel
27 BuildRequires: curl-devel
28 BuildRequires: gettext-devel >= 0.14.1
29 BuildRequires: libassuan-devel >= 1:0.9.3
30 BuildRequires: libgcrypt-devel >= 1.2.0
31 BuildRequires: libgpg-error-devel >= 1.4
32 BuildRequires: libksba-devel >= 1.0.0
33 BuildRequires: libusb-devel
34 BuildRequires: openldap-devel
35 BuildRequires: pcsc-lite-devel
36 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
37 BuildRequires: rpmbuild(macros) >= 1.177
38 BuildRequires: texinfo
39 BuildRequires: zlib-devel
40 Requires: gnupg2-common = %{version}-%{release}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _libexecdir %{_libdir}/gnupg2
46 GnuPG is GNU's tool for secure communication and data storage. It can
47 be used to encrypt data and to create digital signatures. It includes
48 an advanced key management facility and is compliant with the proposed
49 OpenPGP Internet standard as described in RFC2440.
51 This is development version. Don't use it with production keys.
54 GnuPG (GNU Privacy Guard) jest narzêdziem do bezpiecznej komunikacji i
55 bezpiecznego przechowywania danych. Mo¿e byæ u¿ywany do szyfrowania
56 oraz podpisywania danych. Umo¿liwia zaawansowane zarz±dzanie kluczami
57 i spe³nia normy zdefiniowane w standardzie OpenPGP, który jest opisany
60 Wersja rozwojowa. Nie do u¿ytku z kluczami produkcyjnymi.
63 Summary: GnuPG - common files
64 Summary(pl): GnuPG - pliki wspólne
65 Group: Applications/File
66 Requires: libassuan >= 1:0.9.3
67 Requires: libgpg-error >= 1.4
68 Conflicts: gnupg-agent < 1.9.14-2
71 Common files used by tools from GnuPG project.
73 %description common -l pl
74 Pliki wspólne u¿ywane przez ró¿ne narzêdzia z projektu GnuPG.
76 %package -n gnupg-agent
77 Summary: GnuPG extension - agent
78 Summary(pl): Rozszerzenie GnuPG - agent
79 Group: Applications/File
80 Requires: gnupg2-common = %{version}-%{release}
84 %description -n gnupg-agent
85 GnuPG extension - agent.
87 %description -n gnupg-agent -l pl
88 Rozszerzenie GnuPG - agent.
90 %package -n gnupg-agent-profile_d
91 Summary: gnupg-agent start script for text mode
92 Summary(pl): Skrypt startowy gnupg-agenta dla trybu tekstowego
93 Group: Applications/File
94 Requires: gnupg-agent = %{version}-%{release}
96 %description -n gnupg-agent-profile_d
97 gnupg-agent start script for text mode.
99 %description -n gnupg-agent-profile_d -l pl
100 Skrypt startowy gnupg-agenta dla trybu tekstowego.
102 %package -n gnupg-agent-xinitrc
103 Summary: gnupg-agent start script for X-Window mode
104 Summary(pl): Skrypt startowy gnupg-agenta dla trybu X-Window
105 Group: Applications/File
106 Requires: gnupg-agent = %{version}-%{release}
109 %description -n gnupg-agent-xinitrc
110 gnupg-agent start script for X-Window mode.
112 %description -n gnupg-agent-xinitrc -l pl
113 Skrypt startowy gnupg-agenta dla trybu X-Window.
115 %package -n gnupg-smime
116 Summary: GnuPG extension - S/MIME support
117 Summary(pl): Rozszerzenie GnuPG - obs³uga S/MIME
118 Group: Applications/File
119 Requires: gnupg2-common = %{version}-%{release}
120 Conflicts: gnupg-agent < 1.9.14-2
122 %description -n gnupg-smime
123 GnuPG extension - S/MIME support.
125 %description -n gnupg-smime -l pl
126 Rozszerzenie GnuPG - obs³uga S/MIME.
129 %setup -q -n gnupg-%{version}
133 %{!?with_tests:%patch3 -p1}
137 %{__aclocal} -I m4 -I gl/m4
142 --with-capabilities \
143 %{!?with_pth:--disable-threads} \
145 %ifarch sparc sparc64
150 --without-included-gettext \
152 --with-mailprog=/usr/lib/sendmail
157 rm -rf $RPM_BUILD_ROOT
160 DESTDIR=$RPM_BUILD_ROOT \
161 pkglibdir=%{_libexecdir}
163 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
164 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
166 mv ChangeLog main-ChangeLog || :
167 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
170 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
173 rm -rf $RPM_BUILD_ROOT
176 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
179 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
181 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
182 %banner gnupg-agent-1.9.16-2 << EOF
183 Scripts for starting gnupg-agent have been moved to separate
184 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
188 %defattr(644,root,root,755)
189 %doc g10-ChangeLog g10/options.skel
190 %attr(755,root,root) %{_bindir}/gpg2
191 %attr(755,root,root) %{_bindir}/gpgv2
192 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
193 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
194 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
195 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
196 %{_mandir}/man1/gpg2.1*
197 %{_mandir}/man1/gpgv2.1*
198 # conflicts with gnupg 1.4.x
199 #%attr(755,root,root) %{_bindir}/gpg-zip
200 #%attr(755,root,root) %{_bindir}/gpgsplit
201 #%{_mandir}/man7/gnupg.7*
202 # program not built by default
203 #%{_mandir}/man1/symcryptrun.1*
205 %files common -f gnupg2.lang
206 %defattr(644,root,root,755)
207 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
208 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
209 %attr(755,root,root) %{_bindir}/gpg-connect-agent
210 %attr(755,root,root) %{_bindir}/gpgconf
211 %attr(755,root,root) %{_bindir}/gpgkey2ssh
212 %attr(755,root,root) %{_bindir}/gpgparsemail
213 %attr(755,root,root) %{_bindir}/kbxutil
214 %attr(755,root,root) %{_bindir}/watchgnupg
215 %attr(755,root,root) %{_sbindir}/addgnupghome
218 %{_mandir}/man1/gpg-connect-agent.1*
219 %{_mandir}/man1/gpgconf.1*
220 %{_mandir}/man1/gpgparsemail.1*
221 %{_mandir}/man1/watchgnupg.1*
222 %{_mandir}/man8/addgnupghome.8*
225 %files -n gnupg-smime
226 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_bindir}/gpgsm
229 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
230 %{_mandir}/man1/gpgsm.1*
231 %{_mandir}/man1/gpgsm-gencert.sh.1*
233 %files -n gnupg-agent
234 %defattr(644,root,root,755)
235 %doc agent-ChangeLog scd-ChangeLog
236 %attr(755,root,root) %{_bindir}/gpg-agent
237 %attr(755,root,root) %{_bindir}/scdaemon
238 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
239 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
240 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
241 %{_mandir}/man1/gpg-agent.1*
242 %{_mandir}/man1/gpg-preset-passphrase.1*
243 %{_mandir}/man1/scdaemon.1*
245 %files -n gnupg-agent-profile_d
246 %defattr(644,root,root,755)
247 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
249 %files -n gnupg-agent-xinitrc
250 %defattr(644,root,root,755)
251 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh