]>
Commit | Line | Data |
---|---|---|
b626fce0 | 1 | Summary: GnuPG extension - agent |
e824676e | 2 | Summary(pl): Rozszerzenie GnuPG - agent |
b626fce0 | 3 | Name: gnupg-agent |
f1d02fc8 | 4 | Version: 1.9.7 |
b626fce0 AM |
5 | Release: 1 |
6 | License: GPL | |
7 | Group: Applications/File | |
8 | Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz | |
f1d02fc8 | 9 | # Source0-md5: 9bee7fe855b14cba433af5273963d4f5 |
b626fce0 AM |
10 | Source1: gnupg-agent.sh |
11 | Icon: gnupg.gif | |
12 | URL: http://www.gnupg.org/ | |
796ab0e9 | 13 | BuildRequires: automake |
b626fce0 AM |
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 | |
e824676e | 25 | Requires: gnupg |
26 | Requires: pinentry | |
27 | Obsoletes: newpg | |
b626fce0 AM |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %define _libexecdir %{_libdir}/gnupg | |
31 | ||
32 | %description | |
33 | GnuPG extension - agent. | |
34 | ||
35 | %description -l pl | |
36 | Rozszerzenie GnuPG - agent. | |
37 | ||
38 | %prep | |
39 | %setup -q -n gnupg-%{version} | |
40 | ||
41 | %build | |
708c8452 | 42 | install %{_datadir}/automake/config.* scripts |
b626fce0 AM |
43 | %configure \ |
44 | --disable-gpg \ | |
45 | --with-capabilities \ | |
46 | %ifarch sparc sparc64 | |
47 | --disable-m-guard \ | |
48 | %else | |
49 | --enable-m-guard \ | |
50 | %endif | |
51 | --without-included-gettext \ | |
52 | --disable-m-debug \ | |
53 | --with-mailprog=/usr/lib/sendmail | |
54 | ||
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
f1d02fc8 | 59 | install -d $RPM_BUILD_ROOT/etc/{profile.d,X11/xinit/xinitrc.d} |
b626fce0 AM |
60 | |
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg | |
f1d02fc8 JB |
65 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/%{name}-agent.sh |
66 | ln -sf /etc/profile.d/%{name}-agent.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/%{name}-agent.sh | |
b626fce0 | 67 | |
f1d02fc8 | 68 | %find_lang gnupg2 |
b626fce0 AM |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post | |
74 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
75 | ||
76 | %postun | |
77 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
78 | ||
f1d02fc8 | 79 | %files -f gnupg2.lang |
b626fce0 AM |
80 | %defattr(644,root,root,755) |
81 | %attr(755,root,root) %{_bindir}/gpg-agent | |
82 | %attr(755,root,root) %{_bindir}/gpgsm | |
83 | %attr(755,root,root) %{_bindir}/kbxutil | |
84 | %attr(755,root,root) %{_bindir}/sc-copykeys | |
85 | %attr(755,root,root) %{_bindir}/sc-investigate | |
86 | %attr(755,root,root) %{_bindir}/scdaemon | |
87 | %attr(755,root,root) %{_libdir}/gnupg/gpg-protect-tool | |
f1d02fc8 JB |
88 | %attr(755,root,root) /etc/profile.d/%{name}-agent.sh |
89 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/%{name}-agent.sh |