]>
Commit | Line | Data |
---|---|---|
d54c94db | 1 | # |
03076a38 | 2 | # Conditional build: |
3731f906 | 3 | %bcond_with max_cache_ttl # add max-cache-ttl option (for tests) |
03076a38 | 4 | %bcond_without xinitrc # don't use xinitrc's directory |
d54c94db | 5 | # |
b626fce0 | 6 | Summary: GnuPG extension - agent |
e824676e | 7 | Summary(pl): Rozszerzenie GnuPG - agent |
b626fce0 | 8 | Name: gnupg-agent |
c3c4c4ba | 9 | Version: 1.9.10 |
fabda93f | 10 | Release: 3 |
b626fce0 AM |
11 | License: GPL |
12 | Group: Applications/File | |
13 | Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz | |
c3c4c4ba | 14 | # Source0-md5: d923cfe0921898fbeb66374a0e32ddc6 |
b626fce0 | 15 | Source1: gnupg-agent.sh |
3731f906 | 16 | # Patch0 based on http://marc.theaimsgroup.com/?l=gnupg-devel&m=109300087831144&w=2 |
17 | # taken from gnupg cvs. | |
18 | Patch0: %{name}-max_cache_ttl.patch | |
b626fce0 AM |
19 | Icon: gnupg.gif |
20 | URL: http://www.gnupg.org/ | |
796ab0e9 | 21 | BuildRequires: automake |
b626fce0 | 22 | BuildRequires: gettext-devel >= 0.12.1 |
78690c63 | 23 | BuildRequires: libassuan-devel >= 1:0.6.6 |
b626fce0 AM |
24 | BuildRequires: libgcrypt-devel >= 1.1.93 |
25 | BuildRequires: libgpg-error-devel >= 0.6 | |
78690c63 | 26 | BuildRequires: libksba-devel >= 0.9.7 |
b626fce0 AM |
27 | BuildRequires: pcsc-lite-devel |
28 | BuildRequires: opensc-devel >= 0.8.0 | |
29 | BuildRequires: pth-devel >= 2.0.0 | |
30 | BuildRequires: texinfo | |
31 | BuildRequires: zlib-devel | |
e824676e | 32 | Requires: gnupg |
33 | Requires: pinentry | |
03076a38 | 34 | %{?with_xinitrc:Requires: xinitrc} |
e824676e | 35 | Obsoletes: newpg |
b626fce0 AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %define _libexecdir %{_libdir}/gnupg | |
39 | ||
40 | %description | |
41 | GnuPG extension - agent. | |
42 | ||
43 | %description -l pl | |
44 | Rozszerzenie GnuPG - agent. | |
45 | ||
46 | %prep | |
47 | %setup -q -n gnupg-%{version} | |
3731f906 | 48 | %{?with_max_cache_ttl:%patch0 -p1} |
b626fce0 AM |
49 | |
50 | %build | |
9e958663 | 51 | cp -f /usr/share/automake/config.* scripts |
b626fce0 AM |
52 | %configure \ |
53 | --disable-gpg \ | |
54 | --with-capabilities \ | |
55 | %ifarch sparc sparc64 | |
56 | --disable-m-guard \ | |
57 | %else | |
58 | --enable-m-guard \ | |
59 | %endif | |
60 | --without-included-gettext \ | |
61 | --disable-m-debug \ | |
62 | --with-mailprog=/usr/lib/sendmail | |
63 | ||
64 | %{__make} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
95ce7b87 | 68 | install -d $RPM_BUILD_ROOT/etc/profile.d |
03076a38 | 69 | %{?with_xinitrc:install -d $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d} |
b626fce0 AM |
70 | |
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg | |
fabda93f | 75 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh |
76 | %{?with_xinitrc:ln -sf /etc/profile.d/%{name}.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/%{name}.sh} | |
b626fce0 | 77 | |
f1d02fc8 | 78 | %find_lang gnupg2 |
b626fce0 AM |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post | |
84 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
85 | ||
86 | %postun | |
87 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
88 | ||
f1d02fc8 | 89 | %files -f gnupg2.lang |
b626fce0 | 90 | %defattr(644,root,root,755) |
7cc1b89e | 91 | %doc agent/ChangeLog |
b626fce0 AM |
92 | %attr(755,root,root) %{_bindir}/gpg-agent |
93 | %attr(755,root,root) %{_bindir}/gpgsm | |
94 | %attr(755,root,root) %{_bindir}/kbxutil | |
95 | %attr(755,root,root) %{_bindir}/sc-copykeys | |
96 | %attr(755,root,root) %{_bindir}/sc-investigate | |
97 | %attr(755,root,root) %{_bindir}/scdaemon | |
98 | %attr(755,root,root) %{_libdir}/gnupg/gpg-protect-tool | |
9e958663 | 99 | %attr(755,root,root) %{_libdir}/gnupg/pcsc-wrapper |
fabda93f | 100 | %attr(755,root,root) /etc/profile.d/%{name}.sh |
03076a38 | 101 | %{?with_xinitrc:%attr(755,root,root) /etc/X11/xinit/xinitrc.d/%{name}.sh} |