%define name ncompress %define oname compress %define version 4.2.4 %define release 24mdk Summary: Fast compression and decompression utilities. Name: %{name} Version: %{version} Release: %{release} License: Public Domain Group: Archiving/Compression URL: ftp://sunsite.unc.edu/pub/Linux/utils/compress Source: ftp://sunsite.unc.edu/pub/Linux/utils/compress/ncompress-4.2.4.tar.bz2 Patch0: %{name}-4.2.4-make.patch.bz2 Patch1: %{name}-4.2.4-lfs2.patch.bz2 Patch2: %{name}-4.2.4-filenamelen.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description The ncompress package contains the compress and uncompress file compression and decompression utilities, which are compatible with the original UNIX compress utility (.Z file extensions). These utilities can't handle gzipped (.gz file extensions) files, but gzip can handle compressed files. %prep %setup -q %patch0 -p1 %patch1 -p1 -b .lfs %patch2 -p1 -b .filenamelen %build %ifarch %{ix86} %make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ENDIAN=4321 %endif %ifarch sparc m68k armv4l ppc %make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS" ENDIAN=1234 %endif %ifarch alpha %make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS -DNOALLIGN=0" ENDIAN=4321 %endif %install rm -rf $RPM_BUILD_ROOT %{__install} -m755 %{oname} -D $RPM_BUILD_ROOT%{_bindir}/%{oname} ln -sf %{oname} $RPM_BUILD_ROOT%{_bindir}/uncompress %{__install} -m644 %{oname}.1 -D $RPM_BUILD_ROOT%{_mandir}/man1/%{oname}.1 ln -sf %{oname}.1.bz2 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1.bz2 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/* %{_mandir}/man1/* %doc LZW.INFO README Changes Acknowleds %changelog * Wed Mar 26 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 4.2.4-24mdk - oops, removed zcmp, zmore and zdiff from package * Fri Mar 21 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 4.2.4-23mdk - reintroduced, merged patches from redhat and cleaned up - added zcmp, zmore and zdiff to package - added some docs * Sat Aug 11 2001 Jesse Kuang <kjx@mandrakesoft.com> 4.2.4-22mdk - rebuilt for cooker * Sun Sep 24 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 4.2.4-21mdk - rebuilt for macros. - use of spec helper. - the Big Move. * Fri Apr 14 2000 Vincent Saugey <vince@mandrakesoft.com> 4.2.4-20mdk - corrected group * Sun Mar 19 2000 John Buswell <johnb@mandrakesoft.com> 4.2.4-19mdk - Added PPC Support * Wed Nov 10 1999 Jerome Martin <jerome@mandrakesoft.com> - minor specfile cleanup - rebuild for new environment * Sun Oct 31 1999 David BAUDENS <baudens@mandrakesoft.com> - Add i486 and i686 arch (forgotten by Lord DarkChmou ;) * Mon Oct 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - fix build mutliple archichtechtures.. * Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - Mandrake adaptions - bzip2 man/info pages - add de locale * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com> - build on armv4l too - build for 6.0 * Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com> - build root * Mon Apr 27 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com> - fixed the spec file * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> - built against glibc