%define luaver 5.2 %define lualibdir %{_libdir}/lua/%{luaver} %define luapkgdir %{_datadir}/lua/%{luaver} %define oname lualogging Name: lua-logging Version: 1.2.0 Release: %mkrel 2 Summary: A simple API to use logging features in Lua Group: Development/Other License: MIT URL: http://www.keplerproject.org/lualogging/ Source0: https://github.com/downloads/Neopallium/%{oname}/%{oname}-%{version}.tbz Requires: lua >= %{luaver} Requires: lua-socket Requires: lua-sql BuildArch: noarch %description LuaLogging provides a simple API to use logging features in Lua. Its design was based on log4j. LuaLogging currently supports, through the use of appenders, console, file, email, socket and sql outputs. %prep %setup -q -n %{oname}-%{version} %build %make %install rm -rf %{buildroot} make install PREFIX=$RPM_BUILD_ROOT/%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT/%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT/%{luapkgdir} SYS_BINDIR=$RPM_BUILD_ROOT/%{_bindir} LUA_INTERPRETER=%{_bindir}/lua %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc doc/us/* %doc README %{luapkgdir}/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.2.0-2.mga3 + Revision: 359069 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jun 13 2012 shlomif <shlomif> 1.2.0-1.mga3 + Revision: 260221 - New version - 1.2.0 * Sun Jun 03 2012 fwang <fwang> 1.1.4-6.mga3 + Revision: 253744 - rebuild for new lua * Sun Mar 13 2011 shikamaru <shikamaru> 1.1.4-5.mga1 + Revision: 70265 - imported package lua-logging