[lua-moonscript] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Fri Sep 9 19:00:35 UTC 2011


commit 669fd6fc7c1640a3f78e7be51928795441318922
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Fri Sep 9 21:00:08 2011 +0200

    Initial import

 .gitignore          |    1 +
 lua-moonscript.spec |   80 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f363418 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/moonscript-0.1.0.tar.xz
diff --git a/lua-moonscript.spec b/lua-moonscript.spec
new file mode 100644
index 0000000..62bf3f6
--- /dev/null
+++ b/lua-moonscript.spec
@@ -0,0 +1,80 @@
+%global luaver 5.1
+%global luapkgdir %{_datadir}/lua/%{luaver}
+
+Name:           lua-moonscript
+Version:        0.1.0
+Release:        2%{?dist}
+Summary:        A little language that compiles to Lua
+
+# license text part of README.md
+License:        MIT
+URL:            http://moonscript.org/
+# Source only available from Git; instructions below
+# git clone git://github.com/leafo/moonscript.git
+# (cd moonscript && git archive --format=tar --prefix=moonscript-%%{version}/ \
+#  v%%{version} | xz - ) > moonscript-%%{version}.tar.xz
+Source0:        moonscript-%{version}.tar.xz
+
+BuildArch:      noarch
+BuildRequires:  lua >= %{luaver}
+BuildRequires:  lua-alt-getopt >= 0.7
+BuildRequires:  lua-filesystem >= 1.5
+BuildRequires:  lua-lpeg >= 0.10
+Requires:       lua >= %{luaver}
+Requires:       lua-alt-getopt >= 0.7
+Requires:       lua-filesystem >= 1.5
+Requires:       lua-lpeg >= 0.10
+# lua-inotify is recommended, but not required
+
+%description
+MoonScript is a dynamic scripting language that compiles into Lua. It
+gives you the power of Lua combined with a rich set of features.
+
+MoonScript can either be compiled into Lua and run at a later time, or
+it can be dynamically compiled and run using the moonloader. It’s as
+simple as require "moonscript" in order to have Lua understand how to
+load and run any MoonScript file.
+
+Because it compiles right into Lua code, it is completely compatible
+with alternative Lua implementations like LuaJIT, and it is also
+compatible with all existing Lua code and libraries.
+
+The command line tools also let you run MoonScript directly from the
+command line, like any first-class scripting language.
+
+
+%prep
+%setup -q -n moonscript-%{version}
+
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+install -p moon moonc $RPM_BUILD_ROOT%{_bindir}/
+install -p dump $RPM_BUILD_ROOT%{_bindir}/moon-dump
+mkdir -p $RPM_BUILD_ROOT%{luapkgdir}
+cp -pr moonscript $RPM_BUILD_ROOT%{luapkgdir}/
+
+
+%check
+lua test.lua
+
+
+%files
+%doc README.md docs todo
+%{_bindir}/moon
+%{_bindir}/moonc
+%{_bindir}/moon-dump
+%{luapkgdir}/moonscript
+
+
+%changelog
+* Thu Sep  8 2011 Michel Salim <salimma at fedoraproject.org> - 0.1.0-2
+- Clean up spec file
+- Add explicit checkout instructions
+
+* Tue Aug 16 2011 Michel Salim <salimma at fedoraproject.org> - 0.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..55f7f87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+05c3a6955cbef0e64e9ae0b6f3989a83  moonscript-0.1.0.tar.xz


More information about the scm-commits mailing list