source: projects/specs/tags/6_0_REL/g/gzip/gzip-vl.spec @ 3514

Revision 3514, 8.9 KB checked in by iwaim, 13 years ago (diff)

gzip 1.3.13-2

Line 
1Summary: The GNU data compression program.
2Summary(ja): GNU データ圧縮プログラム
3Name: gzip
4Version: 1.3.13
5Release: 2%{?_dist_release}
6License: GPLv3+ and GFDL
7Group: Applications/Archiving
8URL: http://www.gzip.org/
9
10Source: ftp://alpha.gnu.org/gnu/gzip/gzip-%{version}.tar.gz
11Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
12Patch1: gzip-1.3.5-zforce.patch
13Patch3: gzip-1.3.9-stderr.patch
14Patch4: gzip-1.3.10-zgreppipe.patch
15Patch5: gzip-1.3.13-rsync.patch
16Patch7: gzip-1.3.9-addsuffix.patch
17
18Patch14: gzip-1.3.5-cve-2006-4338.patch
19Patch15: gzip-1.3.13-cve-2006-4337.patch
20Patch16: gzip-1.3.5-cve-2006-4337_len.patch
21Patch19: gzip-1.3.12-CVE-2010-0001.patch
22
23
24Prereq: install-info
25Requires: mktemp less
26Buildroot: %{_tmppath}/%{name}-%{version}-root
27
28Vendor: Project Vine
29Distribution: Vine Linux
30
31%description
32The gzip package contains the popular GNU gzip data compression
33program. Gzipped files have a .gz extension.
34
35Gzip should be installed on your Red Hat Linux system, because it is a
36very commonly used data compression program.
37
38%description -l ja
39gzip パッケージには有名な GNU gzip データ圧縮プログラムが収められています.
40gzip で圧縮されたファイルには .gz の拡張子がつきます.
41
42gzip は大変一般的に使われる圧縮プログラムなので,Red Hat Linux システムには
43是非ともインストールされている必要があります.
44
45
46%prep
47%setup -q
48%patch0 -p1 -b .owl-tmp
49%patch1 -p1 -b .zforce
50%patch3 -p1 -b .stderr
51%patch4 -p1 -b .nixi
52%patch5 -p1 -b .rsync
53%patch7 -p1 -b .addsuffix
54
55%patch14 -p1 -b .4338
56%patch15 -p1 -b .4337
57%patch16 -p1 -b .4337_len
58
59%patch19 -p1 -b .CVE-2010-0001
60
61
62%build
63export DEFS="-DNO_ASM"
64export CPPFLAGS="-DHAVE_LSTAT"
65%configure  --bindir=/bin
66make %{?_smp_mflags}
67# make
68# make gzip.info
69
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%install
75rm -rf $RPM_BUILD_ROOT
76%makeinstall  bindir=$RPM_BUILD_ROOT/bin
77mkdir -p $RPM_BUILD_ROOT/usr/bin
78ln -sf ../../bin/gzip $RPM_BUILD_ROOT/usr/bin/gzip
79ln -sf ../../bin/gunzip $RPM_BUILD_ROOT/usr/bin/gunzip
80
81for i in  zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
82    mv $RPM_BUILD_ROOT/bin/$i $RPM_BUILD_ROOT/usr/bin/$i
83done
84
85gzip -9nf $RPM_BUILD_ROOT%{_infodir}/gzip.info*
86
87# we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
88rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
89# uncompress is a part of ncompress package
90rm -f ${RPM_BUILD_ROOT}/bin/uncompress
91
92cat > $RPM_BUILD_ROOT%{_bindir}/zless <<EOF
93#!/bin/sh
94/bin/zcat "\$@" | /usr/bin/less
95EOF
96chmod 755 $RPM_BUILD_ROOT%{_bindir}/zless
97
98
99%post
100/sbin/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir
101
102
103%preun
104if [ $1 = 0 ]; then
105    /sbin/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir
106fi
107
108%files
109%defattr(-,root,root)
110%doc NEWS README AUTHORS ChangeLog THANKS TODO
111/bin/*
112%{_bindir}/*
113%{_mandir}/*/*
114%{_infodir}/gzip.info*
115
116
117%changelog
118* Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.13-2
119- build on current VineSeed
120
121* Thu Feb 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.13-1
122- new upstream release
123
124* Fri Jan 22 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
125- add patch18 for fix CVE-2009-2624 (decompressing dynamic Huffman code)
126- add patch19 for fix CVE-2010-0001 (unlzw)
127
128* Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.12-2
129- spec in utf-8
130
131* Wed Mar 26 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.12-1
132- new upstream release
133- drop old patches and update patches to fit new release
134- add Vendor/Distribution tag
135- add smp_mflags into make section
136- remove uncompress (uncompress is a part of ncompress package)
137- build under new versioning policy
138
139* Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-6vl3
140- [security fix] add patches to fix several vulnerabilities
141  - cve-2006-4334 - null dereference problem
142  - cve-2006-4335 - buffer overflow problem
143  - cve-2006-4336 - buffer underflow problem
144  - cve-2006-4338 - infinite loop problem
145  - cve-2006-4337 - buffer overflow problem
146
147* Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.5-6vl2
148- changed Group to Applications/Archiving
149
150* Fri May 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.5-6vl1
151- based on 1.3.5-6 from Fedora
152  * Fri Apr 29 2005 Ivana Varekova <varekova@redhat.com> 1.3.5-5
153  - fix bug 156269 - CAN-2005-1228 directory traversal bug
154   (using the patch from Ulf Harnhammar)
155  * Tue Apr 26 2005 Ivana Varekova <varekova@redhat.com> 1.3.5-4
156  - fix bug 155746 - CAN-2005-0988 Race condition in gzip (patch9)
157  * Tue Mar 22 2005 Tomas Mraz <tmraz@redhat.com> 1.3.5-2
158  - upstream 1.3.5
159  - dropped long ago obsolete dirinfo patch
160  - escape file names in zgrep (#123012)
161  - make stack in match.S nonexecutable
162  * Mon Dec 13 2004 Ivana Varekova <varekova@redhat.com>
163  - fix bug #106551 problem with zmore which requires the suffix .gz
164    in file name
165  * Fri Jan 31 2003 Jeff Johnson <jbj@redhat.com> 1.3.3-9
166  - enlarge window buffer to avoid accessing beyond end-of-buffer
167    (#78413,#83095).
168  - re-enable rsync ready patch.
169
170* Fri May  2 2003 IWAI Masaharu <iwai@alib.jp> 1.3.2-2vl2
171- rebuild with new toolchain
172- fix typo in %%changelog
173
174* Mon Jan 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.2-2vl1
175- based on 1.3.2-2 from Rawhide and rebuilt for Vine Linux
176
177* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
178- automated rebuild
179
180* Mon Nov 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.3.2-1
181- 1.3.2: no need for autoconf 2.5x hacks anymore
182
183* Sat Nov 17 2001 Florian La Roche <Florian.LaRoche@redhat.de>
184- update to 1.3.1:
185        - disable patch2
186
187* Fri Oct 26 2001 Trond Eivind Glomsr <teg@redhat.com> 1.3.0-16
188- replace tempfile patches with improved ones solar@openwall.com
189- Add less to the dependency chain - zless needs it
190
191* Thu Aug 23 2001 Trond Eivind Glomsr <teg@redhat.com> 1.3.0-15
192- Fix typo in comment in zgrep (#52465)
193- Copyright -> License
194
195* Tue Jun  5 2001 Trond Eivind Glomsr <teg@redhat.com>
196- Patch various uses of $$ in the bundled scripts
197
198* Mon Jun  4 2001 Trond Eivind Glomsr <teg@redhat.com>
199- Fix the SIGPIPE patch to avoid blank lines (#43319)
200
201* Thu Feb 08 2001 Philipp Knirsch <pknirsch@redhat.de>
202- Fixed buzilla bug #26680. Wrong skip value after mktemp patch and forced
203  overwrite for output file during decompression.
204
205* Tue Jan 30 2001 Trond Eivind Glomsr <teg@redhat.com>
206- trap SIGPIPE in zgrep, so "zgrep | less" gets a happy ending
207  (#24104)
208
209* Sun Dec 10 2000 Trond Eivind Glomsr <teg@redhat.com>
210- add HAVE_LSTAT define, to avoid it doing weird things to symlinks
211  instead of ignoring them as the docs say it should (#22045)
212
213* Fri Dec 01 2000 Trond Eivind Glomsr <teg@redhat.com>
214- rebuild
215
216* Thu Nov 09 2000 Trond Eivind Glomsr <teg@redhat.com>
217- patch all scripts so usage error messages are written to
218  stderr (#20597)
219
220* Mon Oct 30 2000 Trond Eivind Glomsr <teg@redhat.com>
221- disable assembly, as it is faster without it (bug #19910)
222
223* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
224- automatic rebuild
225
226* Tue Jun 27 2000 Trond Eivind Glomsr <teg@redhat.com>
227- rebuild
228
229* Wed Jun 07 2000 Trond Eivind Glomsr <teg@redhat.com>
230- Use %%{_mandir}, %%{_infodir},  %%configure, %%makeinstall
231  and %%{_tmppath}
232
233* Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com>
234- Add root as default owner of the files, permits building
235  as non-root user
236
237* Wed May 10 2000 Trond Eivind Glomsr <teg@redhat.com>
238- Build system handles stripping
239- Don't do thing the system does, like creating directories
240- use --bindir /bin
241- Added URL
242- skip unnecesarry sed step
243- Include THANKS, AUTHORS, ChangeLog, TODO
244
245* Mon Mar 20 2000 Bernhard Rosenkraenzer <bero@redhat.com>
246- 1.3
247- handle RPM_OPT_FLAGS
248
249* Tue Feb 15 2000 Cristian Gafton <gafton@redhat.com>
250- handle compressed man pages even better
251
252* Tue Feb 08 2000 Cristian Gafton <gafton@redhat.com>
253- adopt patch from Paul Eggert to fix detection of the improper tables in
254  inflate.c(huft_build)
255- the latest released version 1.2.4a, which provides documentation updates
256  only. But it lets us use small revision numbers again
257- add an dirinfo entry for gzip.info so we can get rid of the ugly --entry
258  args to install-info
259
260* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
261- handle compressed manpages
262
263* Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
264- Fix bug #7970
265
266* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
267- auto rebuild in the new build environment (release 14)
268
269* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
270- built against gliibc 2.1
271
272* Thu May 07 1998 Prospector System <bugs@redhat.com>
273- translations modified for de, fr, tr
274
275* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
276- added /usr/bin/gzip and /usr/bin/gunzip symlinks as some programs are too
277  brain dead to figure out they should be at least trying to use $PATH
278- added BuildRoot
279
280* Wed Jan 28 1998 Erik Troan <ewt@redhat.com>
281- fix /tmp races
282
283* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
284- uses install-info
285- applied patch for gzexe
286
287* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
288- built against glibc
289
290* Tue Apr 22 1997 Marc Ewing <marc@redhat.com>
291- (Entry added for Marc by Erik) fixed gzexe to use /bin/gzip
292
Note: See TracBrowser for help on using the repository browser.