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

  ViewVC Help
Powered by ViewVC 1.1.30