[packages/gdk-pixbuf2] add static_libs bcond

atler atler at pld-linux.org
Tue Sep 16 12:30:37 CEST 2025


commit aaff2a567cb9fd6a2b65084bf8eb7c01cbc47113
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Sep 16 12:29:46 2025 +0200

    add static_libs bcond

 gdk-pixbuf2.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gdk-pixbuf2.spec b/gdk-pixbuf2.spec
index d0d18a9..9a13a94 100644
--- a/gdk-pixbuf2.spec
+++ b/gdk-pixbuf2.spec
@@ -3,6 +3,7 @@
 # Conditional build:
 %bcond_without	apidocs		# API documentation
 %bcond_without	glycin		# Glycin loaders support
+%bcond_without	static_libs	# static libraries
 %bcond_without	tests		# test suite
 
 %define		abiver		2.10.0
@@ -113,6 +114,7 @@ Dokumentacja API biblioteki gdk-pixbuf.
 
 %build
 %meson \
+	%{!?with_static_libs:--default-library=shared} \
 	-Dandroid=disabled \
 	-Dbuiltin_loaders=%{?with_glycin:glycin} \
 	-Ddocumentation=%{__true_false apidocs} \
@@ -211,9 +213,11 @@ fi
 %{_includedir}/gdk-pixbuf-2.0
 %{_pkgconfigdir}/gdk-pixbuf-2.0.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgdk_pixbuf-2.0.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdk-pixbuf2.git/commitdiff/aaff2a567cb9fd6a2b65084bf8eb7c01cbc47113



More information about the pld-cvs-commit mailing list