[packages/fwupd] add static_libs bcond

atler atler at pld-linux.org
Sun Aug 24 18:49:14 CEST 2025


commit 661642120f5de1678ee92802d6032daa3a760338
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Aug 24 18:42:52 2025 +0200

    add static_libs bcond

 fwupd.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/fwupd.spec b/fwupd.spec
index 27f2525..3828400 100644
--- a/fwupd.spec
+++ b/fwupd.spec
@@ -5,6 +5,7 @@
 %bcond_without	flashrom	# flashrom plugin
 %bcond_without	modemmanager	# modem_manager plugin
 %bcond_without	thunderbolt	# Thunderbolt support
+%bcond_without	static_libs	# static libraries
 
 %ifnarch %{ix86} %{x8664} x32 %{arm} aarch64
 %undefine	with_efi
@@ -218,6 +219,7 @@ API języka Vala do biblioteki fwupd.
 
 %build
 %meson \
+	%{!?with_static_libs:--default-library=shared} \
 	-Dbluez=enabled \
 	-Dcbor=enabled \
 	-Dcompat_cli=true \
@@ -411,12 +413,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
 %{_pkgconfigdir}/fwupd.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libfwupd.a
 %{fwupd_plugins_dir}/libfwupdengine.a
 %{fwupd_plugins_dir}/libfwupdplugin.a
 %{fwupd_plugins_dir}/libfwupdutil.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fwupd.git/commitdiff/bf5220a2e6dba16f9b298abbf055212139bd6775



More information about the pld-cvs-commit mailing list