infozip.spec 3.0 KB

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