1 Summary: GnuPG extension - agent
2 Summary(pl): Rozszerzenie GnuPG - agent
7 Group: Applications/File
8 Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz
9 # Source0-md5: 341ad5902e65afc63e56626832faa2c1
10 Source1: gnupg-agent.sh
12 URL: http://www.gnupg.org/
13 BuildRequires: automake
14 BuildRequires: gdbm-devel
15 BuildRequires: gettext-devel >= 0.12.1
16 BuildRequires: libassuan-devel >= 1:0.6.4
17 BuildRequires: libgcrypt-devel >= 1.1.93
18 BuildRequires: libgpg-error-devel >= 0.6
19 BuildRequires: libksba-devel >= 0.9.4
20 BuildRequires: pcsc-lite-devel
21 BuildRequires: opensc-devel >= 0.8.0
22 BuildRequires: pth-devel >= 2.0.0
23 BuildRequires: texinfo
24 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _libexecdir %{_libdir}/gnupg
33 GnuPG extension - agent.
36 Rozszerzenie GnuPG - agent.
39 %setup -q -n gnupg-%{version}
42 sed -i 's/osc_get_status/ocsc_get_status/' scd/apdu.c
45 cp -f /usr/share/automake/config.* scripts
54 --without-included-gettext \
56 --with-mailprog=/usr/lib/sendmail
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT/etc/{profile.d,X11/xinit/xinitrc.d}
65 DESTDIR=$RPM_BUILD_ROOT
67 ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/%{name}-agent.sh
69 ln -sf /etc/profile.d/%{name}-agent.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/%{name}-agent.sh
74 rm -rf $RPM_BUILD_ROOT
77 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
80 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_bindir}/gpg-agent
85 %attr(755,root,root) %{_bindir}/gpgsm
86 %attr(755,root,root) %{_bindir}/kbxutil
87 %attr(755,root,root) %{_bindir}/sc-copykeys
88 %attr(755,root,root) %{_bindir}/sc-investigate
89 %attr(755,root,root) %{_bindir}/scdaemon
90 %attr(755,root,root) %{_libdir}/gnupg/gpg-protect-tool
91 %attr(755,root,root) %{_libdir}/gnupg/pcsc-wrapper
92 %attr(755,root,root) /etc/profile.d/%{name}-agent.sh
93 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/%{name}-agent.sh