source: projects/specs/trunk/g/gzip/gzip-vl.spec @ 8203

Revision 8203, 8.9 KB checked in by daisuke, 10 years ago (diff)

gzip: update to 1.6

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