| 1 | Summary: The GNU data compression program
|
|---|
| 2 | Name: gzip
|
|---|
| 3 | Version: 1.4
|
|---|
| 4 | Release: 6%{?dist}
|
|---|
| 5 | # info pages are under GFDL license
|
|---|
| 6 | License: GPLv3+ and GFDL
|
|---|
| 7 | Group: Applications/File
|
|---|
| 8 | Source: http://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.gz
|
|---|
| 9 |
|
|---|
| 10 | Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
|
|---|
| 11 | Patch1: gzip-1.3.5-zforce.patch
|
|---|
| 12 | Patch2: gzip-1.3.9-stderr.patch
|
|---|
| 13 | Patch3: gzip-1.3.10-zgreppipe.patch
|
|---|
| 14 | Patch4: gzip-1.3.13-rsync.patch
|
|---|
| 15 | Patch5: gzip-1.3.9-addsuffix.patch
|
|---|
| 16 | Patch6: gzip-1.3.5-cve-2006-4338.patch
|
|---|
| 17 | Patch7: gzip-1.3.13-cve-2006-4337.patch
|
|---|
| 18 | Patch8: gzip-1.3.5-cve-2006-4337_len.patch
|
|---|
| 19 | # Fixed in upstream code.
|
|---|
| 20 | # http://thread.gmane.org/gmane.comp.gnu.gzip.bugs/378
|
|---|
| 21 | Patch11: gzip-1.3.13-noemptysuffix.patch
|
|---|
| 22 |
|
|---|
| 23 | Patch100: gzip-os2.diff
|
|---|
| 24 |
|
|---|
| 25 | URL: http://www.gzip.org/
|
|---|
| 26 | #Requires: /sbin/install-info
|
|---|
| 27 | #Requires: mktemp less
|
|---|
| 28 | #BuildRequires: texinfo
|
|---|
| 29 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | The gzip package contains the popular GNU gzip data compression
|
|---|
| 33 | program. Gzipped files have a .gz extension.
|
|---|
| 34 |
|
|---|
| 35 | Gzip should be installed on your system, because it is a
|
|---|
| 36 | very commonly used data compression program.
|
|---|
| 37 |
|
|---|
| 38 | %prep
|
|---|
| 39 | %setup -q
|
|---|
| 40 | %patch0 -p1 -b .owl-tmp~
|
|---|
| 41 | %patch1 -p1 -b .zforce~
|
|---|
| 42 | %patch2 -p1 -b .stderr~
|
|---|
| 43 | %patch3 -p1 -b .nixi~
|
|---|
| 44 | %patch4 -p1 -b .rsync~
|
|---|
| 45 | %patch5 -p1 -b .addsuffix~
|
|---|
| 46 | %patch6 -p1 -b .4338~
|
|---|
| 47 | %patch7 -p1 -b .4337~
|
|---|
| 48 | %patch8 -p1 -b .4337l~
|
|---|
| 49 | %patch11 -p1 -b .noemptysuffix~
|
|---|
| 50 |
|
|---|
| 51 | %patch100 -p1 -b .os2~
|
|---|
| 52 |
|
|---|
| 53 | %build
|
|---|
| 54 | export MAKESHELL=/@unixroot/usr/bin/sh.exe
|
|---|
| 55 | export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe
|
|---|
| 56 | export DEFS="NO_ASM"
|
|---|
| 57 | export CPPFLAGS="-DHAVE_LSTAT"
|
|---|
| 58 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"
|
|---|
| 59 | %configure \
|
|---|
| 60 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 61 |
|
|---|
| 62 | make %{?smp_mflags}
|
|---|
| 63 | #make gzip.info
|
|---|
| 64 |
|
|---|
| 65 | %install
|
|---|
| 66 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 67 | %makeinstall
|
|---|
| 68 | mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|---|
| 69 | #make DESTDIR=${RPM_BUILD_ROOT} install
|
|---|
| 70 |
|
|---|
| 71 | rm ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
|
|---|
| 72 |
|
|---|
| 73 | rm ${RPM_BUILD_ROOT}%{_bindir}/gunzip
|
|---|
| 74 | rm ${RPM_BUILD_ROOT}%{_bindir}/uncompress
|
|---|
| 75 | cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/gunzip.exe
|
|---|
| 76 | cp -p ${RPM_BUILD_ROOT}%{_bindir}/gzip.exe ${RPM_BUILD_ROOT}%{_bindir}/uncompress.exe
|
|---|
| 77 |
|
|---|
| 78 | #for i in zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
|
|---|
| 79 | # mv ${RPM_BUILD_ROOT}/@unixroot/bin/$i ${RPM_BUILD_ROOT}%{_bindir}/$i
|
|---|
| 80 | #done
|
|---|
| 81 |
|
|---|
| 82 | gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/gzip.info*
|
|---|
| 83 |
|
|---|
| 84 | # we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
|
|---|
| 85 | rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
|---|
| 86 | # uncompress is a part of ncompress package
|
|---|
| 87 | rm -f ${RPM_BUILD_ROOT}/bin/uncompress
|
|---|
| 88 |
|
|---|
| 89 | %clean
|
|---|
| 90 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 91 |
|
|---|
| 92 | %files
|
|---|
| 93 | %defattr(-,root,root)
|
|---|
| 94 | %doc NEWS README AUTHORS ChangeLog THANKS TODO
|
|---|
| 95 | %{_bindir}/*
|
|---|
| 96 | %{_mandir}/*/*
|
|---|
| 97 | %{_infodir}/gzip.info*
|
|---|
| 98 |
|
|---|
| 99 | %changelog
|
|---|
| 100 | * Thu Feb 02 2012 yd
|
|---|
| 101 | - Remove symlinks from /bin.
|
|---|
| 102 |
|
|---|
| 103 | * Fri Nov 18 2011 yd
|
|---|
| 104 | - keep all executables to /usr/bin and place symlinks in /bin
|
|---|