diff --git a/lua-posix.spec b/lua-posix.spec index 7317045..0bb1434 100644 --- a/lua-posix.spec +++ b/lua-posix.spec @@ -1,38 +1,39 @@ %{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)} Name: lua-posix -Version: 33.3.1 -Release: 12 +Version: 35.0 +Release: 1 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 +Source0: https://github.com/luaposix/luaposix/archive/v%{version}/release-v%{version}.tar.gz +BuildRequires: gcc lua-devel 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 +This is a POSIX binding for LuaJIT, Lua 5.1, 5.2, 5.3 and 5.4; 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} +%autosetup -n luaposix-%{version} + %build -%configure --libdir=%{_libdir}/lua/%{luaver} --datadir=/%{_datadir}/lua/%{luaver} -%make_build V=1 +build-aux/luke CFLAGS="%build_cflags" + %install -%make_install -%check -make V=1 check +build-aux/luke install PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{_libdir}/lua/%{luaver} %files -%doc COPYING AUTHORS ChangeLog NEWS README -%{_defaultdocdir}/luaposix/ +%license LICENSE +%doc AUTHORS ChangeLog.old NEWS.md README.md %{_libdir}/lua/%{luaver}/* -%{_datadir}/lua/%{luaver}/*.lua %{_datadir}/lua/%{luaver}/posix/ %changelog +* Fri Aug 07 2020 lingsheng - 35.0-1 +- Update to 35.0 + * 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 deleted file mode 100644 index 231a293..0000000 Binary files a/release-v33.3.1.tar.gz and /dev/null differ diff --git a/release-v35.0.tar.gz b/release-v35.0.tar.gz new file mode 100644 index 0000000..480e1cb Binary files /dev/null and b/release-v35.0.tar.gz differ