[packages/libportal] fix build without gtk4

atler atler at pld-linux.org
Wed Apr 26 13:17:08 CEST 2023


commit 1950b5988c97da259647d21b6f725b20bd963f80
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Apr 26 13:15:59 2023 +0200

    fix build without gtk4

 libportal.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libportal.spec b/libportal.spec
index ae6fc08..4eae064 100644
--- a/libportal.spec
+++ b/libportal.spec
@@ -245,7 +245,7 @@ Dokumentacja API biblioteki libportal.
 %build
 %meson build \
 	%{!?with_static_libs:--default-library=shared} \
-	-Dbackends=%{?with_gtk3:gtk3%{?with_gtk4:,}}%{?with_gtk4:gtk4}%{?with_qt5:%{?with_gtk4:,}qt5} \
+	-Dbackends=%(echo %{?with_gtk3:gtk3 }%{?with_gtk4:gtk4 }%{?with_qt5:qt5 } | tr ' ' ',') \
 	%{!?with_apidocs:-Ddocs=false}
 
 %ninja_build -C build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libportal.git/commitdiff/d3a0c011fd446fdb5369bca1cf313dd52d47c29b



More information about the pld-cvs-commit mailing list