2 Summary: GnuPG extension - agent
3 Summary(pl): ozszerzenie GnuPG - agent
8 Group: Applications/File
9 Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz
10 # Source0-md5: 69a8be8f0d236df96f948348f6fda162
11 Source1: gnupg-agent.sh
13 URL: http://www.gnupg.org/
14 BuildRequires: automake
15 BuildRequires: gdbm-devel
16 BuildRequires: gettext-devel >= 0.12.1
17 BuildRequires: libassuan-devel >= 1:0.6.4
18 BuildRequires: libgcrypt-devel >= 1.1.93
19 BuildRequires: libgpg-error-devel >= 0.6
20 BuildRequires: libksba-devel >= 0.9.4
21 BuildRequires: pcsc-lite-devel
22 BuildRequires: opensc-devel >= 0.8.0
23 BuildRequires: pth-devel >= 2.0.0
24 BuildRequires: texinfo
25 BuildRequires: zlib-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _libexecdir %{_libdir}/gnupg
34 GnuPG extension - agent.
37 Rozszerzenie GnuPG - agent.
40 %setup -q -n gnupg-%{version}
43 install %{_datadir}/automake/config.* scripts
52 --without-included-gettext \
54 --with-mailprog=/usr/lib/sendmail
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{profile.d,X11/xinit/xinitrc.d}
63 DESTDIR=$RPM_BUILD_ROOT
65 ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg
66 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/%{name}-agent.sh
67 ln -s %{_sysconfdir}/profile.d/%{name}-agent.sh $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/%{name}-agent.sh
72 rm -rf $RPM_BUILD_ROOT
75 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
78 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_bindir}/gpg-agent
83 %attr(755,root,root) %{_bindir}/gpgsm
84 %attr(755,root,root) %{_bindir}/kbxutil
85 %attr(755,root,root) %{_bindir}/sc-copykeys
86 %attr(755,root,root) %{_bindir}/sc-investigate
87 %attr(755,root,root) %{_bindir}/scdaemon
88 %attr(755,root,root) %{_libdir}/gnupg/gpg-protect-tool
89 %attr(755,root,root) %{_sysconfdir}/profile.d/%{name}-agent.sh
90 %attr(755,root,root) %{_sysconfdir}/X11/xinit/xinitrc.d/%{name}-agent.sh