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: a1bf98c5ec0c5c316b4ae6f017f02fa3
14 Source1: gnupg-agent.sh
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-pth.patch
17 Patch2: %{name}-build.patch
19 URL: http://www.gnupg.org/
20 BuildRequires: automake
21 BuildRequires: gettext-devel >= 0.12.1
22 BuildRequires: libassuan-devel >= 1:0.6.10
23 BuildRequires: libgcrypt-devel >= 1.1.94
24 BuildRequires: libgpg-error-devel >= 1.0
25 BuildRequires: libksba-devel >= 0.9.11
26 BuildRequires: pcsc-lite-devel
27 BuildRequires: opensc-devel >= 0.8.0
28 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
29 BuildRequires: rpmbuild(macros) >= 1.177
30 BuildRequires: texinfo
31 BuildRequires: zlib-devel
32 Requires: gnupg2-common = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _libexecdir %{_libdir}/gnupg2
38 GnuPG is GNU's tool for secure communication and data storage. It can
39 be used to encrypt data and to create digital signatures. It includes
40 an advanced key management facility and is compliant with the proposed
41 OpenPGP Internet standard as described in RFC2440.
43 This is development version. Don't use it with production keys.
46 GnuPG (GNU Privacy Guard) jest narzêdziem do bezpiecznej komunikacji i
47 bezpiecznego przechowywania danych. Mo¿e byæ u¿ywany do szyfrowania
48 oraz podpisywania danych. Umo¿liwia zaawansowane zarz±dzanie kluczami
49 i spe³nia normy zdefiniowane w standardzie OpenPGP, który jest opisany
52 Wersja rozwojowa. Nie do u¿ytku z kluczami produkcyjnymi.
55 Summary: GnuPG - common files
56 Summary(pl): GnuPG - pliki wspólne
57 Group: Applications/File
58 Requires: libgpg-error >= 1.0
59 Conflicts: gnupg-agent < 1.9.14-2
62 Common files used by tools from GnuPG project.
64 %description common -l pl
65 Pliki wspólne u¿ywane przez ró¿ne narzêdzia z projektu GnuPG.
67 %package -n gnupg-agent
68 Summary: GnuPG extension - agent
69 Summary(pl): Rozszerzenie GnuPG - agent
70 Group: Applications/File
71 Requires: gnupg2-common = %{version}-%{release}
75 %description -n gnupg-agent
76 GnuPG extension - agent.
78 %description -n gnupg-agent -l pl
79 Rozszerzenie GnuPG - agent.
81 %package -n gnupg-agent-profile_d
82 Summary: gnupg-agent start script for text mode
83 Summary(pl): Skrypt startowy gnupg-agenta dla trybu tekstowego
84 Group: Applications/File
85 Requires: gnupg-agent = %{version}-%{release}
87 %description -n gnupg-agent-profile_d
88 gnupg-agent start script for text mode.
90 %description -n gnupg-agent-profile_d -l pl
91 Skrypt startowy gnupg-agenta dla trybu tekstowego.
93 %package -n gnupg-agent-xinitrc
94 Summary: gnupg-agent start script for X-Window mode
95 Summary(pl): Skrypt startowy gnupg-agenta dla trybu X-Window
96 Group: Applications/File
97 Requires: gnupg-agent = %{version}-%{release}
100 %description -n gnupg-agent-xinitrc
101 gnupg-agent start script for X-Window mode.
103 %description -n gnupg-agent-xinitrc -l pl
104 Skrypt startowy gnupg-agenta dla trybu X-Window.
106 %package -n gnupg-smime
107 Summary: GnuPG extension - S/MIME support
108 Summary(pl): Rozszerzenie GnuPG - obs³uga S/MIME
109 Group: Applications/File
110 Requires: gnupg2-common = %{version}-%{release}
111 Conflicts: gnupg-agent < 1.9.14-2
113 %description -n gnupg-smime
114 GnuPG extension - S/MIME support.
116 %description -n gnupg-smime -l pl
117 Rozszerzenie GnuPG - obs³uga S/MIME.
120 %setup -q -n gnupg-%{version}
126 cp -f /usr/share/automake/config.* scripts
128 --with-capabilities \
129 %{!?with_pth:--disable-threads} \
131 %ifarch sparc sparc64
136 --without-included-gettext \
138 --with-mailprog=/usr/lib/sendmail
143 rm -rf $RPM_BUILD_ROOT
146 DESTDIR=$RPM_BUILD_ROOT \
147 pkglibdir=%{_libexecdir}
149 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
150 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
152 mv ChangeLog main-ChangeLog || :
153 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
158 rm -rf $RPM_BUILD_ROOT
161 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
164 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
166 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
167 %banner gnupg-agent-1.9.16-2 << EOF
168 Scripts for starting gnupg-agent have been moved to separate
169 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
173 %defattr(644,root,root,755)
174 %doc g10-ChangeLog g10/options.skel
175 %attr(755,root,root) %{_bindir}/gpg2
176 %attr(755,root,root) %{_bindir}/gpgv2
178 %files common -f gnupg2.lang
179 %defattr(644,root,root,755)
180 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
181 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
182 %attr(755,root,root) %{_bindir}/gpg-connect-agent
183 %attr(755,root,root) %{_bindir}/gpgconf
184 %attr(755,root,root) %{_bindir}/gpgkey2ssh
185 %attr(755,root,root) %{_bindir}/watchgnupg
186 %attr(755,root,root) %{_sbindir}/addgnupghome
187 %attr(755,root,root) %{_bindir}/kbxutil
191 %files -n gnupg-smime
192 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/gpgsm
195 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
197 %files -n gnupg-agent
198 %defattr(644,root,root,755)
199 %doc agent-ChangeLog scd-ChangeLog
200 %attr(755,root,root) %{_bindir}/gpg-agent
201 %attr(755,root,root) %{_bindir}/scdaemon
202 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
203 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
204 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
206 %files -n gnupg-agent-profile_d
207 %defattr(644,root,root,755)
208 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
210 %files -n gnupg-agent-xinitrc
211 %defattr(644,root,root,755)
212 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh