es6-transpiler.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ##
  2. ## es6-transpiler.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2014 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_es6_transpiler 0.7.14
  25. %define V_es6_transpiler_dist 0.7.14
  26. %define V_es6_transpiler_snap 20140713
  27. # package information
  28. Name: es6-transpiler
  29. Summary: ECMAScript 6 to ECMAScript 5 Transpiler
  30. URL: https://github.com/termi/es6-transpiler
  31. Vendor: Olov Lassus
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: EVAL
  35. Group: Language
  36. License: MIT
  37. Version: %{V_es6_transpiler}
  38. Release: 20140713
  39. # list of sources
  40. Source0: http://download.openpkg.org/components/versioned/es6-transpiler/es6-transpiler-%{V_es6_transpiler_dist}-%{V_es6_transpiler_snap}.tar.gz
  41. Source1: es6toes5.sh
  42. # build information
  43. BuildPreReq: OpenPKG, openpkg >= 20100101
  44. PreReq: OpenPKG, openpkg >= 20100101, node
  45. %description
  46. This is an ECMAScript 6 to ECMAScript 5 transpiler.
  47. %track
  48. prog es6-transpiler = {
  49. version = %{version}
  50. url = https://github.com/termi/es6-transpiler/releases
  51. regex = v(\d+\.\d+\.d+)
  52. }
  53. %prep
  54. %setup -q -c
  55. %build
  56. %install
  57. %{l_shtool} mkdir -f -p -m 755 \
  58. $RPM_BUILD_ROOT%{l_prefix}/bin \
  59. $RPM_BUILD_ROOT%{l_prefix}/lib/es6-transpiler
  60. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  61. %{SOURCE es6toes5.sh} \
  62. $RPM_BUILD_ROOT%{l_prefix}/bin/es6toes5
  63. cp -rp \
  64. node_modules/es6-transpiler/* \
  65. $RPM_BUILD_ROOT%{l_prefix}/lib/es6-transpiler/
  66. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  67. %files -f files
  68. %clean