diff --git a/lujavrite.spec b/lujavrite.spec new file mode 100644 index 0000000..1018fb5 --- /dev/null +++ b/lujavrite.spec @@ -0,0 +1,40 @@ +Name: lujavrite +Version: 1.0.1 +Release: 1%{?dist} +Summary: Lua library for calling Java code +License: Apache-2.0 +URL: https://github.com/mizdebsk/lujavrite + +Source0: https://github.com/mizdebsk/lujavrite/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: lua-devel +BuildRequires: java-devel + +%{?lua_requires} + +%description +LuJavRite is a rock-solid Lua library that allows calling Java code +from Lua code. It does so by launching embedded Java Virtual Machine +and using JNI interface to invoke Java methods. + +%prep +%setup -q + +%build +./build.sh + +%install +install -D -p -m 0755 lujavrite.so %{buildroot}%{lua_libdir}/%{name}.so + +%check +lua test.lua + +%files +%{lua_libdir}/* +%license LICENSE NOTICE +%doc README.md + +%changelog +* Wed Mar 01 2023 Mikolaj Izdebski - 1.0.1-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..0bbeef2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lujavrite-1.0.1.tar.gz) = 8b25842377cb114a3732533984999e83f14fd63810c4856ae180a3ff333a5482e2ce52b7fb85eea4c4b5f28e4655ba52dda6d56de424b57df8ffa44770c00d3d