[lua-coxpcall] Initial import

Tim Niemueller timn at fedoraproject.org
Mon Oct 25 19:26:13 UTC 2010


commit 960f1a59026d21ff411facc360759d5da03ad509
Author: Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
Date:   Mon Oct 25 15:22:18 2010 -0400

    Initial import

 .gitignore        |    1 +
 lua-coxpcall.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c71d1d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coxpcall-1.13.0.tar.gz
diff --git a/lua-coxpcall.spec b/lua-coxpcall.spec
new file mode 100644
index 0000000..77a0544
--- /dev/null
+++ b/lua-coxpcall.spec
@@ -0,0 +1,53 @@
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+%define luapkgdir %{_datadir}/lua/%{luaver}
+
+Name:           lua-coxpcall
+Version:        1.13.0
+Release:        1%{?dist}
+Summary:        Coroutine safe xpcall and pcall versions for Lua
+
+Group:          Development/Libraries
+License:        MIT
+URL:            http://coxpcall.luaforge.net/
+Source0:        http://luaforge.net/frs/download.php/3406/coxpcall-1.13.0.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
+Requires:       lua >= %{luaver}
+
+%description
+Coxpcall encapsulates the protected calls with a coroutine based loop, so
+errors can be handled without the usual pcall/xpcall issues with coroutines.
+
+Using Coxpcall usually consists in simply loading the module and then
+replacing Lua pcall and xpcall by copcall and coxpcall.
+
+%prep
+%setup -q -n coxpcall-%{version}
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{luapkgdir}
+make install LUA_DIR=%{buildroot}%{luapkgdir}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README doc/us/*
+%{luapkgdir}/*
+
+
+%changelog
+* Wed Oct 20 2010 Tim Niemueller <tim at niemueller.de> - 1.13.0-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..f1c264e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d3e0554dc426a7a24e372780b3dd5fe6  coxpcall-1.13.0.tar.gz


More information about the scm-commits mailing list