[packages/gtk-layer-shell] add static_libs bcond

atler atler at pld-linux.org
Fri Jan 5 01:07:12 CET 2024


commit cf12ba84fd68e7f27147fc4aaec26486222759d1
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jan 5 01:06:39 2024 +0100

    add static_libs bcond

 gtk-layer-shell.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk-layer-shell.spec b/gtk-layer-shell.spec
index e65d00c..09253bd 100644
--- a/gtk-layer-shell.spec
+++ b/gtk-layer-shell.spec
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_without	apidocs	# API documentation
-%bcond_without	vala	# Vala API
+%bcond_without	apidocs		# API documentation
+%bcond_without	static_libs	# static library
+%bcond_without	vala		# Vala API
 
 Summary:	Library to create components for Wayland using the Layer Shell
 Summary(pl.UTF-8):	Biblioteka do tworzenia komponentów Waylanda przy użyciu protokołu Layer Shell
@@ -108,6 +109,7 @@ API gtk-layer-shell dla języka Vala.
 
 %build
 %meson build \
+	%{!?with_static_libs:--default-library=shared} \
 	%{?with_apidocs:-Ddocs=true} \
 	-Dvapi=%{__true_false vala}
 
@@ -139,9 +141,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/gtk-layer-shell-0.pc
 %{_datadir}/gir-1.0/GtkLayerShell-0.1.gir
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgtk-layer-shell.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk-layer-shell.git/commitdiff/cf12ba84fd68e7f27147fc4aaec26486222759d1



More information about the pld-cvs-commit mailing list