]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- updated to 1.9.9
[packages/gnupg2.git] / gnupg2.spec
1 Summary:        GnuPG extension - agent
2 Summary(pl):    Rozszerzenie GnuPG - agent
3 Name:           gnupg-agent
4 Version:        1.9.9
5 Release:        1
6 License:        GPL
7 Group:          Applications/File
8 Source0:        ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.gz
9 # Source0-md5:  341ad5902e65afc63e56626832faa2c1
10 Source1:        gnupg-agent.sh
11 Icon:           gnupg.gif
12 URL:            http://www.gnupg.org/
13 BuildRequires:  automake
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
25 Requires:       gnupg
26 Requires:       pinentry
27 Obsoletes:      newpg
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 # Typo
42 sed -i 's/osc_get_status/ocsc_get_status/' scd/apdu.c
43
44 %build
45 cp -f /usr/share/automake/config.* scripts
46 %configure \
47         --disable-gpg \
48         --with-capabilities \
49 %ifarch sparc sparc64
50         --disable-m-guard \
51 %else
52         --enable-m-guard \
53 %endif
54         --without-included-gettext \
55         --disable-m-debug \
56         --with-mailprog=/usr/lib/sendmail
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT/etc/{profile.d,X11/xinit/xinitrc.d}
63
64 %{__make} install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 ln -sf gpg2 $RPM_BUILD_ROOT%{_bindir}/gpg
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/%{name}-agent.sh
69 ln -sf /etc/profile.d/%{name}-agent.sh $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/%{name}-agent.sh
70
71 %find_lang gnupg2
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post
77 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
78
79 %postun
80 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
81
82 %files -f gnupg2.lang
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_bindir}/gpg-agent
85 %attr(755,root,root) %{_bindir}/gpgsm
86 %attr(755,root,root) %{_bindir}/kbxutil
87 %attr(755,root,root) %{_bindir}/sc-copykeys
88 %attr(755,root,root) %{_bindir}/sc-investigate
89 %attr(755,root,root) %{_bindir}/scdaemon
90 %attr(755,root,root) %{_libdir}/gnupg/gpg-protect-tool
91 %attr(755,root,root) %{_libdir}/gnupg/pcsc-wrapper
92 %attr(755,root,root) /etc/profile.d/%{name}-agent.sh
93 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/%{name}-agent.sh
This page took 0.080693 seconds and 4 git commands to generate.