SHA256
1
0
forked from pool/lua-luarepl

7 Commits

Author SHA256 Message Date
500e5a90f5 Switch off building lua51 build of the package. 2025-10-29 17:14:40 +01:00
3b73956db3 Make the package build with updated %luarocks_* macros. 2025-10-16 16:21:31 +02:00
c9baa7f803 Make the package build with updated %%luarocks_* macros. 2025-10-15 01:28:18 +02:00
eafc3e4d42 Make the package buildable with LuaJIT. 2025-10-13 13:30:47 +02:00
db3aa1c608 Add luajit version to _multibuild 2025-10-06 10:48:30 +02:00
f3f9489a19 Accepting request 1204231 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/1204231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarepl?expand=0&rev=3
2024-09-29 16:10:10 +00:00
f28b5366ff Fix rpmlint "file-contains-buildroot" error
This was failing with
osc build --noservice --clean --vm-type=kvm -M=lua51 standard

 lua51-luarepl.noarch: I: package-supports-update-alternatives
 lua51-luarepl.src: E: invalid-spec-name
 The spec file name (without the .spec suffix) must match the package name
 ('Name:' tag).

 lua51-luarepl.noarch: E: file-contains-buildroot (Badness: 10000) /usr/bin/rep.lua-5.1
 Your file contains traces of %{buildroot}.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarepl?expand=0&rev=5
2024-09-27 20:31:23 +00:00
5 changed files with 39 additions and 9 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

4
.gitignore vendored
View File

@@ -1 +1,5 @@
.osc
*.obscpio
*.osc
_build.*
.pbuild

View File

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

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Fri Oct 24 14:49:32 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Thu Oct 16 14:21:23 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make the package build with updated %luarocks_* macros.
-------------------------------------------------------------------
Mon Oct 13 11:30:43 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make the package buildable with LuaJIT.
-------------------------------------------------------------------
Fri Sep 27 12:17:35 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Fix rpmlint "file-contains-buildroot" error
-------------------------------------------------------------------
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>

View File

@@ -18,7 +18,11 @@
%bcond_without test
%define flavor @BUILD_FLAVOR@
%define mod_name luarepl
%if "%{flavor}" == "luajit"
%define lua_value 52
%else
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
%endif
%define rock_version 0.10-1
Version: 0.10
Release: 0
@@ -70,8 +74,12 @@ sed -i -r '1s/env (lua)/\1%{lua_version}/' rep.lua
%install
%luarocks_install *.rock
# Store rep.lua to the system libraries directory
mv -v __rocktree/bin %{buildroot}%{lua_noarchdir}/
# Version the rep.lua file
sed -i -r -e "s#%{buildroot}##" -e "s#(/bin/rep.lua)#\1-%{lua_version}#" \
sed -i -r -e "s#%{buildroot}##g" -e "s#(/bin/rep.lua)#\1-%{lua_version}#" \
-e "s#%{luarocks_treedir}/%{mod_name}/%{rock_version}/#%{lua_noarchdir}#" \
"%{buildroot}/usr/bin/rep.lua"
mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}
@@ -79,10 +87,8 @@ mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
touch %{buildroot}%{_sysconfdir}/alternatives/rep.lua
ln -sf %{_sysconfdir}/alternatives/rep.lua %{buildroot}%{_bindir}/rep.lua
mkdir -p %{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}/bin
touch %{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}/bin/rep.lua-%{lua_version}
ln -sf %{luarocks_treedir}/%{mod_name}/%{rock_version}/bin/rep.lua \
%{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}/bin/rep.lua-%{lua_version}
touch %{buildroot}%{lua_noarchdir}/bin/rep.lua-%{lua_version}
ln -sf %{lua_noarchdir}/bin/rep.lua %{buildroot}%{lua_noarchdir}/bin/rep.lua-%{lua_version}
%post
%{_sbindir}/update-alternatives --install %{_bindir}/rep.lua rep.lua %{_bindir}/rep.lua-%{lua_version} %{lua_value}
@@ -98,10 +104,9 @@ make test
%endif
%files
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/COPYING
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
%license COPYING
%doc README.md Changes IDEAS.md Roadmap.md plugins.md
%{lua_noarchdir}
%{luarocks_treedir}/%{mod_name}
%ghost %{_sysconfdir}/alternatives/rep.lua
%{_bindir}/rep.lua
%{_bindir}/rep.lua-%{lua_version}