186 lines
5.1 KiB
RPMSpec
186 lines
5.1 KiB
RPMSpec
Summary: Fast compression and decompression utilities.
|
||
Name: ncompress
|
||
Version: 4.2.4
|
||
Release: 44
|
||
License: distributable
|
||
Group: Applications/File
|
||
Source: ftp://metalab.unc.edu/pub/Linux/utils/compress/ncompress-4.2.4.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
|
||
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.
|
||
|
||
%prep
|
||
|
||
%setup -q
|
||
%patch0 -p1
|
||
%patch1 -p1 -b .lfs
|
||
%patch2 -p1 -b .filenamelen
|
||
%patch3 -p1 -b .2GB
|
||
%patch4 -p1 -b .zerobyteforce
|
||
|
||
%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/usr/bin
|
||
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
||
|
||
|
||
install -m755 compress $RPM_BUILD_ROOT/usr/bin
|
||
ln -sf compress $RPM_BUILD_ROOT/usr/bin/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
|
||
* Fri Apr 21 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-44
|
||
- fix problems with compressing zero-sized files (#189215, #189216)
|
||
|
||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-43.2.1
|
||
- bump again for double-long bug on ppc(64)
|
||
|
||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-43.2
|
||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||
|
||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||
- rebuilt
|
||
|
||
* Thu Sep 22 2005 Peter Vrabec <pvrabec@redhat.com> 4.2.4-43
|
||
- compress zero-sized files when -f is used(#167615)
|
||
|
||
* Fri Mar 18 2005 Peter Vrabec <pvrabec@redhat.com>
|
||
- rebuilt
|
||
|
||
* Thu Feb 08 2005 Peter Vrabec <pvrabec@redhat.com>
|
||
- rebuilt
|
||
|
||
* Tue Oct 05 2004 Than Ngo <than@redhat.com> 4.2.4-40
|
||
- permit files > 2GB to be compressed (#126775).
|
||
|
||
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||
- rebuilt
|
||
|
||
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 4.2.4-32
|
||
- rebuild on all arches
|
||
|
||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Wed Jun 19 2002 Trond Eivind Glomsr<73>d <teg@redhat.com> 4.2.4-30
|
||
- Don't strip when installing
|
||
|
||
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Wed Feb 27 2002 Trond Eivind Glomsr<73>d <teg@redhat.com> 4.2.4-28
|
||
- Rebuild
|
||
|
||
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Mon Nov 26 2001 Trond Eivind Glomsr<73>d <teg@redhat.com> 4.2.4-26
|
||
- Rebuild, to fix problem with broken man page (#56654)
|
||
|
||
* Wed Nov 21 2001 Trond Eivind Glomsr<73>d <teg@redhat.com> 4.2.4-25
|
||
- Exit, don't segfault, when given too long filenames
|
||
|
||
* Sat Jun 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- s390x change
|
||
|
||
* Tue May 8 2001 Trond Eivind Glomsr<73>d <teg@redhat.com>
|
||
- 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 <Florian.LaRoche@redhat.de>
|
||
- add s390x, patch from Oliver Paukstadt <oliver.paukstadt@millenux.com>
|
||
|
||
* Mon Nov 13 2000 Oliver Paukstadt <oliver.paukstadt@millenux.com>
|
||
- add s390 to the bigendian arch list
|
||
|
||
* Thu Aug 17 2000 Trond Eivind Glomsr<73>d <teg@redhat.com>
|
||
- 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<73>d <teg@redhat.com>
|
||
- rebuild
|
||
|
||
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
||
- automatic rebuild
|
||
|
||
* Tue Jun 13 2000 Trond Eivind Glomsr<73>d <teg@redhat.com>
|
||
- update URL
|
||
- use %%{_mandir}
|
||
|
||
* Wed May 5 2000 Bill Nottingham <notting@redhat.com>
|
||
- fix %build for ia64
|
||
|
||
* Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
|
||
- handle compressed manpages
|
||
|
||
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
||
- auto rebuild in the new build environment (release 14)
|
||
|
||
* 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
|