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: ccea28fbab26bcb01890f2687d71f900
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: bzip2-devel
20 BuildRequires: gettext-devel >= 0.14.1
21 BuildRequires: libassuan-devel >= 1:0.6.10
22 BuildRequires: libgcrypt-devel >= 1.1.94
23 BuildRequires: libgpg-error-devel >= 1.0
24 BuildRequires: libksba-devel >= 0.9.13
25 BuildRequires: libusb-devel
26 BuildRequires: pcsc-lite-devel
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
154 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
157 rm -rf $RPM_BUILD_ROOT
160 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
163 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
165 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
166 %banner gnupg-agent-1.9.16-2 << EOF
167 Scripts for starting gnupg-agent have been moved to separate
168 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
172 %defattr(644,root,root,755)
173 %doc g10-ChangeLog g10/options.skel
174 %attr(755,root,root) %{_bindir}/gpg2
175 %attr(755,root,root) %{_bindir}/gpgv2
177 %files common -f gnupg2.lang
178 %defattr(644,root,root,755)
179 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
180 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
181 %attr(755,root,root) %{_bindir}/gpg-connect-agent
182 %attr(755,root,root) %{_bindir}/gpgconf
183 %attr(755,root,root) %{_bindir}/gpgkey2ssh
184 %attr(755,root,root) %{_bindir}/gpgparsemail
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
203 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
204 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
205 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
207 %files -n gnupg-agent-profile_d
208 %defattr(644,root,root,755)
209 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
211 %files -n gnupg-agent-xinitrc
212 %defattr(644,root,root,755)
213 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh