haxe.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## haxe.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 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 version
  24. %define V_release 2.00
  25. %define V_snapshot 20080530
  26. # package information
  27. Name: haxe
  28. Summary: Haxe Programming Language
  29. URL: http://haxe.org/
  30. Vendor: Motion Twin
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Language
  35. License: GPL
  36. Version: %{V_release}.%{V_snapshot}
  37. Release: 20080530
  38. # list of sources
  39. Source0: ftp://ftp.openpkg.org/sources/CPY/haxe/haxe-%{V_snapshot}.tar.bz2
  40. Source1: haxe.sh
  41. Patch0: haxe.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20060823, ocaml
  46. PreReq: OpenPKG, openpkg >= 20060823
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. haXe (pronounced as hex) is a multi-platform programming language,
  51. which can be compiled to Javascript, Flash, NekoVM and PHP.
  52. %track
  53. prog haxe = {
  54. version = %{V_release}
  55. url = http://haxe.org/download
  56. regex = haxe-(__VER__)-linux\.tar\.gz
  57. }
  58. %prep
  59. %setup -q -n haxe
  60. %patch -p0
  61. %build
  62. %{l_shtool} subst \
  63. -e 's%"/usr/lib/libz.dylib".*"/lib/libz.so.1"%"%{l_prefix}/lib/libz.a"%' \
  64. install.ml
  65. %{l_prefix}/bin/ocaml install.ml
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe \
  71. $RPM_BUILD_ROOT%{l_prefix}/lib/haxe
  72. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  73. %{SOURCE haxe.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/haxe
  74. %{l_shtool} install -c -s -m 755 \
  75. bin/haxe $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe/
  76. find haxe/std -name CVS -type d -print | xargs rm -rf
  77. cp -rp haxe/std/* $RPM_BUILD_ROOT%{l_prefix}/lib/haxe/
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  79. %files -f files
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT