forked from stefwalter/gzip-dist-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgzip.spec
481 lines (358 loc) · 15.6 KB
/
gzip.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
Summary: The GNU data compression program
Name: gzip
Version: 1.8
Release: 2%{?dist}
# info pages are under GFDL license
License: GPLv3+ and GFDL
Group: Applications/File
Source0: http://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
Source1: https://www.gnu.org/licenses/fdl-1.3.txt
# downstream solution for coloured z*grep (#1034839)
Source100: colorzgrep.csh
Source101: colorzgrep.sh
# Fixed in upstream code.
# http://thread.gmane.org/gmane.comp.gnu.gzip.bugs/378
URL: http://www.gzip.org/
# Requires should not be added for gzip wrappers (eg. zdiff, zgrep,
# zless) of another tools, because gzip "extends" the tools by its
# wrappers much more than it "requires" them.
Requires: /sbin/install-info
Requires: coreutils
BuildRequires: texinfo
Conflicts: filesystem < 3
Provides: /bin/gunzip
Provides: /bin/gzip
Provides: /bin/zcat
# Gzip contains bundled Gnulib
# exception https://fedorahosted.org/fpc/ticket/174
Provides: bundled(gnulib)
%description
The gzip package contains the popular GNU gzip data compression
program. Gzipped files have a .gz extension.
Gzip should be installed on your system, because it is a
very commonly used data compression program.
%prep
%setup -q
cp %{SOURCE1} .
%build
export DEFS="NO_ASM"
export CPPFLAGS="-DHAVE_LSTAT"
export CC="%{__cc}"
export CPP="%{__cpp}"
export CXX="%{__cxx}"
%configure
make
#make gzip.info
%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
# we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
# uncompress is a part of ncompress package
rm -f ${RPM_BUILD_ROOT}/%{_bindir}/uncompress
# coloured z*grep (#1034839)
%global profiledir %{_sysconfdir}/profile.d
mkdir -p %{buildroot}%{profiledir}
install -p -m 644 %{SOURCE100} %{buildroot}%{profiledir}
install -p -m 644 %{SOURCE101} %{buildroot}%{profiledir}
%post
if [ -f %{_infodir}/gzip.info* ]; then
/sbin/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir || :
fi
%preun
if [ $1 = 0 ]; then
if [ -f %{_infodir}/gzip.info* ]; then
/sbin/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir || :
fi
fi
%files
%defattr(-,root,root)
%doc NEWS README AUTHORS ChangeLog THANKS TODO
%{!?_licensedir:%global license %%doc}
%license COPYING fdl-1.3.txt
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/gzip.info*
%{profiledir}/*
%changelog
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Jul 01 2016 Petr Stodulka <[email protected]> - 1.8-1
- rebase to v1.8
- gzip -l no longer falsely reports a write error when writing to a pipe
* Tue Apr 05 2016 Petr Stodulka <[email protected]> - 1.7-1
- rebase to new upstream version 1.7
- dropped all patches (almost all issues are fixed in new upstream version,
sometimes in different way)
- only patch gzip-1.3.12-openbsd-owl-tmp.patch is untested - code is changed
significantly and patch is undocumented from archaic time, so I drop it too
Resolves: #1321560
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 1.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jul 09 2015 Petr Stodulka <[email protected]> - 1.6-9
- fix zless for archive with empty file (#1238298)
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 1.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Feb 21 2015 Till Maas <[email protected]> - 1.6-7
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
* Tue Aug 26 2014 Petr Stodulka <[email protected]> - 1.6-7
- correct changelog
* Tue Aug 26 2014 Petr Stodulka <[email protected]> - 1.6-6
- changed spec file - build section
obey compiler macros %__cc, %__cpp, %__cxx (#667144)
- zgrep inherits color setup from grep (#1034839)
* Sat Aug 16 2014 Fedora Release Engineering <[email protected]> - 1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jul 12 2014 Tom Callaway <[email protected]> - 1.6-4
- fix license handling
* Fri Jun 06 2014 Petr Stodulka <[email protected]> - 1.6-3
- Added description of rsyncable into the manpage (#988713)
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jun 11 2013 Michal Luscon <[email protected]> - 1.6-1
- New upstream version
- Removed addsuffix.patch
* Thu Mar 14 2013 Michal Luscon <[email protected]> - 1.5-5
- Adjust gzip-1.3.5-zforce patch
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 1.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Nov 13 2012 Daniel Drake <[email protected]> - 1.5-3
- Fix "gzip --rsyncable" functionality by removing a spurious blank line from
the patch.
* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jun 21 2012 Michal Luscon <[email protected]>
- Added bundled(glib)
* Tue Jun 19 2012 Michal Luscon <[email protected]> 1.5-1
- New upstream version
- Removed gzip-1.3.9-stderr.patch
- Removed gzip-1.3.10-zgreppipe.patch
- Removed gzip-1.3.13-noemptysuffix.patch
* Wed Jan 25 2012 Harald Hoyer <[email protected]> 1.4-6
- add filesystem guard
* Wed Jan 25 2012 Harald Hoyer <[email protected]> 1.4-5
- install everything in /usr
https://fedoraproject.org/wiki/Features/UsrMove
* Fri Jan 13 2012 Fedora Release Engineering <[email protected]> - 1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <[email protected]> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Sep 6 2010 Karel Klic <[email protected]> - 1.4-2
- Removed the dependency on less (rhbz#629580)
- Removed the BuildRoot tag
- Removed the %%clean section
* Tue Mar 16 2010 Karel Klic <[email protected]> - 1.4-1
- New upstream release
- Use XZ upstream source archive
- Removed cve-2010-0001 patch as it's fixed in this release
- Removed zdiff patch as it's fixed in this release
* Mon Feb 22 2010 Karel Klic <[email protected]> - 1.3.13-3
- Added a patch to disallow -S '' parameter (noemptysuffix)
* Fri Jan 22 2010 Karel Klic <[email protected]> - 1.3.13-2
- Fixed CVE-2010-0001 (rhbz#554418)
* Tue Dec 1 2009 Karel Klic <[email protected]> - 1.3.13-1
- New upstream version
- Updated license from GPLv2 to GPLv3+
- Removed gzip-1.3.12-futimens.patch, as it is fixed in the new version
- Updated rsync patch to the new upstream version
- Updated cve-2006-4337 patch to use gzip_error instead of error
* Fri Oct 9 2009 Ivana Varekova <[email protected]> - 1.3.12-12
- change the source tag
* Tue Aug 11 2009 Ivana Varekova <varekova redhat com> - 1.3.12-11
- fix installation with --excludedocs option (#515975)
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.3.12-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Mar 13 2009 Ivana Varekova <[email protected]> - 1.3.12-9
- fix #484213 - zdiff shows no output
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1.3.12-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Sep 1 2008 Ivana Varekova <[email protected]> - 1.3.12-7
- update patches
* Wed Feb 20 2008 Fedora Release Engineering <[email protected]> - 1.3.12-6
- Autorebuild for GCC 4.3
* Fri Jan 18 2008 Ivana Varekova <[email protected]> - 1.3.12-5
- rebuild
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.3.12-4
- Rebuild for selinux ppc32 issue.
* Fri Jun 15 2007 Ivana Varekova <[email protected]> - 1.3.12-3
- remove useless patches (fixed in upstream version)
* Mon Jun 11 2007 Ivana Varekova <[email protected]> - 1.3.12-2
- remove useless patches
* Mon Jun 4 2007 Ivana Varekova <[email protected]> - 1.3.12-1
- update to 1.3.12
* Mon Mar 5 2007 Ivana Varekova <[email protected]> - 1.3.11-1
- update to 1.3.11
remove uncompress
* Tue Feb 6 2007 Ivana Varekova <[email protected]> - 1.3.10-1
- Resolves: 225878
update to 1.3.10
change BuildRoot
* Mon Jan 22 2007 Ivana Varekova <[email protected]> - 1.3.9-2
- Resolves: 223702
fix non-failsafe install-info problem
* Mon Jan 15 2007 Ivana Varekova <[email protected]> - 1.3.9-1
- rebuild to 1.3.9
- spec cleanup
* Wed Nov 22 2006 Ivana Varekova <[email protected]> - 1.3.5-11
- fix too strict uncompress function
* Mon Oct 23 2006 Ivana Varekova <[email protected]> - 1.3.5-10
- fix package description (#208924)
* Sun Oct 01 2006 Jesse Keating <[email protected]> - 1.3.5-9
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
* Wed Sep 20 2006 Ivana Varekova <[email protected]> 1.3.5-8
- fix bug 204676 (patches by Tavis Ormandy)
- cve-2006-4334 - null dereference problem
- cve-2006-4335 - buffer overflow problem
- cve-2006-4336 - buffer underflow problem
- cve-2006-4338 - infinite loop problem
- cve-2006-4337 - buffer overflow problem
* Fri Jul 14 2006 Karsten Hopp <[email protected]> 1.3.5-7
- buildrequire texinfo, otherwise gzip.info will be empty
* Wed Jul 12 2006 Jesse Keating <[email protected]> - 1.3.5-6.2.2
- rebuild
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 1.3.5-6.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 1.3.5-6.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Mon May 02 2005 Ivana Varekova <[email protected]> 1.3.5-6
- rebuilt
* Fri Apr 29 2005 Ivana Varekova <[email protected]> 1.3.5-5
- fix bug 156269 - CAN-2005-1228 directory traversal bug
(using the patch from Ulf Harnhammar)
* Tue Apr 26 2005 Ivana Varekova <[email protected]> 1.3.5-4
- fix bug 155746 - CAN-2005-0988 Race condition in gzip (patch9)
* Wed Mar 23 2005 Tomas Mraz <[email protected]> 1.3.5-3
- don't use the asm code again as it's slower than the gcc compiled one
- convert the .spec to UTF-8
* Tue Mar 22 2005 Tomas Mraz <[email protected]> 1.3.5-2
- upstream 1.3.5
- dropped long ago obsolete dirinfo patch
- escape file names in zgrep (#123012)
- make stack in match.S nonexecutable
* Fri Mar 04 2005 Jiri Ryska <[email protected]>
- rebuilt
* Mon Dec 13 2004 Ivana Varekova <[email protected]>
- fix patch - remove brackets
* Mon Dec 13 2004 Ivana Varekova <[email protected]>
- fix bug #106551 problem with zmore which requires the suffix .gz in file name
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
* Tue Oct 28 2003 Jeff Johnson <[email protected]> 1.3.3-11
- rebuilt.
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Fri Jan 31 2003 Jeff Johnson <[email protected]> 1.3.3-9
- enlarge window buffer to avoid accessing beyond end-of-buffer (#78413,#83095).
- re-enable rsync ready patch.
* Wed Jan 22 2003 Tim Powers <[email protected]>
- rebuilt
* Fri Nov 22 2002 Jeff Johnson <[email protected]> 1.3.3-7
- workaround mis-compilation with gcc-3.2-4 on alpha for now (#78413).
* Mon Nov 18 2002 Tim Powers <[email protected]>
- rebuild on all arches
- remove file from buildroot we aren't shipping
* Fri Jun 21 2002 Tim Powers <[email protected]>
- automated rebuild
* Fri Jun 21 2002 Trond Eivind Glomsrød <[email protected]> 1.3.3-4
- Fix the reading of unitialized memory problem (#66913)
* Thu May 23 2002 Tim Powers <[email protected]>
- automated rebuild
* Thu Apr 25 2002 Trond Eivind Glomsrød <[email protected]> 1.3.3-2
- Rebuild
* Wed Mar 13 2002 Trond Eivind Glomsrød <[email protected]> 1.3.3-1
- 1.3.3
* Sun Mar 10 2002 Florian La Roche <[email protected]>
- add rsyncable patch #58888
* Thu Feb 21 2002 Trond Eivind Glomsrød <[email protected]> 1.3.2-3
- Rebuild
* Wed Jan 09 2002 Tim Powers <[email protected]>
- automated rebuild
* Mon Nov 19 2001 Bernhard Rosenkraenzer <[email protected]> 1.3.2-1
- 1.3.2: no need for autoconf 2.5x hacks anymore
* Sat Nov 17 2001 Florian La Roche <[email protected]>
- update to 1.3.1:
- disable patch2
* Fri Oct 26 2001 Trond Eivind Glomsrød <[email protected]> 1.3.0-16
- replace tempfile patches with improved ones [email protected]
- Add less to the dependency chain - zless needs it
* Thu Aug 23 2001 Trond Eivind Glomsrød <[email protected]> 1.3.0-15
- Fix typo in comment in zgrep (#52465)
- Copyright -> License
* Tue Jun 5 2001 Trond Eivind Glomsrød <[email protected]>
- Patch various uses of $$ in the bundled scripts
* Mon Jun 4 2001 Trond Eivind Glomsrød <[email protected]>
- Fix the SIGPIPE patch to avoid blank lines (#43319)
* Thu Feb 08 2001 Philipp Knirsch <[email protected]>
- Fixed buzilla bug #26680. Wrong skip value after mktemp patch and forced
overwrite for output file during decompression.
* Tue Jan 30 2001 Trond Eivind Glomsrød <[email protected]>
- trap SIGPIPE in zgrep, so "zgrep | less" gets a happy ending
(#24104)
* Sun Dec 10 2000 Trond Eivind Glomsrød <[email protected]>
- add HAVE_LSTAT define, to avoid it doing weird things to symlinks
instead of ignoring them as the docs say it should (#22045)
* Fri Dec 01 2000 Trond Eivind Glomsrød <[email protected]>
- rebuild
* Thu Nov 09 2000 Trond Eivind Glomsrød <[email protected]>
- patch all scripts so usage error messages are written to
stderr (#20597)
* Mon Oct 30 2000 Trond Eivind Glomsrød <[email protected]>
- disable assembly, as it is faster without it (bug #19910)
* Thu Jul 13 2000 Prospector <[email protected]>
- automatic rebuild
* Tue Jun 27 2000 Trond Eivind Glomsrød <[email protected]>
- rebuild
* Wed Jun 07 2000 Trond Eivind Glomsrød <[email protected]>
- Use %%{_mandir}, %%{_infodir}, %%configure, %%makeinstall
and %%{_tmppath}
* Fri May 12 2000 Trond Eivind Glomsrød <[email protected]>
- Add root as default owner of the files, permits building
as non-root user
* Wed May 10 2000 Trond Eivind Glomsrød <[email protected]>
- Build system handles stripping
- Don't do thing the system does, like creating directories
- use --bindir /bin
- Added URL
- skip unnecesarry sed step
- Include THANKS, AUTHORS, ChangeLog, TODO
* Mon Mar 20 2000 Bernhard Rosenkraenzer <[email protected]>
- 1.3
- handle RPM_OPT_FLAGS
* Tue Feb 15 2000 Cristian Gafton <[email protected]>
- handle compressed man pages even better
* Tue Feb 08 2000 Cristian Gafton <[email protected]>
- adopt patch from Paul Eggert to fix detection of the improper tables in
inflate.c(huft_build)
- the latest released version 1.2.4a, which provides documentation updates
only. But it lets us use small revision numbers again
- add an dirinfo entry for gzip.info so we can get rid of the ugly --entry
args to install-info
* Mon Feb 7 2000 Bill Nottingham <[email protected]>
- handle compressed manpages
* Thu Feb 03 2000 Elliot Lee <[email protected]>
- Fix bug #7970
* Sun Mar 21 1999 Cristian Gafton <[email protected]>
- auto rebuild in the new build environment (release 14)
* Thu Dec 17 1998 Cristian Gafton <[email protected]>
- built against gliibc 2.1
* Thu May 07 1998 Prospector System <[email protected]>
- translations modified for de, fr, tr
* Thu Apr 09 1998 Cristian Gafton <[email protected]>
- added /usr/bin/gzip and /usr/bin/gunzip symlinks as some programs are too
brain dead to figure out they should be at least trying to use $PATH
- added BuildRoot
* Wed Jan 28 1998 Erik Troan <[email protected]>
- fix /tmp races
* Sun Sep 14 1997 Erik Troan <[email protected]>
- uses install-info
- applied patch for gzexe
* Mon Jun 02 1997 Erik Troan <[email protected]>
- built against glibc
* Tue Apr 22 1997 Marc Ewing <[email protected]>
- (Entry added for Marc by Erik) fixed gzexe to use /bin/gzip