]> git.pld-linux.org Git - packages/sqlite3.git/blobdiff - sqlite3.spec
up to 3.45.3
[packages/sqlite3.git] / sqlite3.spec
index 1458950b4305a7b7a37fa1118b98528245c48ea1..80e6cd6f4453d41ad366674cfa1555530020ca4b 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
@@ -25,7 +26,7 @@
 
 # sqlite3 version with zero padded without any dots (3 08 10 01 is 3.8.10.1)
 # but trailing 00 means no 4rd part (3 11 01 00 is 3.11.1)
-%define                vnum    3390200
+%define                vnum    3450300
 %define                ver             %{lua:vn=rpm.expand("%vnum");v="";for i in string.gmatch(string.format("%08d", vn), "..") do v=v.."."..i:gsub("^0", "");end;v=v:gsub("^.",""):gsub("\.0$","");print(v)}
 
 %define                tclver          8.6
@@ -37,8 +38,8 @@ Release:      1
 License:       Public Domain
 Group:         Libraries
 # Source0Download: http://www.sqlite.org/download.html
-Source0:       https://www.sqlite.org/2022/sqlite-src-%{vnum}.zip
-# Source0-md5: 99a0212ad79c0c2f3f49028298112ed7
+Source0:       https://www.sqlite.org/2024/sqlite-src-%{vnum}.zip
+# Source0-md5: 18ebfa01bd89454602fac7d82fdc9df2
 Patch0:                %{name}-amalgamation_configure.patch
 URL:           https://www.sqlite.org/
 BuildRequires: autoconf >= 2.50
@@ -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.050577 seconds and 4 git commands to generate.