[lua-wsapi/f12/master] Initial import

Tim Niemueller timn at fedoraproject.org
Mon Oct 25 20:24:35 UTC 2010


commit 725a9dd389decc5401ea0cca633f99eb72ff91be
Author: Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
Date:   Mon Oct 25 16:24:14 2010 -0400

    Initial import

 .gitignore     |    5 ++++
 lua-wsapi.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6bab249 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/wsapi-1.3.4.tar.gz
+/wsapi-1.3.4
+/.build*
+/*.src.rpm
+/noarch
diff --git a/lua-wsapi.spec b/lua-wsapi.spec
new file mode 100644
index 0000000..a2f236d
--- /dev/null
+++ b/lua-wsapi.spec
@@ -0,0 +1,69 @@
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+%define luapkgdir %{_datadir}/lua/%{luaver}
+
+Name:           lua-wsapi
+Version:        1.3.4
+Release:        2%{?dist}
+Summary:        Lua Web Server API
+
+Group:          Development/Libraries
+License:        MIT
+URL:            http://keplerproject.github.com/wsapi/
+Source0:        http://github.com/downloads/keplerproject/wsapi/wsapi-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
+BuildRequires:  dos2unix
+Requires:       lua >= %{luaver}
+
+%description
+WSAPI is an API that abstracts the web server from Lua web applications. By
+coding against WSAPI your application can run on any of the supported servers
+and interfaces (currently CGI, FastCGI and Xavante, on Windows and UNIX-based
+systems).
+
+WSAPI provides a set of helper libraries that help with request processing
+and output buffering. You can also write applications that act as filters that
+provide some kind of service to other applications, such as authentication,
+file uploads, request isolation, or multiplexing.
+
+WSAPI's main influence is Ruby's Rack framework, but it was also influenced by
+Python's WSGI (PEP 333). It's not a direct clone of either of them, though,
+and tries to follow standard Lua idioms.
+
+%prep
+%setup -q -n wsapi-%{version}
+
+
+%build
+dos2unix src/launcher/wsapi.cgi
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{luapkgdir}
+mkdir -p %{buildroot}/var/www/cgi-bin/wsapi
+make install LUA_DIR=%{buildroot}%{luapkgdir} BIN_DIR=%{buildroot}/var/www/cgi-bin/wsapi
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README doc/us/*
+%{luapkgdir}/*
+%dir /var/www
+%dir /var/www/cgi-bin
+/var/www/cgi-bin/*
+
+
+%changelog
+* Thu Oct 23 2010 Tim Niemueller <tim at niemueller.de> - 1.3.4-2
+- Own /var/www and /var/www/cgi-bin
+
+* Wed Oct 20 2010 Tim Niemueller <tim at niemueller.de> - 1.3.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..7cbd7eb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e8a0e5cc274f19caad1523e40f5327c6  wsapi-1.3.4.tar.gz


More information about the scm-commits mailing list