p7zip.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## p7zip.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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: p7zip
  27. Summary: Archiver for 7-Zip Format
  28. URL: http://p7zip.sourceforge.net/
  29. Vendor: Igor Pavlov
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Archiver
  34. License: LGPL
  35. Version: 4.12
  36. Release: 20041126
  37. # list of sources
  38. Source0: http://osdn.dl.sourceforge.net/p7zip/p7zip_%{version}_src.tar.bz2
  39. Patch0: p7zip.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. p7zip is the port of command line interface of the 7-Zip format
  49. archiving tool (7-zip.org). 7-Zip is a file archiver with highest
  50. compression ratio.
  51. %track
  52. prog p7zip = {
  53. version = %{version}
  54. url = http://prdownloads.sourceforge.net/p7zip/
  55. regex = p7zip-(__VER__)_src\.tar\.bz2
  56. }
  57. %prep
  58. %setup -q -n p7zip_%{version}
  59. %patch -p0
  60. %build
  61. machine=""
  62. case "%{l_platform -t}" in
  63. *-freebsd* ) machine="freebsd_x86" ;;
  64. i?86-linux* ) machine="linux_x86" ;;
  65. amd64-linux* ) machine="linux_amd64" ;;
  66. sun*-solaris* ) machine="solaris_sparc" ;;
  67. i?86-solaris* ) machine="solaris_x86" ;;
  68. esac
  69. if [ ".$machine" != . ]; then
  70. cp makefile.$machine makefile.machine
  71. fi
  72. %{l_make} %{l_mflags -O} -f makefile
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_shtool} mkdir -f -p -m 755 \
  76. $RPM_BUILD_ROOT%{l_prefix}/bin
  77. %{l_shtool} install -c -s -m 755 \
  78. bin/7za $RPM_BUILD_ROOT%{l_prefix}/bin/
  79. ln $RPM_BUILD_ROOT%{l_prefix}/bin/7za \
  80. $RPM_BUILD_ROOT%{l_prefix}/bin/7z
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT