commit
1ef24db229
@ -1,38 +1,39 @@
|
|||||||
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
||||||
|
|
||||||
Name: lua-posix
|
Name: lua-posix
|
||||||
Version: 33.3.1
|
Version: 35.0
|
||||||
Release: 12
|
Release: 1
|
||||||
Summary: A POSIX library(including curses) for lua
|
Summary: A POSIX library(including curses) for lua
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://luaforge.net/projects/luaposix/
|
URL: http://luaforge.net/projects/luaposix/
|
||||||
Source0: https://github.com/luaposix/luaposix/archive/release-v%{version}.tar.gz
|
Source0: https://github.com/luaposix/luaposix/archive/v%{version}/release-v%{version}.tar.gz
|
||||||
BuildRequires: lua-devel ncurses-devel lua-lunit perl-interpreter
|
BuildRequires: gcc lua-devel
|
||||||
Requires: lua(abi) = %{luaver}
|
Requires: lua(abi) = %{luaver}
|
||||||
|
|
||||||
%description
|
%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,
|
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
|
it does try to detect the level of POSIX conformance of the underlying system and bind
|
||||||
only available APIs.
|
only available APIs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n luaposix-release-v%{version}
|
%autosetup -n luaposix-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --libdir=%{_libdir}/lua/%{luaver} --datadir=/%{_datadir}/lua/%{luaver}
|
build-aux/luke CFLAGS="%build_cflags"
|
||||||
%make_build V=1
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
build-aux/luke install PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{_libdir}/lua/%{luaver}
|
||||||
%check
|
|
||||||
make V=1 check
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING AUTHORS ChangeLog NEWS README
|
%license LICENSE
|
||||||
%{_defaultdocdir}/luaposix/
|
%doc AUTHORS ChangeLog.old NEWS.md README.md
|
||||||
%{_libdir}/lua/%{luaver}/*
|
%{_libdir}/lua/%{luaver}/*
|
||||||
%{_datadir}/lua/%{luaver}/*.lua
|
|
||||||
%{_datadir}/lua/%{luaver}/posix/
|
%{_datadir}/lua/%{luaver}/posix/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 07 2020 lingsheng <lingsheng@huawei.com> - 35.0-1
|
||||||
|
- Update to 35.0
|
||||||
|
|
||||||
* Tue Nov 26 2019 Ling Yang <lingyang2@huawei.com> - 33.3.1-12
|
* Tue Nov 26 2019 Ling Yang <lingyang2@huawei.com> - 33.3.1-12
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Binary file not shown.
BIN
release-v35.0.tar.gz
Normal file
BIN
release-v35.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user