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:
parent
138aba8ab5
commit
87f6ad41df
@ -1,4 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>lua51</package>
|
<package>lua51</package>
|
||||||
<package>lua53</package>
|
<package>lua53</package>
|
||||||
|
<package>test</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -33,16 +33,22 @@ Group: Development/Libraries/Other
|
|||||||
URL: https://github.com/leafo/loadkit
|
URL: https://github.com/leafo/loadkit
|
||||||
Source: https://github.com/leafo/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
Source: https://github.com/leafo/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||||
BuildRequires: %{flavor}-moonscript
|
BuildRequires: %{flavor}-moonscript
|
||||||
BuildRequires: %{flavor}-busted
|
|
||||||
BuildRequires: %{flavor}-devel
|
BuildRequires: %{flavor}-devel
|
||||||
Requires: %{flavor}
|
Requires: %{flavor}
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{flavor}-busted
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
Name: lua-loadkit
|
Name: lua-loadkit
|
||||||
ExclusiveArch: do_not_build
|
ExclusiveArch: do_not_build
|
||||||
%else
|
%else
|
||||||
|
%if %{with test}
|
||||||
|
Name: %{flavor}-loadkit-test
|
||||||
|
%else
|
||||||
Name: %{flavor}-loadkit
|
Name: %{flavor}-loadkit
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Loadkit lets you register new file extension handlers that
|
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}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# moonc loadkit.moon ... missing alt_getopt
|
moonc loadkit.moon
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if ! %{with test}
|
||||||
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p loadkit.lua
|
install -v -D -m 0644 -t %{buildroot}%{lua_noarchdir} -p loadkit.lua
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
busted
|
busted
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with test}
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{lua_noarchdir}/%{mod_name}*
|
%{lua_noarchdir}/%{mod_name}*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user