%define luaver 5.1 %define lualibdir %{_libdir}/lua/%{luaver} %define luapkgdir %{_datadir}/lua/%{luaver} Name: xavante Version: 2.2.0 Release: 1%{?dist} Summary: Lua Web Server with WSAPI support Group: Development/Libraries License: MIT URL: http://keplerproject.github.com/xavante/ Source0: http://github.com/downloads/keplerproject/xavante/xavante-%{version}.tar.gz # Patch submitted and applied upstream, just no release, yet Patch0: xavante-2.2.0-port.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver} Requires: lua >= %{luaver} Requires: lua-copas, lua-socket, lua-filesystem, lua-wsapi %description Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers. Xavante currently offers a file handler, a redirect handler and a WSAPI handler. Those are used for general files, URI remapping and WSAPI applications respectively. %prep %setup -q %patch0 -p1 -b .port %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 - 2.2.0-1 - Initial package