3 %bcond_without pth # without pth-based based version of gnupg
5 Summary: GNU Privacy Guard - tool for secure communication and data storage - development version
6 Summary(pl): GnuPG - narzêdzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozwojowa
11 Group: Applications/File
12 Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
13 # Source0-md5: 93899203fc0530f03e146d49b65c1e28
14 Source1: gnupg-agent.sh
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-pth.patch
17 URL: http://www.gnupg.org/
18 BuildRequires: automake
19 BuildRequires: gettext-devel >= 0.14.1
20 BuildRequires: libassuan-devel >= 1:0.6.10
21 BuildRequires: libgcrypt-devel >= 1.1.94
22 BuildRequires: libgpg-error-devel >= 1.0
23 BuildRequires: libksba-devel >= 0.9.13
24 BuildRequires: libusb-devel
25 BuildRequires: pcsc-lite-devel
26 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
27 BuildRequires: rpmbuild(macros) >= 1.177
28 BuildRequires: texinfo
29 BuildRequires: zlib-devel
30 Requires: gnupg2-common = %{version}-%{release}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _libexecdir %{_libdir}/gnupg2
36 GnuPG is GNU's tool for secure communication and data storage. It can
37 be used to encrypt data and to create digital signatures. It includes
38 an advanced key management facility and is compliant with the proposed
39 OpenPGP Internet standard as described in RFC2440.
41 This is development version. Don't use it with production keys.
44 GnuPG (GNU Privacy Guard) jest narzêdziem do bezpiecznej komunikacji i
45 bezpiecznego przechowywania danych. Mo¿e byæ u¿ywany do szyfrowania
46 oraz podpisywania danych. Umo¿liwia zaawansowane zarz±dzanie kluczami
47 i spe³nia normy zdefiniowane w standardzie OpenPGP, który jest opisany
50 Wersja rozwojowa. Nie do u¿ytku z kluczami produkcyjnymi.
53 Summary: GnuPG - common files
54 Summary(pl): GnuPG - pliki wspólne
55 Group: Applications/File
56 Requires: libgpg-error >= 1.0
57 Conflicts: gnupg-agent < 1.9.14-2
60 Common files used by tools from GnuPG project.
62 %description common -l pl
63 Pliki wspólne u¿ywane przez ró¿ne narzêdzia z projektu GnuPG.
65 %package -n gnupg-agent
66 Summary: GnuPG extension - agent
67 Summary(pl): Rozszerzenie GnuPG - agent
68 Group: Applications/File
69 Requires: gnupg2-common = %{version}-%{release}
73 %description -n gnupg-agent
74 GnuPG extension - agent.
76 %description -n gnupg-agent -l pl
77 Rozszerzenie GnuPG - agent.
79 %package -n gnupg-agent-profile_d
80 Summary: gnupg-agent start script for text mode
81 Summary(pl): Skrypt startowy gnupg-agenta dla trybu tekstowego
82 Group: Applications/File
83 Requires: gnupg-agent = %{version}-%{release}
85 %description -n gnupg-agent-profile_d
86 gnupg-agent start script for text mode.
88 %description -n gnupg-agent-profile_d -l pl
89 Skrypt startowy gnupg-agenta dla trybu tekstowego.
91 %package -n gnupg-agent-xinitrc
92 Summary: gnupg-agent start script for X-Window mode
93 Summary(pl): Skrypt startowy gnupg-agenta dla trybu X-Window
94 Group: Applications/File
95 Requires: gnupg-agent = %{version}-%{release}
98 %description -n gnupg-agent-xinitrc
99 gnupg-agent start script for X-Window mode.
101 %description -n gnupg-agent-xinitrc -l pl
102 Skrypt startowy gnupg-agenta dla trybu X-Window.
104 %package -n gnupg-smime
105 Summary: GnuPG extension - S/MIME support
106 Summary(pl): Rozszerzenie GnuPG - obs³uga S/MIME
107 Group: Applications/File
108 Requires: gnupg2-common = %{version}-%{release}
109 Conflicts: gnupg-agent < 1.9.14-2
111 %description -n gnupg-smime
112 GnuPG extension - S/MIME support.
114 %description -n gnupg-smime -l pl
115 Rozszerzenie GnuPG - obs³uga S/MIME.
118 %setup -q -n gnupg-%{version}
123 cp -f /usr/share/automake/config.* scripts
125 --with-capabilities \
126 %{!?with_pth:--disable-threads} \
128 %ifarch sparc sparc64
133 --without-included-gettext \
135 --with-mailprog=/usr/lib/sendmail
140 rm -rf $RPM_BUILD_ROOT
143 DESTDIR=$RPM_BUILD_ROOT \
144 pkglibdir=%{_libexecdir}
146 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
147 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
149 mv ChangeLog main-ChangeLog || :
150 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
155 rm -rf $RPM_BUILD_ROOT
158 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
161 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
163 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
164 %banner gnupg-agent-1.9.16-2 << EOF
165 Scripts for starting gnupg-agent have been moved to separate
166 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
170 %defattr(644,root,root,755)
171 %doc g10-ChangeLog g10/options.skel
172 %attr(755,root,root) %{_bindir}/gpg2
173 %attr(755,root,root) %{_bindir}/gpgv2
175 %files common -f gnupg2.lang
176 %defattr(644,root,root,755)
177 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
178 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
179 %attr(755,root,root) %{_bindir}/gpg-connect-agent
180 %attr(755,root,root) %{_bindir}/gpgconf
181 %attr(755,root,root) %{_bindir}/gpgkey2ssh
182 %attr(755,root,root) %{_bindir}/gpgparsemail
183 %attr(755,root,root) %{_bindir}/watchgnupg
184 %attr(755,root,root) %{_sbindir}/addgnupghome
185 %attr(755,root,root) %{_bindir}/kbxutil
189 %files -n gnupg-smime
190 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/gpgsm
193 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
195 %files -n gnupg-agent
196 %defattr(644,root,root,755)
197 %doc agent-ChangeLog scd-ChangeLog
198 %attr(755,root,root) %{_bindir}/gpg-agent
199 %attr(755,root,root) %{_bindir}/scdaemon
200 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
201 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
202 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
204 %files -n gnupg-agent-profile_d
205 %defattr(644,root,root,755)
206 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
208 %files -n gnupg-agent-xinitrc
209 %defattr(644,root,root,755)
210 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh