infozip.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## infozip.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: infozip
  27. Summary: Un-/Packing Tools for [PK]ZIP Files
  28. URL: http://www.info-zip.org/pub/infozip/
  29. Vendor: Samuel H. Smith, Greg Roelofs
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [REL]
  32. Group: Archiver
  33. License: BSD
  34. Version: 2.3
  35. Release: 20011201
  36. # list of sources
  37. Source0: ftp://ftp.info-zip.org/pub/infozip/src/zip23.tar.gz
  38. Source1: ftp://ftp.info-zip.org/pub/infozip/src/unzip542.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20011126.0
  43. PreReq: OpenPKG, openpkg >= 20011126.0
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Info-ZIP provides free, portable, high-quality versions of the Zip
  48. and UnZip compressor-archiver utilities that are compatible with the
  49. DOS-based PKZIP by PKWARE, Inc.
  50. %prep
  51. %setup0 -q -c
  52. %setup1 -q -T -D -a 1
  53. %build
  54. ( cd zip-2.3
  55. %{l_make} %{l_mflags} -f unix/Makefile generic
  56. )
  57. ( cd unzip-5.42
  58. os=generic
  59. case "%{l_target}" in
  60. *-linux* ) os=linux_noasm ;;
  61. *-solaris* ) os=solaris ;;
  62. *-freebsd* ) os=freebsd ;;
  63. esac
  64. %{l_make} %{l_mflags} -f unix/Makefile $os
  65. )
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
  69. ( cd zip-2.3
  70. %{l_make} %{l_mflags} -f unix/Makefile install \
  71. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  72. INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
  73. )
  74. ( cd unzip-5.42
  75. %{l_make} %{l_mflags} -f unix/Makefile install \
  76. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  77. INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
  78. )
  79. chmod -R u+w $RPM_BUILD_ROOT%{_prefix}
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT