[packages/dtc] add static_libs bcond
atler
atler at pld-linux.org
Tue May 26 15:17:03 CEST 2026
commit 7e6525cbd0214d31bcf2600206530fe980be2b4a
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 26 15:15:47 2026 +0200
add static_libs bcond
dtc.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/dtc.spec b/dtc.spec
index 027c702..0bbe3f4 100644
--- a/dtc.spec
+++ b/dtc.spec
@@ -2,6 +2,7 @@
# Conditional build:
%bcond_without python # Python module (any)
%bcond_without python3 # CPython 3.x module
+%bcond_without static_libs # static library
%if %{without python}
%undefine with_python3
@@ -108,6 +109,7 @@ Wiązanie Pythona 3 do biblioteki fdt.
%build
%meson \
+ %{!?with_static_libs:--default-library=shared} \
-Dpython=%{__enabled_disabled python}
%meson_build
@@ -152,9 +154,11 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/libfdt_env.h
%{_pkgconfigdir}/libfdt.pc
+%if %{with static_libs}
%files -n libfdt-static
%defattr(644,root,root,755)
%{_libdir}/libfdt.a
+%endif
%if %{with python3}
%files -n python3-libfdt
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dtc.git/commitdiff/7e6525cbd0214d31bcf2600206530fe980be2b4a
More information about the pld-cvs-commit
mailing list