39 lines
1.2 KiB
RPMSpec
39 lines
1.2 KiB
RPMSpec
|
|
%{!?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 <lingyang2@huawei.com> - 33.3.1-12
|
||
|
|
- Package init
|