Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
500e5a90f5
|
|||
|
3b73956db3
|
|||
|
c9baa7f803
|
|||
|
eafc3e4d42
|
|||
|
db3aa1c608
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
4
.gitignore
vendored
@@ -1 +1,5 @@
|
||||
.osc
|
||||
*.obscpio
|
||||
*.osc
|
||||
_build.*
|
||||
.pbuild
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>luajit</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
</multibuild>
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -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}##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}
|
||||
|
||||
Reference in New Issue
Block a user