]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- added -max_cache_ttl.patch (bconded with max_cache_ttl for tests) which
[packages/gnupg2.git] / gnupg2.spec
CommitLineData
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 6Summary: GnuPG extension - agent
e824676e 7Summary(pl): Rozszerzenie GnuPG - agent
b626fce0 8Name: gnupg-agent
c3c4c4ba 9Version: 1.9.10
fabda93f 10Release: 3
b626fce0
AM
11License: GPL
12Group: Applications/File
13Source0: ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz
c3c4c4ba 14# Source0-md5: d923cfe0921898fbeb66374a0e32ddc6
b626fce0 15Source1: gnupg-agent.sh
3731f906 16# Patch0 based on http://marc.theaimsgroup.com/?l=gnupg-devel&m=109300087831144&w=2
17# taken from gnupg cvs.
18Patch0: %{name}-max_cache_ttl.patch
b626fce0
AM
19Icon: gnupg.gif
20URL: http://www.gnupg.org/
796ab0e9 21BuildRequires: automake
b626fce0 22BuildRequires: gettext-devel >= 0.12.1
78690c63 23BuildRequires: libassuan-devel >= 1:0.6.6
b626fce0
AM
24BuildRequires: libgcrypt-devel >= 1.1.93
25BuildRequires: libgpg-error-devel >= 0.6
78690c63 26BuildRequires: libksba-devel >= 0.9.7
b626fce0
AM
27BuildRequires: pcsc-lite-devel
28BuildRequires: opensc-devel >= 0.8.0
29BuildRequires: pth-devel >= 2.0.0
30BuildRequires: texinfo
31BuildRequires: zlib-devel
e824676e 32Requires: gnupg
33Requires: pinentry
03076a38 34%{?with_xinitrc:Requires: xinitrc}
e824676e 35Obsoletes: newpg
b626fce0
AM
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%define _libexecdir %{_libdir}/gnupg
39
40%description
41GnuPG extension - agent.
42
43%description -l pl
44Rozszerzenie 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 51cp -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
67rm -rf $RPM_BUILD_ROOT
95ce7b87 68install -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
74ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg
fabda93f 75install %{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
81rm -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}
This page took 0.070541 seconds and 4 git commands to generate.