sqlite-jdbc/sqlite-jdbc.spec
Anton Shvetz 907556d9e5 - Update to v3.39.3.0
* Features
    ~ 1cab301 [jdbc] support Statement.execute methods with
      autoGeneratedKeys parameter
    ~ 954dd4c [jdbc] ResultSetMetaData.getColumnClassName returns
      more accurate type
  * Fixes
    ~ f4eaac4 [native] JRE crash on connection close with
      CommitListener and auto commit disabled
    ~ 7c3f7de [jdbc] Statement.setEscapeProcessing should not throw
      unsupported exception
    ~ e14fcd0 [jdbc] throw SQLFeatureNotSupportedException instead
      of SQLException for unsupported features
    ~ 09d4db2 [jdbc] DatabaseMetaData.supportsFullOuterJoins
      returns true for SQLite 3.39+
    ~ bbb7d2c [jdbc] incorrect DatabaseMetaData JDBC version
      major/minor
    ~ bc5174b [jdbc] getDate, getTime, and getTimestamp crash on
      empty text
    ~ 1c84e06 [jdbc] ResultSetMetaData.getColumnType now returns
      BIGINT if the value is large
    ~ b7396a1 [jdbc] detect TIMESTAMP stored in SQLITE_TEXT
  * Build
    ~ eec8880 [native] update SQLite to 3.39.3
    ~ 6117c94 fix build-native directory when downloading native
      libraries
    ~ 628a38e [native] update dockcross windows x86/x64 images
    ~ 90550cc [native] update dockcross images, fixes issue when
      running on Mac M1
    ~ 0bfe4f0 replace junit jupiter assumptions with assertJ

OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=11
2022-09-09 11:02:26 +00:00

85 lines
2.7 KiB
RPMSpec

#
# spec file for package sqlite-jdbc
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%{!?make_build:%global make_build make %{?_smp_mflags}}
%global version 3.39.3.0
%global amalgamation_version 3390300
%global debug_package %{nil}
Name: sqlite-jdbc
Version: %{version}
Release: 0
Summary: SQLite JDBC Driver
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/xerial/%{name}
Source0: %{url}/archive/%{version}.tar.gz
Source1: https://www.sqlite.org/2022/sqlite-amalgamation-%{amalgamation_version}.zip
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: unzip
BuildRequires: xmvn
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
%description
SQLite JDBC is a library for accessing and creating SQLite database files in
Java.
Our SQLiteJDBC library requires no configuration since native libraries for
major OSs, including Windows, Mac OS X, Linux etc., are assembled into a single
JAR (Java Archive) file. The usage is quite simple; download our sqlite-jdbc
library, then append the library (JAR file) to your class path.
%package javadoc
Summary: API documentation for %{name}
BuildArch: noarch
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%{mvn_file} : %{name}
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
dos2unix SQLiteJDBC.wiki
mkdir target
cp %{SOURCE1} target/sqlite-$(sed -e 's/^version=//' VERSION)-amal.zip
%build
%make_build native
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE* NOTICE
%doc CHANGELOG README.md USAGE.md SQLiteJDBC.wiki
%files javadoc -f .mfiles-javadoc
%license LICENSE* NOTICE
%changelog