SHA256
1
0
forked from pool/lua-say

Compare commits

6 Commits

7 changed files with 71 additions and 12 deletions

1
.gitattributes vendored
View File

@@ -21,3 +21,4 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*.changes merge=merge-changes

7
.gitignore vendored
View File

@@ -1 +1,8 @@
.assets/
*.obscpio
*.osc
.osc
.pbuild
_scmsync.obsinfo
_build*
_build.*

View File

@@ -1,5 +1,6 @@
<multibuild>
<package>lua51</package>
<package>luajit</package>
<package>lua53</package>
<package>lua54</package>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Oct 27 23:20:04 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Split the building to separate `test` phase to avoid cycle with
busted.
-------------------------------------------------------------------
Fri Oct 24 14:50:55 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Mon Oct 20 19:57:08 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Add luajit version to _multibuild
- Rewrite to use %luarocks_{build,install}
-------------------------------------------------------------------
Tue Mar 11 22:56:55 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 1.4.1:
- Fix argcount n if too low.
- Make say nil-safe
-------------------------------------------------------------------
Thu Mar 16 18:20:47 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@@ -15,18 +15,25 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# The luarocks_install macro is replaced by the install-rock.sh script
%define flavor @BUILD_FLAVOR@
%if "%{flavor}" == "test"
%define flavor lua54
%bcond_without test
%else
%bcond_with test
%endif
%define mod_name say
%define upversion 1.3-1
Version: 1.31
Version: 1.4.1
Release: 0
Summary: Lua string hashing library, useful for internationalization
License: MIT
Group: Development/Libraries/Other
URL: https://github.com/lunarmodules/say
Source: https://github.com/lunarmodules/say/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
Source: https://github.com/lunarmodules/say/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-luarocks
BuildRequires: lua-macros
Requires: %{flavor}
BuildArch: noarch
@@ -35,23 +42,42 @@ BuildArch: noarch
Name: lua-say
ExclusiveArch: do_not_build
%else
%if %{with test}
Name: %{flavor}-say-test
%else
Name: %{flavor}-say
%endif
%endif
%if %{with test}
BuildRequires: %{flavor}-say
BuildRequires: %{flavor}-busted
%endif
%description
Useful for internationalization.
%prep
%setup -q -n %{mod_name}-%{upversion}
%autosetup -p1 -n %{mod_name}-%{version}
%build
/bin/true
%luarocks_build
%install
install -v -D -m 0644 -p -t %{buildroot}%{lua_noarchdir}/say src/init.lua
%if %{without test}
%luarocks_install ./%{mod_name}-*.rock
%endif
%check
%if %{with test}
busted
%endif
%if %{without test}
%files
%dir %{lua_noarchdir}/say
%{lua_noarchdir}/say*
%license LICENSE
# Nothing useful in __rocktree/
%doc README.md CONTRIBUTING.md
%{lua_noarchdir}/say
%endif
%changelog

Binary file not shown.

BIN
say-1.4.1.tar.gz LFS Normal file

Binary file not shown.