infozip.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## infozip.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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. %define V_zip_here 2.3
  26. %define V_zip_real 23
  27. %define V_unzip_here 5.50
  28. %define V_unzip_real 550
  29. # package information
  30. Name: infozip
  31. Summary: Un-/Packing Tools for [PK]ZIP Files
  32. URL: http://www.info-zip.org/pub/infozip/
  33. Vendor: Samuel H. Smith, Greg Roelofs
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [BASE]
  36. Group: Archiver
  37. License: BSD
  38. Version: 20020419
  39. Release: 20020419
  40. # list of sources
  41. Source0: ftp://ftp.info-zip.org/pub/infozip/src/zip%{V_zip_real}.tar.gz
  42. Source1: ftp://ftp.info-zip.org/pub/infozip/src/unzip%{V_unzip_real}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206
  47. PreReq: OpenPKG, openpkg >= 20020206
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Info-ZIP provides free, portable, high-quality versions of the Zip
  52. and UnZip compressor-archiver utilities that are compatible with the
  53. DOS-based PKZIP by PKWARE, Inc.
  54. %prep
  55. %setup0 -q -c
  56. %setup1 -q -T -D -a 1
  57. %build
  58. ( cd zip-%{V_zip_here}
  59. %{l_make} %{l_mflags} -f unix/Makefile generic
  60. )
  61. ( cd unzip-%{V_unzip_here}
  62. os=generic
  63. case "%{l_target}" in
  64. *-linux* ) os=linux_noasm ;;
  65. *-solaris* ) os=solaris ;;
  66. *-freebsd* ) os=freebsd ;;
  67. esac
  68. %{l_make} %{l_mflags} -f unix/Makefile $os
  69. )
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
  73. ( cd zip-%{V_zip_here}
  74. %{l_make} %{l_mflags} -f unix/Makefile install \
  75. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  76. INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
  77. )
  78. ( cd unzip-%{V_unzip_here}
  79. %{l_make} %{l_mflags} -f unix/Makefile install \
  80. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  81. INSTALL_D="%{l_shtool} mkdir -f -p -m 755"
  82. )
  83. chmod -R u+w $RPM_BUILD_ROOT%{_prefix}
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT