[packages/girara] add static_libs bcond
atler
atler at pld-linux.org
Sat Dec 9 15:44:35 CET 2023
commit 3517adaf1e34df85b3206af5e0e0ef03113f08a2
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Dec 9 15:01:24 2023 +0100
add static_libs bcond
girara.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/girara.spec b/girara.spec
index ab269f9..9e020bb 100644
--- a/girara.spec
+++ b/girara.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: User interface library
Summary(pl.UTF-8): Biblioteka interfejsu użytkownika
Name: girara
@@ -86,6 +90,7 @@ Statyczna biblioteka girara.
%build
%meson build \
+ %{!?with_static_libs:--default-library=shared} \
-Dnotify=enabled
%ninja_build -C build
@@ -118,6 +123,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/girara
%{_pkgconfigdir}/girara-gtk3.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libgirara-gtk3.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/girara.git/commitdiff/3517adaf1e34df85b3206af5e0e0ef03113f08a2
More information about the pld-cvs-commit
mailing list