[luarocks] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Fri May 11 15:45:11 UTC 2012


commit 479cd2e12a59d5a5b31f1372248ce8b390b4d7b6
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Fri May 11 22:45:22 2012 +0700

    Initial import

 .gitignore    |    1 +
 luarocks.spec |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..56b5048 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/luarocks-2.0.8.tar.gz
diff --git a/luarocks.spec b/luarocks.spec
new file mode 100644
index 0000000..d2c9d8a
--- /dev/null
+++ b/luarocks.spec
@@ -0,0 +1,90 @@
+%global luaver  5.1
+%global luanext 5.2
+%global luapkgdir %{_datadir}/lua/%{luaver}
+
+%if 0%{?el5}
+# For some reason find-debuginfo.sh is still triggered on RHEL 5, despite
+# BuildArch being noarch -- the script then fails. Explicitly disable it
+%global debug_package %{nil}
+%endif
+
+Name:           luarocks
+Version:        2.0.8
+Release:        2%{?dist}
+Summary:        A deployment and management system for Lua modules
+
+License:        MIT
+%if 0%{?rhel}
+# RHEL 5's rpm requires this field
+# RHEL 6's rpmlint warns if it is unspecified
+Group:          Development/Tools
+%endif
+URL:            http://luarocks.org
+Source0:        http://luarocks.org/releases/luarocks-%{version}.tar.gz
+
+BuildArch:      noarch
+%if 0%{?el5}
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+%endif
+
+BuildRequires:  lua-devel
+%if 0%{?fedora} >= 16
+Requires:       lua(abi) = %{luaver}
+%else # for RHEL 5 and 6
+Requires:       lua >= %{luaver}
+Requires:       lua <  %{luanext}
+%endif
+
+%description
+LuaRocks allows you to install Lua modules as self-contained packages
+called "rocks", which also contain version dependency
+information. This information is used both during installation, so
+that when one rock is requested all rocks it depends on are installed
+as well, and at run time, so that when a module is required, the
+correct version is loaded. LuaRocks supports both local and remote
+repositories, and multiple local rocks trees.
+
+
+%prep
+%setup -q
+# Remove DOS line endings
+for file in COPYING_7z; do
+ sed "s|\r||g" $file > $file.new && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+done
+
+
+%build
+./configure --prefix=%{_prefix}
+#{?_smp_mflags} -- luarocks makefile is not thread-safe
+make
+
+
+%install
+%if 0%{?el5}
+rm -rf $RPM_BUILD_ROOT
+%endif
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%check
+# TODO - find how to run this without having to pre-download entire rocks tree
+# ./test/run_tests.sh
+
+
+%files
+%doc COPYING* README.md
+%dir %{_sysconfdir}/luarocks
+%config(noreplace) %{_sysconfdir}/luarocks/config.lua
+%{_bindir}/luarocks
+%{_bindir}/luarocks-admin
+%{luapkgdir}/luarocks
+
+
+%changelog
+* Fri May 11 2012 Michel Salim <salimma at fedoraproject.org> - 2.0.8-2
+- Add support for RHEL's older lua packaging
+
+* Tue May  8 2012 Michel Salim <salimma at fedoraproject.org> - 2.0.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..4583553 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07cf84e352d86fe161f7b2ec43f360cc  luarocks-2.0.8.tar.gz


More information about the scm-commits mailing list