v8.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##
  2. ## v8.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: v8
  25. Summary: V8 JavaScript Engine
  26. URL: http://code.google.com/p/v8/
  27. Vendor: Google Inc.
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Language
  32. License: BSD
  33. Version: 20111112
  34. Release: 20111112
  35. # list of sources
  36. Source0: http://download.openpkg.org/components/versioned/v8/v8-%{version}.tar.bz2
  37. Patch0: v8.patch
  38. # build information
  39. BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, scons
  40. PreReq: OpenPKG, openpkg >= 20100101
  41. BuildPreReq: libexecinfo
  42. PreReq: libexecinfo
  43. %description
  44. V8 is Google's Open-Source JavaScript engine. V8 is written in C++
  45. and is used in Google Chrome, the open source browser from Google.
  46. V8 implements ECMAScript as specified in ECMA-262, 3rd edition, and
  47. runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux
  48. systems that use IA-32 or ARM processors. V8 can run standalone, or
  49. can be embedded into any C++ application.
  50. %track
  51. prog v8 = {
  52. version = %{version}
  53. url = http://download.openpkg.org/components/versioned/v8/
  54. regex = v8-(__VER__)\.tar\.bz2
  55. }
  56. %prep
  57. %setup -q -n v8
  58. %patch -p0
  59. %build
  60. %{l_shtool} subst \
  61. -e 's;/usr/local;%{l_prefix};g' \
  62. SConstruct
  63. scons .
  64. %install
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/include \
  68. $RPM_BUILD_ROOT%{l_prefix}/lib
  69. %{l_shtool} install -c -s -m 755 \
  70. d8 $RPM_BUILD_ROOT%{l_prefix}/bin/
  71. %{l_shtool} install -c -m 644 \
  72. include/*.h $RPM_BUILD_ROOT%{l_prefix}/include/
  73. %{l_shtool} install -c -m 644 \
  74. libv8.a $RPM_BUILD_ROOT%{l_prefix}/lib/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean