File mingw32-sqlite.spec of Package mingw32-sqlite
#
# spec file for package mingw32-sqlite
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define sqlite_version 3081101
Name: mingw32-sqlite
Version: 3.8.11.1
Release: 0
Summary: Embeddable SQL database engine
License: SUSE-Public-Domain
Group: Productivity/Databases/Clients
URL: http://sqlite.org/
Source0: http://sqlite.org/2015/sqlite-autoconf-%sqlite_version.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 26
BuildRequires: tcl
%_mingw32_package_header_debug
BuildArch: noarch
%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.
%package -n mingw32-libsqlite3-0
Summary: Embeddable SQL database engine
Group: Productivity/Databases/Clients
Provides: mingw32-libsqlite = %version-%release
Obsoletes: mingw32-libsqlite < %version-%release
%description -n mingw32-libsqlite3-0
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.
%package devel
Summary: Embeddable SQL database engine
Group: Development/Libraries/C and C++
Provides: mingw32-libsqlite-devel = %version-%release
Obsoletes: mingw32-libsqlite-devel < %version-%release
%description devel
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.
%_mingw32_debug_package
%prep
%setup -q -n sqlite-autoconf-%sqlite_version
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%_mingw32_cache
perl -pi -e 's#archive_cmds_need_lc=yes#archive_cmds_need_lc=no#g' configure
MINGW32_CFLAGS=-DSQLITE_ENABLE_COLUMN_METADATA
%_mingw32_configure \
--disable-tcl --disable-readline \
--enable-shared --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%buildroot install %{?_smp_mflags}
mkdir -p %buildroot%_mingw32_mandir/man1
install -m 644 sqlite3.1 %buildroot%_mingw32_mandir/man1/
%files
%defattr(-,root,root)
%_mingw32_bindir/sqlite3.exe
%_mingw32_mandir/man1
%files -n mingw32-libsqlite3-0
%defattr(-,root,root)
%_mingw32_bindir/libsqlite3-0.dll
%files devel
%defattr(-,root,root)
%_mingw32_libdir/libsqlite3.dll.a
%_mingw32_includedir/sqlite3.h
%_mingw32_includedir/sqlite3ext.h
%_mingw32_libdir/pkgconfig/sqlite3.pc
%changelog