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: 1282755dce9cf4a84e904ca0191017a3
14 Source1: gnupg-agent.sh
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-pth.patch
18 URL: http://www.gnupg.org/
19 BuildRequires: automake
20 BuildRequires: gettext-devel >= 0.12.1
21 BuildRequires: libassuan-devel >= 1:0.6.9
22 BuildRequires: libgcrypt-devel >= 1.1.94
23 BuildRequires: libgpg-error-devel >= 1.0
24 BuildRequires: libksba-devel >= 0.9.11
25 BuildRequires: pcsc-lite-devel
26 BuildRequires: opensc-devel >= 0.8.0
27 %{?with_pth:BuildRequires: pth-devel >= 2.0.0}
28 BuildRequires: rpmbuild(macros) >= 1.177
29 BuildRequires: texinfo
30 BuildRequires: zlib-devel
31 Requires: gnupg2-common = %{version}-%{release}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _libexecdir %{_libdir}/gnupg2
37 GnuPG is GNU's tool for secure communication and data storage. It can
38 be used to encrypt data and to create digital signatures. It includes
39 an advanced key management facility and is compliant with the proposed
40 OpenPGP Internet standard as described in RFC2440.
42 This is development version. Don't use it with production keys.
45 GnuPG (GNU Privacy Guard) jest narzêdziem do bezpiecznej komunikacji i
46 bezpiecznego przechowywania danych. Mo¿e byæ u¿ywany do szyfrowania
47 oraz podpisywania danych. Umo¿liwia zaawansowane zarz±dzanie kluczami
48 i spe³nia normy zdefiniowane w standardzie OpenPGP, który jest opisany
51 Wersja rozwojowa. Nie do u¿ytku z kluczami produkcyjnymi.
54 Summary: GnuPG - common files
55 Summary(pl): GnuPG - pliki wspólne
56 Group: Applications/File
57 Requires: libgpg-error >= 1.0
58 Conflicts: gnupg-agent < 1.9.14-2
61 Common files used by tools from GnuPG project.
63 %description common -l pl
64 Pliki wspólne u¿ywane przez ró¿ne narzêdzia z projektu GnuPG.
66 %package -n gnupg-agent
67 Summary: GnuPG extension - agent
68 Summary(pl): Rozszerzenie GnuPG - agent
69 Group: Applications/File
70 Requires: gnupg2-common = %{version}-%{release}
74 %description -n gnupg-agent
75 GnuPG extension - agent.
77 %description -n gnupg-agent -l pl
78 Rozszerzenie GnuPG - agent.
80 %package -n gnupg-agent-profile_d
81 Summary: gnupg-agent start script for text mode
82 Summary(pl): Skrypt startowy gnupg-agenta dla trybu tekstowego
83 Group: Applications/File
84 Requires: gnupg-agent = %{version}-%{release}
86 %description -n gnupg-agent-profile_d
87 gnupg-agent start script for text mode.
89 %description -n gnupg-agent-profile_d -l pl
90 Skrypt startowy gnupg-agenta dla trybu tekstowego.
92 %package -n gnupg-agent-xinitrc
93 Summary: gnupg-agent start script for X-Window mode
94 Summary(pl): Skrypt startowy gnupg-agenta dla trybu X-Window
95 Group: Applications/File
96 Requires: gnupg-agent = %{version}-%{release}
99 %description -n gnupg-agent-xinitrc
100 gnupg-agent start script for X-Window mode.
102 %description -n gnupg-agent-xinitrc -l pl
103 Skrypt startowy gnupg-agenta dla trybu X-Window.
105 %package -n gnupg-smime
106 Summary: GnuPG extension - S/MIME support
107 Summary(pl): Rozszerzenie GnuPG - obs³uga S/MIME
108 Group: Applications/File
109 Requires: gnupg2-common = %{version}-%{release}
110 Conflicts: gnupg-agent < 1.9.14-2
112 %description -n gnupg-smime
113 GnuPG extension - S/MIME support.
115 %description -n gnupg-smime -l pl
116 Rozszerzenie GnuPG - obs³uga S/MIME.
119 %setup -q -n gnupg-%{version}
124 cp -f /usr/share/automake/config.* scripts
126 --with-capabilities \
127 %{!?with_pth:--disable-threads} \
129 %ifarch sparc sparc64
134 --without-included-gettext \
136 --with-mailprog=/usr/lib/sendmail
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT \
145 pkglibdir=%{_libexecdir}
147 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
148 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
150 mv ChangeLog main-ChangeLog || :
151 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
156 rm -rf $RPM_BUILD_ROOT
159 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
162 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
164 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
165 %banner gnupg-agent-1.9.16-2 << EOF
166 Scripts for starting gnupg-agent have been moved to separate
167 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
171 %defattr(644,root,root,755)
172 %doc g10-ChangeLog g10/options.skel
173 %attr(755,root,root) %{_bindir}/gpg2
174 %attr(755,root,root) %{_bindir}/gpgv2
176 %files common -f gnupg2.lang
177 %defattr(644,root,root,755)
178 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
179 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
180 %attr(755,root,root) %{_bindir}/gpg-connect-agent
181 %attr(755,root,root) %{_bindir}/gpgconf
182 %attr(755,root,root) %{_bindir}/watchgnupg
183 %attr(755,root,root) %{_sbindir}/addgnupghome
184 %attr(755,root,root) %{_bindir}/kbxutil
188 %files -n gnupg-smime
189 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_bindir}/gpgsm
192 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
194 %files -n gnupg-agent
195 %defattr(644,root,root,755)
196 %doc agent-ChangeLog scd-ChangeLog
197 %attr(755,root,root) %{_bindir}/gpg-agent
198 %attr(755,root,root) %{_bindir}/sc-copykeys
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