3f3444c
Summary: Fast compression and decompression utilities
cvsdist 25b4f7e
Name: ncompress
9ff80cf
Version: 4.2.4.4
9ff80cf
Release: 1%{?dist}
3f3444c
License: Public Domain
9564056
Group:  Applications/File
5f233f2
URL:    http://ncompress.sourceforge.net/
9ff80cf
Source: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
1b6dc3c
1b6dc3c
# allow to build ncompress
1b6dc3c
# ~> downstream
1b6dc3c
Patch0: ncompress-4.2.4.4-make.patch
1b6dc3c
426d717
# from dist-git commit 0539779d937
426d717
# (praiskup: removed redundant part as -DNOFUNCDEF is defined)
426d717
# ~> downstream
426d717
Patch1: ncompress-4.2.4.4-lfs.patch
426d717
e100d74
# exit when too long filename is given (do not segfault)
e100d74
# ~> #unknown
e100d74
# ~> downstream
e100d74
Patch2: ncompress-4.2.4.4-filenamelen.patch
e100d74
a748c00
# permit files > 2GB to be compressed
a748c00
# ~> #126775
a748c00
Patch3: ncompress-4.2.4.4-2GB.patch
a748c00
62a6642
# do not fail to compress on ppc/s390x
62a6642
# ~> #207001
62a6642
Patch4: ncompress-4.2.4.4-endians.patch
62a6642
7afa59d
# use memmove instead of memcpy
7afa59d
# ~> 760657
7afa59d
# ~> downstream
7afa59d
Patch5: ncompress-4.2.4.4-memmove.patch
7afa59d
bd019c1
# silence gcc warnings
bd019c1
# ~> downstream
bd019c1
Patch6: ncompress-4.2.4.4-silence-gcc.patch
bd019c1
9564056
BuildRequires: glibc-devel fileutils
cvsdist 25b4f7e
cvsdist 25b4f7e
%description
cvsdist 25b4f7e
The ncompress package contains the compress and uncompress file
cvsdist 25b4f7e
compression and decompression utilities, which are compatible with the
cvsdist 25b4f7e
original UNIX compress utility (.Z file extensions).  These utilities
cvsdist 25b4f7e
can't handle gzipped (.gz file extensions) files, but gzip can handle
cvsdist 25b4f7e
compressed files.
cvsdist 25b4f7e
cvsdist 25b4f7e
Install ncompress if you need compression/decompression utilities
cvsdist 25b4f7e
which are compatible with the original UNIX compress utility.
cvsdist 25b4f7e
cvsdist 25b4f7e
%prep
cvsdist 25b4f7e
%setup -q
1b6dc3c
1b6dc3c
# configure build system
1b6dc3c
# ~> downstream
1b6dc3c
%patch0 -p1 -b .configure-buildsystem
1b6dc3c
1b6dc3c
%ifarch sparc m68k armv4l ppc s390 s390x ppc64 sparc64
1b6dc3c
ARCH_FLAGS="$ARCH_FLAGS -DBYTEORDER=1234"
1b6dc3c
%endif
1b6dc3c
1b6dc3c
%ifarch alpha ia64
1b6dc3c
ARCH_FLAGS="$ARCH_FLAGS -DNOALLIGN=0"
1b6dc3c
%endif
1b6dc3c
1b6dc3c
sed "s/\$(ARCH_FLAGS)/$ARCH_FLAGS/" Makefile.def > Makefile
1b6dc3c
cvsdist 0539779
%patch1 -p1 -b .lfs
cvsdist 9740fe3
%patch2 -p1 -b .filenamelen
e2cbff1
%patch3 -p1 -b .2GB
62a6642
%patch4 -p1 -b .endians
7afa59d
%patch5 -p1 -b .memmove
bd019c1
%patch6 -p1 -b .silence-gcc
cvsdist 25b4f7e
cvsdist 25b4f7e
%build
1b6dc3c
make CFLAGS="%{optflags} %{?nc_endian} %{?nc_align}"
cvsdist 781cacf
cvsdist 25b4f7e
%install
7d7adac
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cvsdist 25b4f7e
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
7d7adac
install -p -m755 compress $RPM_BUILD_ROOT/%{_bindir}
7d7adac
ln -sf compress $RPM_BUILD_ROOT/%{_bindir}/uncompress
7d7adac
install -p -m644 compress.1 $RPM_BUILD_ROOT%{_mandir}/man1
cvsdist 25b4f7e
ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
cvsdist 25b4f7e
cvsdist 25b4f7e
%files
7d7adac
%{_bindir}/compress
7d7adac
%{_bindir}/uncompress
cvsdist 25b4f7e
%{_mandir}/man1/*
cvsdist 25b4f7e
%doc LZW.INFO README
cvsdist 25b4f7e
cvsdist 25b4f7e
%changelog
9ff80cf
* Fri Mar 01 2013 Pavel Raiskup <praiskup@redhat.com> - 4.2.4.4-1
9ff80cf
- upstream is dead -> rebase to fork of Mike Frysinger
9564056
- silence gcc warnings, fedora-review fixes
9ff80cf
44ba526
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-59
44ba526
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
44ba526
6643825
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-58
6643825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6643825
ee6c321
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-57
ee6c321
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ee6c321
0582647
* Tue Jan 03 2012 Ondrej Vasik <ovasik@redhat.com> - 4.2.4-56
0582647
- use memmove instead of memcpy to prevent memory overlap corruption
0582647
 (#760657)
0582647
39e0dc7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-55
39e0dc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
39e0dc7
3e1db58
* Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> - 4.2.4-54
3e1db58
- do patch original Makefile.def instead of creating new Makefile
3e1db58
26fd126
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-53
26fd126
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
26fd126
948e878
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-52
948e878
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
948e878
5f233f2
* Mon Dec 01 2008 Ondrej Vasik <ovasik@redhat.com> - 4.2.4-51
5f233f2
- check malloc success (#473488)
5f233f2
- fix few compiler warnings, free malloc memory before exit
5f233f2
- new URL
5f233f2
1d489af
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.2.4-50
1d489af
- Autorebuild for GCC 4.3
1d489af
7d7adac
* Fri Feb 09 2007 Peter Vrabec <pvrabec@redhat.com> 4.2.4-49
7d7adac
- fix spec file to meet Fedora standards (#226185) 
7d7adac
3f3444c
* Wed Jan 10 2007 Peter Vrabec <pvrabec@redhat.com> 4.2.4-48
3f3444c
- fix some rpmlint issues
3f3444c
f348105
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-47
f348105
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
f348105
11e8cfe
* Tue Sep 19 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-46
11e8cfe
- fix endian problem (#207001)
11e8cfe
4865c26
* Thu Aug 10 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-45
4865c26
- fix bss buffer underflow CVE-2006-1168 (#201919)
4865c26
892496e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-44.1
892496e
- rebuild
892496e
808722e
* Fri Apr 21 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-44
808722e
- fix problems with compressing zero-sized files (#189215, #189216)
808722e
dbc52d8
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-43.2.1
dbc52d8
- bump again for double-long bug on ppc(64)
dbc52d8
adab51a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.2.4-43.2
adab51a
- rebuilt for new gcc4.1 snapshot and glibc changes
adab51a
a031ef1
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a031ef1
- rebuilt
a031ef1
67cb35c
* Thu Sep 22 2005 Peter Vrabec <pvrabec@redhat.com> 4.2.4-43
67cb35c
- compress zero-sized files when -f is used(#167615)
67cb35c
5cafba9
* Fri Mar 18 2005 Peter Vrabec <pvrabec@redhat.com>
5cafba9
- rebuilt
5cafba9
17c9f0b
* Thu Feb 08 2005 Peter Vrabec <pvrabec@redhat.com>
17c9f0b
- rebuilt
17c9f0b
e2cbff1
* Tue Oct 05 2004 Than Ngo <than@redhat.com> 4.2.4-40
e2cbff1
- permit files > 2GB to be compressed (#126775).
e2cbff1
cvsdist 876952c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 876952c
- rebuilt
cvsdist 876952c
cvsdist d81fdd5
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist d81fdd5
- rebuilt
cvsdist d81fdd5
cvsdist bf0d5ec
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist bf0d5ec
- rebuilt
cvsdist bf0d5ec
cvsdist 781cacf
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 781cacf
- rebuilt
cvsdist 781cacf
cvsdist 781cacf
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 4.2.4-32
cvsdist 781cacf
- rebuild on all arches
cvsdist 781cacf
cvsdist fce6e13
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist fce6e13
- automated rebuild
cvsdist fce6e13
3f3444c
* Wed Jun 19 2002 Trond Eivind Glomsrod <teg@redhat.com> 4.2.4-30
cvsdist 0539779
- Don't strip when installing
cvsdist 0539779
cvsdist 0539779
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 0539779
- automated rebuild
cvsdist 0539779
3f3444c
* Wed Feb 27 2002 Trond Eivind Glomsrod <teg@redhat.com> 4.2.4-28
cvsdist 9740fe3
- Rebuild
cvsdist 9740fe3
cvsdist 9740fe3
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 9740fe3
- automated rebuild
cvsdist 9740fe3
3f3444c
* Mon Nov 26 2001 Trond Eivind Glomsrod <teg@redhat.com> 4.2.4-26
cvsdist 9740fe3
- Rebuild, to fix problem with broken man page (#56654)
cvsdist 9740fe3
3f3444c
* Wed Nov 21 2001 Trond Eivind Glomsrod <teg@redhat.com> 4.2.4-25
cvsdist 9740fe3
- Exit, don't segfault, when given too long filenames
cvsdist 9740fe3
cvsdist a2d5908
* Sat Jun 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist a2d5908
- s390x change
cvsdist a2d5908
3f3444c
* Tue May  8 2001 Trond Eivind Glomsrod <teg@redhat.com>
cvsdist a2d5908
- Make it support large files (structs, stats, opens and of course:
cvsdist a2d5908
  _don't use signed longs for file size before and after compression_.)
cvsdist a2d5908
  This should fix #39470
cvsdist a2d5908
cvsdist a2d5908
* Thu Apr 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist a2d5908
- add s390x, patch from Oliver Paukstadt <oliver.paukstadt@millenux.com>
cvsdist a2d5908
cvsdist 3e3ed0d
* Mon Nov 13 2000 Oliver Paukstadt <oliver.paukstadt@millenux.com>
cvsdist 3e3ed0d
- add s390 to the bigendian arch list
cvsdist 3e3ed0d
3f3444c
* Thu Aug 17 2000 Trond Eivind Glomsrod <teg@redhat.com>
cvsdist 25b4f7e
- change category to Applications/File, to match
cvsdist 25b4f7e
  gzip and bzip2 
cvsdist 25b4f7e
- rename the spec file to ncompress.spec
cvsdist 25b4f7e
- add ppc to the bigendian arch list
cvsdist 25b4f7e
3f3444c
* Fri Jul 21 2000 Trond Eivind Glomsrod <teg@redhat.com>
cvsdist 25b4f7e
- rebuild
cvsdist 25b4f7e
cvsdist 25b4f7e
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 25b4f7e
- automatic rebuild
cvsdist 25b4f7e
3f3444c
* Tue Jun 13 2000 Trond Eivind Glomsrod <teg@redhat.com>
cvsdist 25b4f7e
- update URL
cvsdist 25b4f7e
- use %%{_mandir}
cvsdist 25b4f7e
cvsdist 25b4f7e
* Wed May  5 2000 Bill Nottingham <notting@redhat.com>
3f3444c
- fix "build" for ia64
cvsdist 25b4f7e
cvsdist 25b4f7e
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
cvsdist 25b4f7e
- handle compressed manpages
cvsdist 25b4f7e
cvsdist 25b4f7e
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 25b4f7e
- auto rebuild in the new build environment (release 14)
cvsdist 25b4f7e
cvsdist 25b4f7e
* Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
cvsdist 25b4f7e
- build on armv4l too
cvsdist 25b4f7e
- build for 6.0
cvsdist 25b4f7e
cvsdist 25b4f7e
* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 25b4f7e
- build root
cvsdist 25b4f7e
cvsdist 25b4f7e
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
cvsdist 25b4f7e
- translations modified for de, fr, tr
cvsdist 25b4f7e
cvsdist 25b4f7e
* Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
cvsdist 25b4f7e
- fixed the spec file
cvsdist 25b4f7e
cvsdist 25b4f7e
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
cvsdist 25b4f7e
- built against glibc