infozip.spec 3.3 KB

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