[packages/wlroots] add static_libs bcond

atler atler at pld-linux.org
Sat Jun 29 02:40:44 CEST 2024


commit 43cab366c0a666cde81074e4f3095a49cfc57dfc
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jun 29 00:47:37 2024 +0200

    add static_libs bcond

 wlroots.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/wlroots.spec b/wlroots.spec
index 10b6922..611d68d 100644
--- a/wlroots.spec
+++ b/wlroots.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+
 Summary:	A modular Wayland compositor library
 Summary(pl.UTF-8):	Modularna biblioteka kompozytora Wayland
 Name:		wlroots
@@ -131,6 +135,7 @@ Statyczna biblioteka wlroots.
 
 %build
 %meson build \
+	%{!?with_static_libs:--default-library=shared} \
 	-Dexamples=false \
 	-Dxwayland=enabled
 
@@ -157,6 +162,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/wlr
 %{_pkgconfigdir}/wlroots.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libwlroots.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wlroots.git/commitdiff/43cab366c0a666cde81074e4f3095a49cfc57dfc



More information about the pld-cvs-commit mailing list