commit d48e9869145d2013941ba584963e3e0364f7827d Author: gnaygnil Date: Sat Nov 30 10:24:23 2019 +0800 lua-posix: openEuler init diff --git a/lua-posix.spec b/lua-posix.spec new file mode 100644 index 0000000..7317045 --- /dev/null +++ b/lua-posix.spec @@ -0,0 +1,38 @@ +%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)} + +Name: lua-posix +Version: 33.3.1 +Release: 12 +Summary: A POSIX library(including curses) for lua +License: MIT +URL: http://luaforge.net/projects/luaposix/ +Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz +BuildRequires: lua-devel ncurses-devel lua-lunit perl-interpreter +Requires: lua(abi) = %{luaver} + +%description +This is a POSIX binding for LuaJIT, Lua 5.1, 5.2 and 5.3; like most libraries it simply +binds to C APIs on the underlying system, so it won't work on non-POSIX systems. However, +it does try to detect the level of POSIX conformance of the underlying system and bind +only available APIs. + +%prep +%autosetup -n luaposix-release-v%{version} +%build +%configure --libdir=%{_libdir}/lua/%{luaver} --datadir=/%{_datadir}/lua/%{luaver} +%make_build V=1 +%install +%make_install +%check +make V=1 check + +%files +%doc COPYING AUTHORS ChangeLog NEWS README +%{_defaultdocdir}/luaposix/ +%{_libdir}/lua/%{luaver}/* +%{_datadir}/lua/%{luaver}/*.lua +%{_datadir}/lua/%{luaver}/posix/ + +%changelog +* Tue Nov 26 2019 Ling Yang - 33.3.1-12 +- Package init diff --git a/release-v33.3.1.tar.gz b/release-v33.3.1.tar.gz new file mode 100644 index 0000000..231a293 Binary files /dev/null and b/release-v33.3.1.tar.gz differ