]> git.pld-linux.org Git - packages/sqlite3.git/commitdiff
add static_libs bcond auto/th/sqlite3-3.44.1-1
authorJan Palus <atler@pld-linux.org>
Wed, 22 Nov 2023 23:33:38 +0000 (00:33 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 22 Nov 2023 23:33:38 +0000 (00:33 +0100)
sqlite3.spec

index b6c6d513ce685a4c20753911c4bf07584f8b1e8b..308e83ef4f0cc0831018408208c2ffefab0f7690 100644 (file)
@@ -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}
This page took 0.447782 seconds and 4 git commands to generate.