diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2017-05-08 19:57:01 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2017-05-08 19:57:01 -0700 |
commit | 360a39ad0e4d58ccaca3b9b995a9391f37ede8bb (patch) | |
tree | 14384f584535c23e209af4660b740e3d43bb347b | |
parent | 06c75e03cf8348445605a48dae71b5d0bab29407 (diff) | |
download | specs-360a39ad0e4d58ccaca3b9b995a9391f37ede8bb.tar.gz specs-360a39ad0e4d58ccaca3b9b995a9391f37ede8bb.tar.xz specs-360a39ad0e4d58ccaca3b9b995a9391f37ede8bb.zip |
+ lua-bit32
-rw-r--r-- | lua/lua-bit32.spec | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lua/lua-bit32.spec b/lua/lua-bit32.spec new file mode 100644 index 0000000..bf1435d --- /dev/null +++ b/lua/lua-bit32.spec @@ -0,0 +1,43 @@ +%global lua_minver 5.1 +%{!?lua_version: %global lua_version %([[ -x /usr/bin/lua ]] && lua -e "print(string.sub(_VERSION, 5))" || echo %{lua_minver})} +%global lua_libdir %{_libdir}/lua/%{lua_version} + +BuildRequires: libtool +BuildRequires: lua >= 5.1 +BuildRequires: lua-devel >= 5.1 + +Name: lua-bit32 +Version: 5.3.0 +Release: 1%{?dist} + +License: MIT +Summary: Backport of Lua bit manipulation library introduced in 5.2 +Url: https://luarocks.org/modules/siffiejoe/bit32 + +Requires: lua(abi) = %{lua_version} + +Source0: https://github.com/keplerproject/lua-compat-5.2/archive/bitlib-%{version}.tar.gz + +%description +bit32 is the native Lua 5.2 bit manipulation library, in the version +from Lua 5.3; it is compatible with Lua 5.1, 5.2 and 5.3. + +%prep +%autosetup -n lua-compat-5.2-bitlib-%{version} + +%build +gcc %{optflags} -I/usr/include -I./c-api $(pkg-config --libs lua) lbitlib.c -shared -fPIC -o bit32.so + +%install +install -d %{buildroot}%{lua_libdir} +install -p bit32.so %{buildroot}%{lua_libdir}/ + +%files +%defattr(-,root,root) +%license LICENSE +%doc README.md +%{lua_libdir}/bit32.so + +%changelog +* Mon May 08 2017 Michel Alexandre Salim <salimma@fedoraproject.org> - 5.3.0-1 +- Initial package |