]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- fix amd64
[packages/gnupg2.git] / gnupg2.spec
1 #
2 Summary:        GnuPG extension - agent
3 Summary(pl):    ozszerzenie GnuPG - agent
4 Name:           gnupg-agent
5 Version:        1.9.6
6 Release:        1
7 License:        GPL
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
12 Icon:           gnupg.gif
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
26 Requires:       gnupg
27 Requires:       pinentry
28 Obsoletes:      newpg
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %define         _libexecdir     %{_libdir}/gnupg
32
33 %description
34 GnuPG extension - agent.
35
36 %description -l pl
37 Rozszerzenie GnuPG - agent.
38
39 %prep
40 %setup -q -n gnupg-%{version}
41
42 %build
43 install %{_datadir}/automake/config.* scripts
44 %configure \
45         --disable-gpg \
46         --with-capabilities \
47 %ifarch sparc sparc64
48         --disable-m-guard \
49 %else
50         --enable-m-guard \
51 %endif
52         --without-included-gettext \
53         --disable-m-debug \
54         --with-mailprog=/usr/lib/sendmail
55
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{profile.d,X11/xinit/xinitrc.d}
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
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 
68
69 #%%find_lang %{name}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
76
77 %postun
78 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
79
80 %files
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
This page took 0.062574 seconds and 3 git commands to generate.