%define luaver 5.1 %define lualibdir %{_libdir}/lua/%{luaver} %define luapkgdir %{_datadir}/lua/%{luaver} %define oname luaexpat Name: lua-expat Version: 1.2.0 Release: %mkrel 3 Summary: SAX XML parser based on expat, for lua Group: Development/Other License: MIT URL: http://www.keplerproject.org/luaexpat/ Source0: http://luaforge.net/frs/download.php/2469/%{oname}-%{version}.tar.gz BuildRequires: lua >= %{luaver} BuildRequires: lua5.1-devel BuildRequires: expat-devel Requires: lua >= %{luaver} %description SAX XML parser based on expat, for lua. %prep %setup -q -n %{oname}-%{version} %build perl -pi -e 's/(CFLAGS =)/$1 -fPIC/' config echo 'LUA_VERSION_NUM=501' >> config %make %install rm -rf %{buildroot} make install LUA_LIBDIR=$RPM_BUILD_ROOT%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT%{luapkgdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README doc/us/* %{lualibdir}/* %{luapkgdir}/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.2.0-3.mga3 + Revision: 359045 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 23 2012 pterjan <pterjan> 1.2.0-2.mga3 + Revision: 334420 - Force Lua 5.1 * Thu Sep 08 2011 tv <tv> 1.2.0-1.mga2 + Revision: 141150 - new release (fixes CVE-2011-2188) * Fri Apr 15 2011 shikamaru <shikamaru> 1.1-2.mga1 + Revision: 85959 - Clean spec (buildroot, trailing space, one BR per line) - imported package lua-expat