commit
0d83d89cf6
@ -1,8 +1,10 @@
|
|||||||
%global commit 8014725009e195ffb502bcd65ca4e93b60a1b21c
|
%global commit 8014725009e195ffb502bcd65ca4e93b60a1b21c
|
||||||
|
# this macro need to be updated with upgrading of lua
|
||||||
|
%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))" || echo 0)}
|
||||||
|
|
||||||
Name: lua-filesystem
|
Name: lua-filesystem
|
||||||
Version: 1.6.3
|
Version: 1.6.3
|
||||||
Release: 10
|
Release: 11
|
||||||
Summary: File System Library for the Lua Programming Language
|
Summary: File System Library for the Lua Programming Language
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://keplerproject.github.io/luafilesystem/
|
URL: https://keplerproject.github.io/luafilesystem/
|
||||||
@ -29,22 +31,25 @@ Man pages and other related documents.
|
|||||||
%autosetup -n luafilesystem-%{commit} -p1
|
%autosetup -n luafilesystem-%{commit} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{optflags} -fPIC" PREFIX=%{_prefix} LUA_LIBDIR=%{_libdir}/lua/5.3
|
%make_build CFLAGS="%{optflags} -fPIC" PREFIX=%{_prefix} LUA_LIBDIR=%{_libdir}/lua/%{luaver}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{_libdir}/lua/5.3
|
make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{_libdir}/lua/%{luaver}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
LUA_CPATH=$RPM_BUILD_ROOT%{_libdir}/lua/5.3/\?.so lua tests/test.lua
|
LUA_CPATH=$RPM_BUILD_ROOT%{_libdir}/lua/%{luaver}/\?.so lua tests/test.lua
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README
|
%doc README
|
||||||
%doc doc/us/license*
|
%doc doc/us/license*
|
||||||
%{_libdir}/lua/5.3/*
|
%{_libdir}/lua/%{luaver}/*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc doc/us/{d,e,i,lua,m}*
|
%doc doc/us/{d,e,i,lua,m}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 7 2020 shenyangyang <shenyangyang4@huawei.com> - 1.6.3-11
|
||||||
|
- Add a macro for upgrade of lua
|
||||||
|
|
||||||
* Fri Nov 29 2019 zhouyihang <zhouyihang1@huawei.com> - 1.6.3-10
|
* Fri Nov 29 2019 zhouyihang <zhouyihang1@huawei.com> - 1.6.3-10
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user