lua-posix/lua-posix.spec

44 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-30 10:24:23 +08:00
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
Name: lua-posix
2023-06-07 17:10:46 +08:00
Version: 36.1
2020-08-07 17:34:22 +08:00
Release: 1
2019-11-30 10:24:23 +08:00
Summary: A POSIX library(including curses) for lua
License: MIT
URL: http://luaforge.net/projects/luaposix/
2020-08-07 17:34:22 +08:00
Source0: https://github.com/luaposix/luaposix/archive/v%{version}/release-v%{version}.tar.gz
BuildRequires: gcc lua-devel
2019-11-30 10:24:23 +08:00
Requires: lua(abi) = %{luaver}
%description
2020-08-07 17:34:22 +08:00
This is a POSIX binding for LuaJIT, Lua 5.1, 5.2, 5.3 and 5.4; like most libraries it simply
2019-11-30 10:24:23 +08:00
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
2020-08-07 17:34:22 +08:00
%autosetup -n luaposix-%{version}
2019-11-30 10:24:23 +08:00
%build
2023-06-07 17:10:46 +08:00
build-aux/luke CFLAGS="%build_cflags" LDFLAGS="%build_ldflags"
2020-08-07 17:34:22 +08:00
2019-11-30 10:24:23 +08:00
%install
2020-08-07 17:34:22 +08:00
build-aux/luke install PREFIX=%{buildroot}%{_prefix} INST_LIBDIR=%{buildroot}%{_libdir}/lua/%{luaver}
2019-11-30 10:24:23 +08:00
2023-06-07 17:10:46 +08:00
2019-11-30 10:24:23 +08:00
%files
2020-08-07 17:34:22 +08:00
%license LICENSE
2023-06-07 17:10:46 +08:00
%doc AUTHORS NEWS.md README.md
2019-11-30 10:24:23 +08:00
%{_libdir}/lua/%{luaver}/*
%{_datadir}/lua/%{luaver}/posix/
%changelog
2023-06-07 17:10:46 +08:00
* Wed Jun 7 2023 liyanan <thistleslyn@163.com> - 36.1-1
- Update to 36.1
2020-08-07 17:34:22 +08:00
* Fri Aug 07 2020 lingsheng <lingsheng@huawei.com> - 35.0-1
- Update to 35.0
2019-11-30 10:24:23 +08:00
* Tue Nov 26 2019 Ling Yang <lingyang2@huawei.com> - 33.3.1-12
- Package init