Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
9e805e8aa8
|
|||
|
b37964147f
|
|||
|
128dca291a
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -21,3 +21,4 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.changes merge=merge-changes
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,6 @@
|
|||||||
.osc
|
.osc
|
||||||
|
*.obscpio
|
||||||
|
*.osc
|
||||||
|
_build.*
|
||||||
|
.pbuild
|
||||||
|
lua*-cosmo-*-build/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>lua51</package>
|
<package>luajit</package>
|
||||||
<package>lua53</package>
|
<package>lua53</package>
|
||||||
<package>lua54</package>
|
<package>lua54</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 24 14:47:39 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Switch off building lua51 build of the package.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 14 23:11:41 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Make the package buildable with LuaJIT.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 1 01:48:59 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
|
Mon Apr 1 01:48:59 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define flavor @BUILD_FLAVOR@
|
%define flavor @BUILD_FLAVOR@
|
||||||
%define mod_name cosmo
|
%define mod_name cosmo
|
||||||
%define rock_version 16.06.04-1
|
%define rock_version 16.06.04-1
|
||||||
@@ -34,6 +33,7 @@ BuildRequires: lua-macros
|
|||||||
BuildRequires: zstd
|
BuildRequires: zstd
|
||||||
Requires: %{flavor}
|
Requires: %{flavor}
|
||||||
Requires: %{flavor}-lpeg
|
Requires: %{flavor}-lpeg
|
||||||
|
BuildArch: noarch
|
||||||
%lua_provides
|
%lua_provides
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
Name: lua-%{mod_name}
|
Name: lua-%{mod_name}
|
||||||
@@ -41,7 +41,6 @@ ExclusiveArch: do_not_build
|
|||||||
%else
|
%else
|
||||||
Name: %{flavor}-%{mod_name}
|
Name: %{flavor}-%{mod_name}
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cosmo is a "safe templates" engine. It allows you to fill nested
|
Cosmo is a "safe templates" engine. It allows you to fill nested
|
||||||
@@ -54,19 +53,17 @@ engines, without the downside of allowing arbitrary code in the templates.
|
|||||||
sed -i -e '/lpeg >=/d' "rockspec/%{mod_name}-%{rock_version}.rockspec"
|
sed -i -e '/lpeg >=/d' "rockspec/%{mod_name}-%{rock_version}.rockspec"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%luarocks_build "rockspec/%{mod_name}-%{rock_version}.rockspec"
|
%{luarocks_build} rockspec/%{mod_name}-%{rock_version}.rockspec
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%luarocks_install *.rock
|
%{luarocks_install} %{mod_name}-%{rock_version}.*.rock
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd tests
|
cd tests
|
||||||
lua test_cosmo.lua
|
lua test_cosmo.lua
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/cosmo.md
|
%doc README __rocktree/*
|
||||||
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
|
|
||||||
%{lua_noarchdir}
|
%{lua_noarchdir}
|
||||||
%{luarocks_treedir}/%{mod_name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user