File mingw64-sqlite.spec of Package mingw64-sqlite

#
# spec file for package mingw64-sqlite
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define sqlite_version 3500400
%{_mingw64_package_header_debug}
Name:           mingw64-sqlite
Version:        3.50.4
Release:        0
Summary:        Embeddable SQL Database Engine
License:        SUSE-Public-Domain
URL:            https://www.sqlite.org/
Source0:        https://www.sqlite.org/2025/sqlite-amalgamation-%{sqlite_version}.zip
Source1:        https://wrapdb.mesonbuild.com/v2/sqlite3_%{version}-1/get_patch#/sqlite-meson.zip
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-meson
BuildRequires:  mingw64-zlib
BuildArch:      noarch
BuildSystem:    mingw64meson

%description
SQLite is a C library that implements an SQL database engine. A large
subset of SQL92 is supported. A complete database is stored in a
single disk file. The API is designed for convenience and ease of use.
Applications that link against SQLite can enjoy the power and
flexibility of an SQL database without the administrative hassles of
supporting a separate database server.

%{_mingw64_debug_package}

%prep -a
unzip -j %{SOURCE1}

%files
%{_mingw64_libdir}/libsqlite3.a
%{_mingw64_includedir}/sqlite3.h
%{_mingw64_libdir}/pkgconfig/sqlite3.pc

%changelog
openSUSE Build Service is sponsored by