Initial packaging

This commit is contained in:
Mikolaj Izdebski 2023-03-01 17:52:02 +01:00
parent 00c1a503ec
commit 79deea6e55
2 changed files with 41 additions and 0 deletions

40
lujavrite.spec Normal file
View File

@ -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 <mizdebsk@redhat.com> - 1.0.1-1
- Initial packaging

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (lujavrite-1.0.1.tar.gz) = 8b25842377cb114a3732533984999e83f14fd63810c4856ae180a3ff333a5482e2ce52b7fb85eea4c4b5f28e4655ba52dda6d56de424b57df8ffa44770c00d3d