Summary: The GNU data compression program. Name: gzip Version: 1.2.4a Release: 7 Copyright: GPL Group: Applications/File Source: ftp://prep.ai.mit.edu/pub/gnu/gzip-%{version}.tar.gz Patch0: gzip-%version-dirinfo.patch Prereq: /sbin/install-info Buildroot: /var/tmp/gzip-root %ifarch ia64 %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define DEFCC cc %endif %description The gzip package contains the popular GNU gzip data compression program. Gzipped files have a .gz extension. Gzip should be installed on your Red Hat Linux system, because it is a very commonly used data compression program. %prep %setup -q %patch0 -p1 -b .infodir %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi ./configure make CFLAGS="$RPM_OPT_FLAGS -D_LARGE_FILES" make gzip.info %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/man make install prefix=$RPM_BUILD_ROOT%{_prefix} /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/gzip mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/usr/linux/bin gzip -9nf $RPM_BUILD_ROOT%{_prefix}/info/gzip.info* for i in zcmp zdiff zforce zgrep zmore znew ; do sed -e "s|$RPM_BUILD_ROOT||g" < $RPM_BUILD_ROOT%{_prefix}/bin/$i > $RPM_BUILD_ROOT%{_prefix}/bin/.$i rm -f $RPM_BUILD_ROOT%{_prefix}/bin/$i mv $RPM_BUILD_ROOT%{_prefix}/bin/.$i $RPM_BUILD_ROOT%{_prefix}/bin/$i chmod 755 $RPM_BUILD_ROOT%{_prefix}/bin/$i done cat > $RPM_BUILD_ROOT%{_prefix}/bin/zless < - Rebuild with large files enabled. * Fri Mar 16 2001 Marc Stephenson - Build with default compiler - Rebuild against new shared objects * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Tue Feb 15 2000 Cristian Gafton - handle compressed man pages even better * Tue Feb 08 2000 Cristian Gafton - 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 - handle compressed manpages * Thu Feb 03 2000 Elliot Lee - Fix bug #7970 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 14) * Thu Dec 17 1998 Cristian Gafton - built against gliibc 2.1 * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Thu Apr 09 1998 Cristian Gafton - 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 - fix /tmp races * Sun Sep 14 1997 Erik Troan - uses install-info - applied patch for gzexe * Mon Jun 02 1997 Erik Troan - built against glibc * Tue Apr 22 1997 Marc Ewing - (Entry added for Marc by Erik) fixed gzexe to use /bin/gzip