SHA256
1
0
forked from pool/sqlite-jdbc
sqlite-jdbc/sqlite-jdbc.spec
Anton Shvetz 5a5c776832 - Update to v3.40.1.0
* Features
    ~ update SQLite to 3.40.1 (4ba7c8c)
    ~ allow correct recognition of android os if running termux
      (89ceb0d)
  * Fixes
    ~ jdbc: DatabaseMetaData#getPrimaryKeys and getExportedKeys
      should return an empty ResultSet for sqlite_schema (0dc6ad9),
      closes #831
    ~ jdbc: DatabaseMetaData#getColumns should also retrieve
      columns from SYSTEM TABLE types (473f528)
    ~ DatabaseMetaData#getTypeInfo's result should be ordered by
      DATA_TYPE (05bb929), closes #832
    ~ native: fixes and improvements for backup/restore (b13c908)
    ~ jdbc: DatabaseMetaData#getImportedKeys reports empty FK_NAME
      when created using quotes (ba69b2e), closes #506
  * Changes
    ~ replace mention of sqlite_master with sqlite_schema (e68bc05)
    ~ use temp directory instead of ./target (f97c0a0)
  * Build
    ~ release depends on test_graalvm (9f521a4)
    ~ refine GraalVM native-image configuration and fix native test
      execution (e437b3f)
    ~ hide bot names from release contributors (5d1a280)
    ~ replace java 18 with java 19 (4c80ee7)
    ~ use temp directory instead of ./target (e14c3b8), closes #825
    ~ try to fix build native for PRs (f7bd3cd)
    ~ try to fix build native for PRs (b23de9e)
    ~ try to fix build native for PRs (5aa6a30)
    ~ add 2023 url for amalgamation download (e3b6f8c)

OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=19
2023-02-02 09:39:08 +00:00

86 lines
2.7 KiB
RPMSpec

#
# spec file for package sqlite-jdbc
#
# Copyright (c) 2023 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.40.1.0
%global amalgamation_version 3400100
%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-enforcer-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