[packages/libadwaita] add static_libs bcond
atler
atler at pld-linux.org
Mon Jan 13 20:32:12 CET 2025
commit 9f04bf853104d9c861363d29fdeddc98e0fd8a31
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jan 13 20:16:06 2025 +0100
add static_libs bcond
libadwaita.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libadwaita.spec b/libadwaita.spec
index 889ea8a..30dd537 100644
--- a/libadwaita.spec
+++ b/libadwaita.spec
@@ -1,6 +1,7 @@
#
# Conditional_build:
-%bcond_without apidocs # gi-doc API documentation
+%bcond_without apidocs # gi-doc API documentation
+%bcond_without static_libs # static libraries
Summary: Adwaita mobile widgets library
Summary(pl.UTF-8): Biblioteka widżetów mobilnych Adwaita
@@ -98,6 +99,7 @@ Dokumentacja API biblioteki Adwaita.
%build
%meson build \
+ %{!?with_static_libs:--default-library=shared} \
-Dexamples=false \
%{?with_apidocs:-Dgtk_doc=true}
@@ -136,10 +138,12 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gir-1.0/Adw-1.gir
%{_pkgconfigdir}/libadwaita-1.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libadwaita-1.a
%{_libdir}/libadwaita-1-internal.a
+%endif
%files -n vala-libadwaita
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libadwaita.git/commitdiff/9f04bf853104d9c861363d29fdeddc98e0fd8a31
More information about the pld-cvs-commit
mailing list