Blame SPECS/ncompress.spec

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