Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
87e75e36ba
|
|||
|
0aca55a1d2
|
|||
|
500e5a90f5
|
|||
|
3b73956db3
|
|||
|
c9baa7f803
|
|||
|
eafc3e4d42
|
|||
|
db3aa1c608
|
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
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1 +1,5 @@
|
|||||||
.osc
|
.osc
|
||||||
|
*.obscpio
|
||||||
|
*.osc
|
||||||
|
_build.*
|
||||||
|
.pbuild
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>lua51</package>
|
<package>luajit</package>
|
||||||
<package>lua53</package>
|
<package>lua53</package>
|
||||||
<package>lua54</package>
|
<package>lua54</package>
|
||||||
|
<package>lua55</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
|||||||
@@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 23 21:39:04 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Enable lua55 build.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Fri Sep 27 12:17:35 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,11 @@
|
|||||||
%bcond_without test
|
%bcond_without test
|
||||||
%define flavor @BUILD_FLAVOR@
|
%define flavor @BUILD_FLAVOR@
|
||||||
%define mod_name luarepl
|
%define mod_name luarepl
|
||||||
|
%if "%{flavor}" == "luajit"
|
||||||
|
%define lua_value 52
|
||||||
|
%else
|
||||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||||
|
%endif
|
||||||
%define rock_version 0.10-1
|
%define rock_version 0.10-1
|
||||||
Version: 0.10
|
Version: 0.10
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -70,8 +74,12 @@ sed -i -r '1s/env (lua)/\1%{lua_version}/' rep.lua
|
|||||||
%install
|
%install
|
||||||
%luarocks_install *.rock
|
%luarocks_install *.rock
|
||||||
|
|
||||||
|
# Store rep.lua to the system libraries directory
|
||||||
|
mv -v __rocktree/bin %{buildroot}%{lua_noarchdir}/
|
||||||
|
|
||||||
# Version the rep.lua file
|
# Version the rep.lua file
|
||||||
sed -i -r -e "s#%{buildroot}##g" -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"
|
"%{buildroot}/usr/bin/rep.lua"
|
||||||
mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}
|
mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}
|
||||||
|
|
||||||
@@ -79,10 +87,8 @@ mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/rep.lua
|
touch %{buildroot}%{_sysconfdir}/alternatives/rep.lua
|
||||||
ln -sf %{_sysconfdir}/alternatives/rep.lua %{buildroot}%{_bindir}/rep.lua
|
ln -sf %{_sysconfdir}/alternatives/rep.lua %{buildroot}%{_bindir}/rep.lua
|
||||||
mkdir -p %{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}/bin
|
touch %{buildroot}%{lua_noarchdir}/bin/rep.lua-%{lua_version}
|
||||||
touch %{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}/bin/rep.lua-%{lua_version}
|
ln -sf %{lua_noarchdir}/bin/rep.lua %{buildroot}%{lua_noarchdir}/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}
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/rep.lua rep.lua %{_bindir}/rep.lua-%{lua_version} %{lua_value}
|
%{_sbindir}/update-alternatives --install %{_bindir}/rep.lua rep.lua %{_bindir}/rep.lua-%{lua_version} %{lua_value}
|
||||||
@@ -98,10 +104,9 @@ make test
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/COPYING
|
%license COPYING
|
||||||
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
|
%doc README.md Changes IDEAS.md Roadmap.md plugins.md
|
||||||
%{lua_noarchdir}
|
%{lua_noarchdir}
|
||||||
%{luarocks_treedir}/%{mod_name}
|
|
||||||
%ghost %{_sysconfdir}/alternatives/rep.lua
|
%ghost %{_sysconfdir}/alternatives/rep.lua
|
||||||
%{_bindir}/rep.lua
|
%{_bindir}/rep.lua
|
||||||
%{_bindir}/rep.lua-%{lua_version}
|
%{_bindir}/rep.lua-%{lua_version}
|
||||||
|
|||||||
Reference in New Issue
Block a user