source: projects/specs/branches/6/g/gzip/gzip-vl.spec @ 7053

Revision 7053, 8.9 KB checked in by iwamoto, 11 years ago (diff)

gzip: update to 1.5 (Thanks to d-san)

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