/[packages]/updates/1/gnupg/current/SPECS/gnupg.spec
ViewVC logotype

Contents of /updates/1/gnupg/current/SPECS/gnupg.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 338303 - (show annotations) (download)
Thu Jan 3 19:01:30 2013 UTC (8 years, 6 months ago) by luigiwalser
File size: 3405 byte(s)
add upstream patch to fix CVE-2012-6085 (mga#8572)
1 Summary: GNU privacy guard - a free PGP replacement
2 Name: gnupg
3 Version: 1.4.11
4 %define subrel 1
5 Release: %mkrel 1
6 License: GPLv3
7 Group: File tools
8 URL: http://www.gnupg.org
9 Source: ftp://ftp.gnupg.org/gcrypt/gnupg/%{name}-%{version}.tar.bz2
10 Source1: ftp://ftp.gnupg.org/gcrypt/gnupg/%{name}-%{version}.tar.bz2.sig
11 Source2: mdk-keys.tar.bz2
12 Source3: mdk-keys.tar.bz2.sig
13 Patch1: gnupg-1.4.2.2-use-agent-by-default.diff
14 Patch4: gnupg-1.4.5-ppc64.patch
15 # splitted off from the previous debian patch
16 Patch6: gnupg-1.4.7-deb-free_caps.patch
17 Patch7: gnupg-1.4.7-deb-manpage.patch
18 Patch8: gnupg-1.4.7-deb-min_privileges.patch
19 #Patch10: gnupg-1.4.6-dir.patch
20 Patch11: gnupg-1.4.12-CVE-2012-6085.diff
21 Requires(post): info-install
22 Requires(preun): info-install
23 BuildRequires: bzip2-devel
24 BuildRequires: docbook-utils
25 BuildRequires: gettext
26 BuildRequires: libcurl-devel >= 7.10
27 BuildRequires: libtermcap-devel
28 BuildRequires: libusb-devel
29 BuildRequires: openldap-devel
30 BuildRequires: perl
31 BuildRequires: readline-devel
32 BuildRequires: sendmail-command
33 BuildRequires: bison
34
35 %description
36 GnuPG is GNU's tool for secure communication and data storage.
37 It can be used to encrypt data and to create digital signatures.
38 It includes an advanced key management facility and is compliant
39 with the proposed OpenPGP Internet standard as described in RFC2440.
40
41 %prep
42
43 %setup -q
44 %patch1 -p0 -b .use_agent
45 %patch4 -p1 -b .ppc64
46 %patch6 -p1 -b .free_caps
47 %patch7 -p1 -b .manpage
48 %patch8 -p1 -b .min_privileges
49 #%%patch10 -p1 -b .dir
50 %patch11 -p0 -b .CVE-2012-6085
51
52 %build
53 %serverbuild
54 %configure2_5x \
55 --without-included-regex \
56 --without-included-gettext \
57 --without-included-zlib \
58 --with-static-rnd=linux \
59 --disable-rpath \
60 --without-capabilities \
61 --enable-noexecstack \
62 %ifarch %{sunsparc}
63 --enable-m-guard
64 %else
65 --disable-m-guard
66 %endif
67 %make
68
69 %check
70 # all tests must pass
71 make check
72
73 %install
74 rm -rf %{buildroot}
75
76 %makeinstall_std
77
78 sed -e "s#../g10/gpg#gpg#" < tools/lspgpot > %{buildroot}%{_bindir}/lspgpot
79
80 perl -pi -e 's|/usr/local|/usr/|' %{buildroot}%{_mandir}/man1/gpg.1
81
82 # install some extra man pages by debian
83 install -m0644 debian/gpgsplit.1 %{buildroot}%{_mandir}/man1/
84 install -m0644 debian/lspgpot.1 %{buildroot}%{_mandir}/man1/
85
86 # installed but not wanted
87 rm -f %{buildroot}%{_datadir}/gnupg/{FAQ,faq.html}
88 rm -f %{buildroot}%{_datadir}/locale/locale.alias
89
90 mkdir -p %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS
91 tar xvjf %{SOURCE2} -C %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS
92
93 %{find_lang} %{name}
94
95 %post
96 %_install_info gnupg1.info
97 /bin/true
98
99 %postun
100 %_remove_install_info gnupg1.info
101 /bin/true
102
103 %clean
104 rm -rf %{buildroot}
105
106 %files -f %{name}.lang
107 %doc README NEWS THANKS TODO doc/DETAILS doc/FAQ doc/HACKING
108 %doc doc/OpenPGP doc/samplekeys.asc
109 %doc doc/gpgv.texi
110 %attr(0755,root,root) %{_bindir}/gpg
111 %attr(0755,root,root) %{_bindir}/gpgv
112 %attr(0755,root,root) %{_bindir}/lspgpot
113 %attr(0755,root,root) %{_bindir}/gpgsplit
114 %attr(0755,root,root) %{_bindir}/gpg-zip
115 %dir %{_libdir}/gnupg
116 %attr(0755,root,root) %{_libdir}/gnupg/gpgkeys_curl
117 %attr(0755,root,root) %{_libdir}/gnupg/gpgkeys_finger
118 %attr(0755,root,root) %{_libdir}/gnupg/gpgkeys_hkp
119 %attr(0755,root,root) %{_libdir}/gnupg/gpgkeys_ldap
120 %dir %{_datadir}/gnupg
121 %{_datadir}/gnupg/options.skel
122 %{_mandir}/man1/*
123 %{_mandir}/man7/*
124 %{_infodir}/gnupg1.info*
125 %dir %{_sysconfdir}/RPM-GPG-KEYS
126 %attr(0644,root,root) %{_sysconfdir}/RPM-GPG-KEYS/*.asc

  ViewVC Help
Powered by ViewVC 1.1.28