ncompress-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. Summary: Fast compression and decompression utilities.
  2. Summary(ja): 高速なファイル圧縮/展開ユーティリティ
  3. Name: ncompress
  4. Version: 4.2.4
  5. Release: 45%{?_dist_release}
  6. License: Public Domain
  7. Group: Applications/Archiving
  8. Source: ftp://metalab.unc.edu/pub/Linux/utils/compress/ncompress-%{version}.tar.Z
  9. Patch0: ncompress-4.2.4-make.patch
  10. Patch1: ncompress-4.2.4-lfs2.patch
  11. Patch2: ncompress-4.2.4-filenamelen.patch
  12. Patch3: ncompress-2GB.patch
  13. Patch4: ncompress-4.2.4-zerobyteforce.patch
  14. Patch5: ncompress-4.2.4-bssUnderflow.patch
  15. Patch6: ncompress-4.2.4-endians.patch
  16. BuildRequires: gcc glibc-devel fileutils
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. %description
  19. The ncompress package contains the compress and uncompress file
  20. compression and decompression utilities, which are compatible with the
  21. original UNIX compress utility (.Z file extensions). These utilities
  22. can't handle gzipped (.gz file extensions) files, but gzip can handle
  23. compressed files.
  24. Install ncompress if you need compression/decompression utilities
  25. which are compatible with the original UNIX compress utility.
  26. %description -l ja
  27. ncompress パッケージには compress と uncompress という
  28. ファイル圧縮/展開ユーティリティが含まれています.
  29. このユーティリティはオリジナルの UNIX で使われる
  30. compress ユーティリティ (ファイル拡張子 .Z) と互換性があります.
  31. gzip で圧縮されたファイル (ファイル拡張子 .gz) は扱うことが
  32. 出来ませんが,逆に gzip は compress で圧縮されたファイルを
  33. 扱うことが出来ます.
  34. オリジナルの UNIX の compress ユーティリティと互換性のある
  35. ファイル圧縮/展開ユーティリティが必要ならこの ncompress を
  36. インストールして下さい.
  37. %prep
  38. %setup -q
  39. %patch0 -p1
  40. %patch1 -p1 -b .lfs
  41. %patch2 -p1 -b .filenamelen
  42. %patch3 -p1 -b .2GB
  43. %patch4 -p1 -b .zerobyteforce
  44. %patch5 -p1 -b .bssUnderflow
  45. %patch6 -p1 -b .endians
  46. %build
  47. export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
  48. ENDIAN=4321
  49. %ifarch sparc m68k armv4l ppc s390 s390x ppc64 sparc64
  50. ENDIAN=1234
  51. %endif
  52. %ifarch alpha ia64
  53. export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DNOALLIGN=0"
  54. %endif
  55. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" ENDIAN="$ENDIAN"
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  59. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
  60. install -m755 compress $RPM_BUILD_ROOT%{_bindir}
  61. ln -sf compress $RPM_BUILD_ROOT%{_bindir}/uncompress
  62. install -m644 compress.1 $RPM_BUILD_ROOT%{_mandir}/man1
  63. ln -sf compress.1 $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %files
  67. %defattr(-,root,root)
  68. /usr/bin/compress
  69. /usr/bin/uncompress
  70. %{_mandir}/man1/*
  71. %doc LZW.INFO README
  72. %changelog
  73. * Mon Jun 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.4-45
  74. - applied new versioning policy
  75. - added Patch5 and 6 from Fedora 4.2.4-50
  76. * Tue Sep 19 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-46
  77. - fix endian problem (#207001)
  78. * Thu Aug 10 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-45
  79. - fix bss buffer underflow CVE-2006-1168 (#201919)
  80. - spec in UTF-8
  81. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.4-44vl2
  82. - changed Group to Applications/Archiving
  83. * Wed Jun 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.4-44vl1
  84. - added Patch3 and 4 from Fedora development
  85. * Fri Apr 21 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-44
  86. - fix problems with compressing zero-sized files (#189215, #189216)
  87. * Thu Sep 22 2005 Peter Vrabec <pvrabec@redhat.com> 4.2.4-43
  88. - compress zero-sized files when -f is used(#167615)
  89. * Tue Oct 05 2004 Than Ngo <than@redhat.com> 4.2.4-40
  90. - permit files > 2GB to be compressed (#126775).
  91. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 4.2.4-31vl2
  92. - rebuild
  93. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.2.4-31vl1
  94. - based on 4.2.4-31 from Rawhide and built for Vine Linux
  95. - added Japanese summary and description
  96. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  97. - automated rebuild
  98. * Wed Jun 19 2002 Trond Eivind Glomsr <teg@redhat.com> 4.2.4-30
  99. - Don't strip when installing
  100. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  101. - automated rebuild
  102. * Wed Feb 27 2002 Trond Eivind Glomsr <teg@redhat.com> 4.2.4-28
  103. - Rebuild
  104. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  105. - automated rebuild
  106. * Mon Nov 26 2001 Trond Eivind Glomsr <teg@redhat.com> 4.2.4-26
  107. - Rebuild, to fix problem with broken man page (#56654)
  108. * Wed Nov 21 2001 Trond Eivind Glomsr <teg@redhat.com> 4.2.4-25
  109. - Exit, don't segfault, when given too long filenames
  110. * Sat Jun 09 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  111. - s390x change
  112. * Tue May 8 2001 Trond Eivind Glomsr <teg@redhat.com>
  113. - Make it support large files (structs, stats, opens and of course:
  114. _don't use signed longs for file size before and after compression_.)
  115. This should fix #39470
  116. * Thu Apr 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  117. - add s390x, patch from Oliver Paukstadt <oliver.paukstadt@millenux.com>
  118. * Mon Nov 13 2000 Oliver Paukstadt <oliver.paukstadt@millenux.com>
  119. - add s390 to the bigendian arch list
  120. * Thu Aug 17 2000 Trond Eivind Glomsr <teg@redhat.com>
  121. - change category to Applications/File, to match
  122. gzip and bzip2
  123. - rename the spec file to ncompress.spec
  124. - add ppc to the bigendian arch list
  125. * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com>
  126. - rebuild
  127. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  128. - automatic rebuild
  129. * Tue Jun 13 2000 Trond Eivind Glomsr <teg@redhat.com>
  130. - update URL
  131. - use %%{_mandir}
  132. * Wed May 5 2000 Bill Nottingham <notting@redhat.com>
  133. - fix %build for ia64
  134. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  135. - handle compressed manpages
  136. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  137. - auto rebuild in the new build environment (release 14)
  138. * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
  139. - build on armv4l too
  140. - build for 6.0
  141. * Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
  142. - build root
  143. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  144. - translations modified for de, fr, tr
  145. * Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
  146. - fixed the spec file
  147. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  148. - built against glibc