SHA256
12
0
forked from pool/lua-loadkit

Generate .lua file from .moon

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-loadkit?expand=0&rev=4
This commit is contained in:
Matej Cepl 2020-04-04 19:00:17 +00:00 committed by Git OBS Bridge
parent 138aba8ab5
commit 87f6ad41df
2 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>test</package>
</multibuild>

View File

@ -33,16 +33,22 @@ Group: Development/Libraries/Other
URL: https://github.com/leafo/loadkit
Source: https://github.com/leafo/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-moonscript
BuildRequires: %{flavor}-busted
BuildRequires: %{flavor}-devel
Requires: %{flavor}
%if %{with test}
BuildRequires: %{flavor}-busted
%endif
BuildArch: noarch
%if "%{flavor}" == ""
Name: lua-loadkit
ExclusiveArch: do_not_build
%else
%if %{with test}
Name: %{flavor}-loadkit-test
%else
Name: %{flavor}-loadkit
%endif
%endif
%description
Loadkit lets you register new file extension handlers that
@ -53,16 +59,22 @@ of any extension using the current search path.
%setup -q -n %{mod_name}-%{version}
%build
# moonc loadkit.moon ... missing alt_getopt
moonc loadkit.moon
%install
%if ! %{with test}
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p loadkit.lua
%endif
%check
%if %{with test}
busted
%endif
%if ! %{with test}
%files
%doc README.md
%{lua_noarchdir}/%{mod_name}*
%endif
%changelog