%global forgeurl https://github.com/amireh/lua_cliargs %global tag v3.0-2 Name: lua-cliargs Version: 3.0.2 Release: 1%{?dist} Summary: A command-line argument parser License: MIT URL: %{forgeurl} %forgemeta Source: %{forgesource} BuildArch: noarch BuildRequires: lua-devel %description This module adds support for accepting CLI arguments easily using multiple notations and argument types. cliargs allows you to define required, optional, and flag arguments. %prep %forgesetup %build # Nothing to do here %install install -dD %{buildroot}%{lua_pkgdir} cp -av src/. %{buildroot}%{lua_pkgdir} %check LUA_PATH="%{buildroot}%{lua_pkgdir}/?.lua" \ lua examples/00_general.lua --version %files %license LICENSE %doc README.md %doc UPGRADE.md %{lua_pkgdir}/cliargs.lua %{lua_pkgdir}/cliargs/ %changelog * Tue Nov 15 2022 Jonny Heggheim - 3.0.2-1 - Initial package