/[packages]/cauldron/gzip/current/SPECS/gzip.spec
ViewVC logotype

Contents of /cauldron/gzip/current/SPECS/gzip.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 270 - (show annotations) (download)
Fri Jan 7 19:33:46 2011 UTC (13 years, 3 months ago) by tmb
File size: 2555 byte(s)
imported package gzip
1 Name: gzip
2 Summary: The GNU data compression program
3 Version: 1.4
4 Release: %mkrel 3
5 Source0: ftp://alpha.gnu.org/pub/gnu/gzip/gzip-%{version}.tar.gz
6 Source1: ftp://alpha.gnu.org/pub/gnu/gzip/gzip-%{version}.tar.gz.sig
7 Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
8 Patch1: gzip-1.3.5-zforce.patch
9 Patch3: gzip-1.3.9-stderr.patch
10 Patch4: gzip-1.3.10-zgreppipe.patch
11 Patch5: gzip-1.3.13-rsync.patch
12 Patch6: gzip-1.3.3-window-size.patch
13 Patch7: gzip-1.3.9-addsuffix.patch
14 Patch12: gzip-1.3.5-cve-2006-4335.patch
15 Patch13: gzip-1.3.5-cve-2006-4336.patch
16 Patch14: gzip-1.3.5-cve-2006-4338.patch
17 Patch15: gzip-1.3.9-cve-2006-4337.patch
18 Patch16: gzip-1.3.5-cve-2006-4337_len.patch
19 Patch17: gzip-1.3.14-CVE-2009-2624-1.diff
20 URL: http://www.gzip.org
21 License: GPL
22 Group: Archiving/Compression
23 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
24 Requires(pre): info-install
25 Requires(preun): info-install
26 Requires: mktemp less
27 BuildRequires: texinfo
28
29 %description
30 The gzip package contains the popular GNU gzip data compression
31 program. Gzipped files have a .gz extension.
32
33 Gzip should be installed on your Mageia system, because it is a
34 very commonly used data compression program.
35
36 %prep
37 %setup -q
38 %patch0 -p1 -b .owl-tmp
39 %patch1 -p0 -b .zforce
40 %patch3 -p1 -b .stderr
41 %patch4 -p1 -b .nixi
42 %patch5 -p1 -b .rsync
43 %patch6 -p1 -b .window-size
44 %patch7 -p1 -b .addsuffix
45 %patch12 -p1 -b .4335
46 %patch13 -p1 -b .4336
47 %patch14 -p1 -b .4338
48 %patch15 -p1 -b .4337
49 %patch16 -p1 -b .4337l
50 %patch17 -p0 -b .CVE-2009-2624-1
51
52 %build
53 export DEFS="-DNO_ASM"
54 export CPPFLAGS="-DHAVE_LSTAT"
55
56 %configure2_5x
57
58 %make
59
60 %check
61 make check
62
63 %install
64 rm -rf %{buildroot}
65
66 %makeinstall_std
67
68 install -d %{buildroot}/bin
69
70 for i in gzip gunzip zcat; do
71 mv -f %{buildroot}%{_bindir}/$i %{buildroot}/bin/$i
72 ln -sf ../../bin/$i %{buildroot}%{_bindir}/$i
73 done
74
75 for i in zcmp zdiff zforce zgrep zmore znew ; do
76 sed -e "s|%{buildroot}||g" < %{buildroot}%{_bindir}/$i > %{buildroot}%{_bindir}/.$i
77 rm -f %{buildroot}%{_bindir}/$i
78 mv %{buildroot}%{_bindir}/.$i %{buildroot}%{_bindir}/$i
79 chmod 755 %{buildroot}%{_bindir}/$i
80 done
81
82 # uncompress is a part of ncompress package
83 rm -f %{buildroot}%{_bindir}/uncompress
84
85 cat > %{buildroot}%{_bindir}/zless <<EOF
86 #!/bin/sh
87 export LESSOPEN="|lesspipe.sh %s"
88 less "\$@"
89 EOF
90 chmod 755 %{buildroot}%{_bindir}/zless
91
92
93 %post
94 %_install_info %{name}.info
95
96 %preun
97 %_remove_install_info %{name}.info
98
99 %clean
100 rm -rf %{buildroot}
101
102 %files
103 %defattr(-,root,root)
104 %doc NEWS README AUTHORS ChangeLog
105 /bin/*
106 %{_bindir}/*
107 %{_mandir}/*/*
108 %{_infodir}/*
109
110

  ViewVC Help
Powered by ViewVC 1.1.30