lua-expat/lua-expat.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-08-07 16:29:28 +08:00
%define luaver 5.4
2019-09-30 11:02:56 -04:00
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
Name: lua-expat
Version: 1.3.0
2020-08-07 16:29:28 +08:00
Release: 17
2019-09-30 11:02:56 -04:00
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
2020-08-07 16:29:28 +08:00
Patch6000: lua-expat-1.3.0-improve-test.patch
2020-03-19 20:02:57 +08:00
BuildRequires: lua >= %{luaver} lua-devel >= %{luaver} gcc expat-devel gdb
2019-09-30 11:02:56 -04:00
Requires: lua(abi) = %{luaver}
%description
LuaExpat is a SAX XML parser based on the Expat library.SAX is the Simple API for XML,
process a XML document incrementally, thus being able to handle huge documents without
memory penalties, register handler functions which are called by the parser during the
processing of the document, handling the document elements or text.
%package_help
%prep
2020-08-07 16:29:28 +08:00
%autosetup -n luaexpat-%{version} -p1
2019-09-30 11:02:56 -04:00
%build
%make_build LUA_V=%{luaver} LUA_CDIR=%{lualibdir} LUA_LDIR=%{luapkgdir} LUA_INC=-I%{_includedir} EXPAT_INC=-I%{_includedir} \
CFLAGS="%{optflags} -fPIC -std=c99" LDFLAGS="%{?__global_ldflags}"
%install
%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");'
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%doc README
%{lualibdir}/*
%{luapkgdir}/*
%files help
%defattr(-,root,root)
%doc doc/us/*
%changelog
2020-08-07 16:29:28 +08:00
* Fri Aug 7 2020 wenzhanli<wenzhanli2@huawei.com> - 1.3.0-17
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix make test because lua update version 5.4.0
2020-03-19 20:02:57 +08:00
* Thu Mar 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.0-16
- add necessary BuildRequires
2019-09-30 11:02:56 -04:00
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.0-15
- Build for Help Package
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.0-14
- Package init