[lua-copas/f12/master] Initial import

Tim Niemueller timn at fedoraproject.org
Mon Oct 25 19:55:00 UTC 2010


commit 1784274b6383f60130ee4d12e90b2594bd49f41e
Author: Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
Date:   Mon Oct 25 15:34:29 2010 -0400

    Initial import

 .gitignore     |    5 ++++
 lua-copas.spec |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f3d3a03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/copas-1.1.6.tar.gz
+/copas-1.1.6
+/.build*
+/*.src.rpm
+/noarch
diff --git a/lua-copas.spec b/lua-copas.spec
new file mode 100644
index 0000000..5df24ce
--- /dev/null
+++ b/lua-copas.spec
@@ -0,0 +1,57 @@
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+%define luapkgdir %{_datadir}/lua/%{luaver}
+
+Name:           lua-copas
+Version:        1.1.6
+Release:        1%{?dist}
+Summary:        Coroutine Oriented Portable Asynchronous Services for Lua
+
+Group:          Development/Libraries
+License:        MIT
+URL:            http://keplerproject.github.com/copas/
+Source0:        http://github.com/downloads/keplerproject/copas/copas-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
+Requires:       lua >= %{luaver}
+Requires:       lua-coxpcall, lua-socket
+
+%description
+Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
+It uses LuaSocket as the interface with the TCP/IP stack.
+
+A server registered with Copas should provide a handler for requests and use
+Copas socket functions to send the response. Copas loops through requests and
+invokes the corresponding handlers. For a full implementation of a Copas HTTP
+server you can refer to Xavante as an example. 
+
+%prep
+%setup -q -n copas-%{version}
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{luapkgdir}
+make install LUA_DIR=%{buildroot}%{luapkgdir}
+rm -rf %{buildroot}%{luapkgdir}/copas
+
+
+%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.1.6-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..83869fd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+104b4325a6187eeb4b139181b6477558  copas-1.1.6.tar.gz


More information about the scm-commits mailing list