sqlite-jdbc/sqlite-jdbc.spec
Anton Shvetz 803071373e - Update to v3.39.2.1
* Features
    ~ 0795636 add support for Linux musl x86 32bits
    ~ 4102c1d support JDBC 4.2 large methods
    ~ fc72417 enable DBSTAT Virtual Table
  * Fixes
    ~ 5387c7a use directory stream for temp dir cleanup
    ~ 9979ba5 compile armv5 with soft float and without vfp
    ~ 99cac10 empty result set should not be returned as closed
    ~ 7e171d4 various correctness, memory leak and race condition
      fixes
    ~ 9517b3a minor bug fixes and code cleanup
    ~ 896054b getImportedKeys should not fail if referenced table
      does not exist
    ~ 05c45bb return generated columns in
      DatabaseMetaData.getColumns
    ~ 19cb96d getClob() should return null if the data is null
  * Changes
    ~ b619cfa use java.nio for file operations
    ~ 0a194de comments as javadoc
    ~ 1749e12 apply IntelliJ suggestions
    ~ 3bf5ada use try-with-resource and assertThrows
    ~ 49bf4e7 apply IntelliJ suggestions
  * Build
    ~ 6dd5a50 [native] rename alpine-linux64 target to linux-musl64
    ~ f4e478d build native libraries by workflow_dispatch or PR
      comment
    ~ 3fb1a21 apply IntelliJ suggestions
    ~ f8e39f4 [native] sign Mac 64 binary
    ~ 22b5f87 [native] add dockerfile for rcodesign

OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=10
2022-08-31 08:43:45 +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.2.1
%global amalgamation_version 3390200
%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