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

  ViewVC Help
Powered by ViewVC 1.1.30