[packages/pango] add static_libs bcond

atler atler at pld-linux.org
Tue Feb 27 20:09:08 CET 2024


commit 9b648ef2baa44dc558de466838d1e837d0f39700
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Feb 27 19:44:46 2024 +0100

    add static_libs bcond

 pango.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/pango.spec b/pango.spec
index 697c6aa..b85dfe9 100644
--- a/pango.spec
+++ b/pango.spec
@@ -2,6 +2,7 @@
 # Conditional build:
 %bcond_without	apidocs		# gi documentation
 %bcond_without	libthai		# thai-lang module
+%bcond_without	static_libs	# static libraries
 %bcond_with	sysprof		# sysprof tracing support
 
 Summary:	System for layout and rendering of internationalized text
@@ -147,6 +148,7 @@ pango - przykładowe programy.
 
 %build
 %meson build \
+	%{!?with_static_libs:--default-library=shared} \
 	-Dgtk_doc=%{__true_false apidocs} \
 	%{?with_sysprof:-Dsysprof=enabled}
 
@@ -216,12 +218,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/pangoot.pc
 %{_pkgconfigdir}/pangoxft.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libpango-1.0.a
 %{_libdir}/libpangocairo-1.0.a
 %{_libdir}/libpangoft2-1.0.a
 %{_libdir}/libpangoxft-1.0.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pango.git/commitdiff/07707c06fb11be524f38ae167ad9633481d9d3a6



More information about the pld-cvs-commit mailing list