Blame SPECS/ncompress.spec

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