Summary: Fast compression and decompression utilities. Summary(ja): 高速なファイル圧縮/展開ユーティリティ Name: ncompress Version: 4.2.4 Release: 45%{?_dist_release} License: Public Domain Group: Applications/Archiving Source: ftp://metalab.unc.edu/pub/Linux/utils/compress/ncompress-%{version}.tar.Z Patch0: ncompress-4.2.4-make.patch Patch1: ncompress-4.2.4-lfs2.patch Patch2: ncompress-4.2.4-filenamelen.patch Patch3: ncompress-2GB.patch Patch4: ncompress-4.2.4-zerobyteforce.patch Patch5: ncompress-4.2.4-bssUnderflow.patch Patch6: ncompress-4.2.4-endians.patch BuildRequires: gcc glibc-devel fileutils BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. Install ncompress if you need compression/decompression utilities which are compatible with the original UNIX compress utility. %description -l ja ncompress パッケージには compress と uncompress という ファイル圧縮/展開ユーティリティが含まれています. このユーティリティはオリジナルの UNIX で使われる compress ユーティリティ (ファイル拡張子 .Z) と互換性があります. gzip で圧縮されたファイル (ファイル拡張子 .gz) は扱うことが 出来ませんが,逆に gzip は compress で圧縮されたファイルを 扱うことが出来ます. オリジナルの UNIX の compress ユーティリティと互換性のある ファイル圧縮/展開ユーティリティが必要ならこの ncompress を インストールして下さい. %prep %setup -q %patch0 -p1 %patch1 -p1 -b .lfs %patch2 -p1 -b .filenamelen %patch3 -p1 -b .2GB %patch4 -p1 -b .zerobyteforce %patch5 -p1 -b .bssUnderflow %patch6 -p1 -b .endians %build export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" ENDIAN=4321 %ifarch sparc m68k armv4l ppc s390 s390x ppc64 sparc64 ENDIAN=1234 %endif %ifarch alpha ia64 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DNOALLIGN=0" %endif make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" ENDIAN="$ENDIAN" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 install -m755 compress $RPM_BUILD_ROOT%{_bindir} ln -sf compress $RPM_BUILD_ROOT%{_bindir}/uncompress install -m644 compress.1 $RPM_BUILD_ROOT%{_mandir}/man1 ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/bin/compress /usr/bin/uncompress %{_mandir}/man1/* %doc LZW.INFO README %changelog * Mon Jun 9 2008 Ryoichi INAGAKI 4.2.4-45 - applied new versioning policy - added Patch5 and 6 from Fedora 4.2.4-50 * Tue Sep 19 2006 Peter Vrabec 4.2.4-46 - fix endian problem (#207001) * Thu Aug 10 2006 Peter Vrabec 4.2.4-45 - fix bss buffer underflow CVE-2006-1168 (#201919) - spec in UTF-8 * Sun Sep 10 2006 Ryoichi INAGAKI 4.2.4-44vl2 - changed Group to Applications/Archiving * Wed Jun 7 2006 Ryoichi INAGAKI 4.2.4-44vl1 - added Patch3 and 4 from Fedora development * Fri Apr 21 2006 Peter Vrabec 4.2.4-44 - fix problems with compressing zero-sized files (#189215, #189216) * Thu Sep 22 2005 Peter Vrabec 4.2.4-43 - compress zero-sized files when -f is used(#167615) * Tue Oct 05 2004 Than Ngo 4.2.4-40 - permit files > 2GB to be compressed (#126775). * Tue Apr 8 2003 Hiroaki Irokawa 4.2.4-31vl2 - rebuild * Fri Dec 06 2002 MATSUBAYASHI Kohji 4.2.4-31vl1 - based on 4.2.4-31 from Rawhide and built for Vine Linux - added Japanese summary and description * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 19 2002 Trond Eivind Glomsr 4.2.4-30 - Don't strip when installing * Thu May 23 2002 Tim Powers - automated rebuild * Wed Feb 27 2002 Trond Eivind Glomsr 4.2.4-28 - Rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Mon Nov 26 2001 Trond Eivind Glomsr 4.2.4-26 - Rebuild, to fix problem with broken man page (#56654) * Wed Nov 21 2001 Trond Eivind Glomsr 4.2.4-25 - Exit, don't segfault, when given too long filenames * Sat Jun 09 2001 Florian La Roche - s390x change * Tue May 8 2001 Trond Eivind Glomsr - Make it support large files (structs, stats, opens and of course: _don't use signed longs for file size before and after compression_.) This should fix #39470 * Thu Apr 26 2001 Florian La Roche - add s390x, patch from Oliver Paukstadt * Mon Nov 13 2000 Oliver Paukstadt - add s390 to the bigendian arch list * Thu Aug 17 2000 Trond Eivind Glomsr - change category to Applications/File, to match gzip and bzip2 - rename the spec file to ncompress.spec - add ppc to the bigendian arch list * Fri Jul 21 2000 Trond Eivind Glomsr - rebuild * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jun 13 2000 Trond Eivind Glomsr - update URL - use %%{_mandir} * Wed May 5 2000 Bill Nottingham - fix %build for ia64 * Mon Feb 7 2000 Bill Nottingham - handle compressed manpages * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 14) * Tue Jan 12 1999 Cristian Gafton - build on armv4l too - build for 6.0 * Thu Aug 13 1998 Jeff Johnson - build root * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Wed Oct 21 1997 Cristian Gafton - fixed the spec file * Mon Jun 02 1997 Erik Troan - built against glibc