[packages/lua-luv] fix build without luajit or without lua51
atler
atler at pld-linux.org
Tue May 3 13:20:49 CEST 2022
commit 29998255ba4c21040eb0ce3357b1cfb09ad27ad3
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 3 13:20:28 2022 +0200
fix build without luajit or without lua51
lua-luv.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/lua-luv.spec b/lua-luv.spec
index 5d84e50..d9dcdf9 100644
--- a/lua-luv.spec
+++ b/lua-luv.spec
@@ -206,6 +206,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/lua5.4/luv/luv.h
%{_includedir}/lua5.4/luv/util.h
+%if %{with lua51}
%files -n lua51-luv
%defattr(644,root,root,755)
%doc README.md
@@ -218,7 +219,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/lua5.1/luv/lreq.h
%{_includedir}/lua5.1/luv/luv.h
%{_includedir}/lua5.1/luv/util.h
+%endif
+%if %{with luajit}
%files -n luajit-luv
%defattr(644,root,root,755)
%doc README.md
@@ -231,3 +234,4 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/luajit-%{luajit_abi}/luv/lreq.h
%{_includedir}/luajit-%{luajit_abi}/luv/luv.h
%{_includedir}/luajit-%{luajit_abi}/luv/util.h
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lua-luv.git/commitdiff/29998255ba4c21040eb0ce3357b1cfb09ad27ad3
More information about the pld-cvs-commit
mailing list