diff --git a/lua-expat-1.3.0-improve-test.patch b/lua-expat-1.3.0-improve-test.patch deleted file mode 100644 index 878d426ee8791c6d5f28a6362bce4a20cf15e7d8..0000000000000000000000000000000000000000 --- a/lua-expat-1.3.0-improve-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up luaexpat-1.3.0/tests/test.lua.improve luaexpat-1.3.0/tests/test.lua ---- luaexpat-1.3.0/tests/test.lua.improve 2020-06-29 22:26:26.128128387 -0400 -+++ luaexpat-1.3.0/tests/test.lua 2020-06-29 22:27:34.692014057 -0400 -@@ -355,7 +355,7 @@ for i=1,100000 do - lxp.new({}) - end - collectgarbage(); collectgarbage() --assert(math.abs(gcinfo() - x) <= 2) -+assert(math.abs((gcinfo and gcinfo() or collectgarbage("count")) - x) <= 5, "Garbage collection test didn't pass!") - - - print"OK" diff --git a/lua-expat.spec b/lua-expat.spec index 0f050203e23956f92eae54b19752cd8b6c52c188..f2e01dd276bd6522b4f6eef896baa7cd105bdf73 100644 --- a/lua-expat.spec +++ b/lua-expat.spec @@ -4,15 +4,13 @@ %define luapkgdir %{_datadir}/lua/%{luaver} Name: lua-expat -Version: 1.3.0 -Release: 20 +Version: 1.5.2 +Release: 1 Summary: A SAX XML parser based on the Expat library License: MIT URL: http://www.keplerproject.org/luaexpat/ Source0: http://matthewwild.co.uk/projects/luaexpat/luaexpat-%{version}.tar.gz -Patch6000: lua-expat-1.3.0-improve-test.patch - BuildRequires: lua >= %{luaver} lua-devel >= %{luaver} gcc expat-devel Requires: lua(abi) = %{luaver} @@ -35,8 +33,10 @@ processing of the document, handling the document elements or text. %make_install LUA_CDIR=%{lualibdir} LUA_LDIR=%{luapkgdir} %check -lua -e 'package.cpath="./src/?.so;"..package.cpath; dofile("tests/test.lua");' -lua -e 'package.cpath="./src/?.so;" .. package.cpath; package.path="./src/?.lua;" .. package.path; dofile("tests/test-lom.lua");' +lua -e \ + 'package.cpath="%{buildroot}%{lua_libdir}/?.so;"..package.cpath; + package.path="%{buildroot}%{lua_pkgdir}/?.lua;"..package.path; + local lxp = require("lxp"); print("Hello from "..lxp._VERSION.."!");' %pre @@ -48,15 +48,22 @@ lua -e 'package.cpath="./src/?.so;" .. package.cpath; package.path="./src/?.lua; %files %defattr(-,root,root) -%doc README +%license LICENSE +%doc README.md %{lualibdir}/* %{luapkgdir}/* %files help %defattr(-,root,root) -%doc doc/us/* +%doc docs/* %changelog +* Tue Aug 6 2024 dillon chen - 1.5.2-1 +- Type: +- ID:NA +- SUG:NA +- DESC:update to 1.5.2 + * Fri Jul 23 2021 yuanxin - 1.3.0-20 - remove BuildRequires gdb diff --git a/luaexpat-1.5.2.tar.gz b/luaexpat-1.5.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..50ab8e7c4c06a93f35254d092a17fd99447bf359 Binary files /dev/null and b/luaexpat-1.5.2.tar.gz differ