SHA256
1
0
forked from pool/lua-busted

Compare commits

6 Commits

Author SHA256 Message Date
27a5000030 Switch off building lua51 build of the package. 2025-10-24 16:47:05 +02:00
9b39ec321d Remove file dependency on the interpreter. 2025-10-12 21:43:08 +02:00
ea59bf73db Don’t depend on /usr/bin/lua%{lua_version}, it breaks LuaJIT. 2025-10-10 16:58:15 +02:00
ea01911f41 Add luajit version to _multibuild 2025-10-06 10:46:22 +02:00
f374b81b30 Accepting request 1207471 from devel:languages:lua
- Change upstream homepage to the current one at Lunar Modules.
- Add missing /usr/share/zsh ownership (I don’t want to
  pull whole zsh as Requires and I am too lazy to create a
  subpackage).
- Fix missing dependency on lua-macros (boo#1205612)
- Adjust shebang of /usr/bin/busted to point to the correct lua
  interpreter (boo#1199151).
- Use %lua_provides macro for default lua versioning
- Add lua54 as new build target
- Add update-alternatives for the bash and zsh completion files.
- Initial packaging effort of busted 2.0.0.

OBS-URL: https://build.opensuse.org/request/show/1207471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-busted?expand=0&rev=7
2024-10-13 15:34:03 +00:00
fc3e9c2971 - Add missing /usr/share/zsh ownership (I don’t want to
pull whole zsh as Requires and I am too lazy to create a
  subpackage).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-busted?expand=0&rev=19
2024-10-12 18:17:43 +00:00
3 changed files with 30 additions and 5 deletions

View File

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

View File

@@ -1,7 +1,25 @@
-------------------------------------------------------------------
Fri Oct 24 14:47:05 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Sun Oct 12 19:43:06 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Remove file dependency on the interpreter.
-------------------------------------------------------------------
Wed Oct 8 08:38:06 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Dont depend on /usr/bin/lua%{lua_version}, it breaks LuaJIT.
-------------------------------------------------------------------
Thu Mar 16 18:09:21 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Change upstream homepage to the current one at Lunar Modules.
- Add missing /usr/share/zsh ownership (I dont want to
pull whole zsh as Requires and I am too lazy to create a
subpackage).
-------------------------------------------------------------------
Tue Nov 29 08:01:55 UTC 2022 - Michal Suchanek <msuchanek@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package lua-busted
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
#
# All modifications and additions to the file contributed by third parties
@@ -18,8 +18,14 @@
%define flavor @BUILD_FLAVOR@
# Remove file dependency on the interpreter
%global __requires_exclude ^/usr/bin/lua(5\\.[1-9]|jit)?$
%define mod_name busted
%if "%{flavor}" == "luajit"
%define lua_value 52
%else
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
%endif
%define upversion 2.0.0
Version: 2.0.0
Release: 0
@@ -60,7 +66,7 @@ Requires: curl
Requires: openssl
Requires: unzip
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%lua_provides
%if "%{flavor}" == ""
@@ -91,7 +97,7 @@ language packs.
%prep
%setup -q -n %{mod_name}-%{version}
sed -i 's|^#!%{_bindir}/env lua|#!%{_bindir}/lua%{lua_version}|' bin/busted
sed -i 's|^#!%{_bindir}/env lua|#!%{_bindir}/lua|' bin/busted
%build
/bin/true
@@ -146,6 +152,7 @@ bin/busted -v spec
%{lua_noarchdir}/busted
%{_datadir}/bash-completion/completions/busted
%{_datadir}/bash-completion/completions/busted-%{lua_version}
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/vendor-completions
%{_datadir}/zsh/vendor-completions/_busted
%{_datadir}/zsh/vendor-completions/_busted-%{lua_version}