[packages/sqlite3] add static_libs bcond

atler atler at pld-linux.org
Thu Nov 23 02:29:24 CET 2023


commit 2710ab750786fe4ba813ea7d354b1ca454117e54
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 23 00:33:38 2023 +0100

    add static_libs bcond

 sqlite3.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/sqlite3.spec b/sqlite3.spec
index b6c6d51..308e83e 100644
--- a/sqlite3.spec
+++ b/sqlite3.spec
@@ -12,6 +12,7 @@
 %bcond_without	load_extension	# enable load extension API
 %bcond_with	icu		# ICU tokenizer support
 %bcond_without	json		# json functions
+%bcond_without	static_libs	# static library
 
 %ifarch %{x8664}
 %undefine	with_tests
@@ -280,6 +281,7 @@ append-libs "-ldl"
 	%{!?with_tcl:--disable-tcl}%{?with_tcl:--with-tcl=%{_ulibdir}} \
 	%{__enable_disable load_extension load-extension} \
 	%{__enable_disable json} \
+	%{__enable_disable static_libs static} \
 	--enable-threadsafe \
 	--enable-fts5
 
@@ -330,9 +332,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/sqlite3ext.h
 %{_pkgconfigdir}/sqlite3.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libsqlite3.a
+%endif
 
 %if %{with tcl}
 %files -n tcl-%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sqlite3.git/commitdiff/2710ab750786fe4ba813ea7d354b1ca454117e54



More information about the pld-cvs-commit mailing list