commit cfccb21446f01258ae9ab441871b6cc1f35b2c75 Author: sherlock2010 <5456720+sherlock2010@user.noreply.gitee.com> Date: Fri Nov 29 17:35:33 2019 +0800 first commit diff --git a/lua-filesystem.spec b/lua-filesystem.spec new file mode 100644 index 0000000..553396b --- /dev/null +++ b/lua-filesystem.spec @@ -0,0 +1,50 @@ +%global commit 8014725009e195ffb502bcd65ca4e93b60a1b21c + +Name: lua-filesystem +Version: 1.6.3 +Release: 10 +Summary: File System Library for the Lua Programming Language +License: MIT +URL: https://keplerproject.github.io/luafilesystem/ +Source0: https://github.com/keplerproject/luafilesystem/archive/%{commit}/luafilesystem-%{version}.tar.gz + +BuildRequires: gcc lua-devel >= 5.3 +Requires: lua >= 5.3 + +%description +LuaFileSystem is a Lua library developed to complement the set of functions +related to file systems offered by the standard Lua distribution. + +LuaFileSystem offers a portable way to access the underlying directory structure +and file attributes. + +%package help +Summary: Documents for lua-filesystem +Buildarch: noarch + +%description help +Man pages and other related documents. + +%prep +%autosetup -n luafilesystem-%{commit} -p1 + +%build +%make_build CFLAGS="%{optflags} -fPIC" PREFIX=%{_prefix} LUA_LIBDIR=%{_libdir}/lua/5.3 + +%install +make install PREFIX=$RPM_BUILD_ROOT%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT%{_libdir}/lua/5.3 + +%check +LUA_CPATH=$RPM_BUILD_ROOT%{_libdir}/lua/5.3/\?.so lua tests/test.lua + +%files +%doc README +%doc doc/us/license* +%{_libdir}/lua/5.3/* + +%files help +%doc doc/us/{d,e,i,lua,m}* + +%changelog +* Fri Nov 29 2019 zhouyihang - 1.6.3-10 +- Package init diff --git a/luafilesystem-1.6.3.tar.gz b/luafilesystem-1.6.3.tar.gz new file mode 100644 index 0000000..852f8b8 Binary files /dev/null and b/luafilesystem-1.6.3.tar.gz differ