[packages/gupnp1.6] add static_libs bcond

atler atler at pld-linux.org
Thu May 30 21:33:14 CEST 2024


commit 449dfa0029954624908fcf9a79be60e52f04c7fa
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu May 30 21:23:02 2024 +0200

    add static_libs bcond

 gupnp1.6.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gupnp1.6.spec b/gupnp1.6.spec
index 22348be..357a530 100644
--- a/gupnp1.6.spec
+++ b/gupnp1.6.spec
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_without	apidocs	# gi-docgen based API documentation
-%bcond_without	vala	# Vala API
+%bcond_without	apidocs		# gi-docgen based API documentation
+%bcond_without	vala		# Vala API
+%bcond_without	static_libs	# static library
 
 Summary:	UPnP library based on GObject and libsoup
 Summary(pl.UTF-8):	Biblioteka UPnP oparta na bibliotekach GObject i libsoup
@@ -114,6 +115,7 @@ API języka Vala dla biblioteki gupnp.
 
 %build
 %meson build \
+	%{!?with_static_libs:--default-library=shared} \
 	-Dcontext_manager=network-manager \
 	%{?with_apidocs:-Dgtk_doc=true}
 
@@ -151,9 +153,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/gupnp-1.6
 %{_pkgconfigdir}/gupnp-1.6.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgupnp-1.6.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gupnp1.6.git/commitdiff/449dfa0029954624908fcf9a79be60e52f04c7fa



More information about the pld-cvs-commit mailing list