* Features ~ add riscv64 binaries (a4a5d48) * Fixes ~ jdbc + generated columns with stored in SQLite are not marked as generated (429bbe4), closes #1132 ~ unscoped + never return arch as aarch64 when running in a 32-bit JVM (0c3db0b), closes #1127 + throw java.lang.ExceptionInInitializerError when calling SQLiteConfig.Pragma.values() (ec0a524), closes #1123 * Build ~ deps + bump org.apache.maven.plugins:maven-javadoc-plugin (c375a40) + bump org.graalvm.sdk:nativeimage from 24.0.1 to 24.0.2 (d50d5e6) + bump org.codehaus.mojo:versions-maven-plugin (14e07d4) + bump surefire.version from 3.3.0 to 3.3.1 (edac56b) + bump org.codehaus.mojo:versions-maven-plugin (f411591) + bump org.jreleaser:jreleaser-maven-plugin (2376d03) + bump org.apache.maven.plugins:maven-jar-plugin (d5394ea) + bump andymckay/cancel-action from 0.4 to 0.5 (99aa8d9) + bump surefire.version from 3.2.5 to 3.3.0 (b64f8fb) + bump org.apache.maven.plugins:maven-help-plugin (235143b) + bump org.apache.maven.plugins:maven-javadoc-plugin (50ef887) + bump org.apache.maven.plugins:maven-enforcer-plugin (efd5449) OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=50
101 lines
3.3 KiB
RPMSpec
101 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package sqlite-jdbc
|
|
#
|
|
# Copyright (c) 2024 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.46.0.1
|
|
%global amalgamation_version 3460000
|
|
%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/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: https://sqlite.org/2024/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
|
|
|
|
find src/main/resources \
|
|
\( -name \*.so -or -name \*.dylib -or -name \*.dll \) \
|
|
-delete
|
|
|
|
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
|
|
%pom_remove_plugin com.diffplug.spotless:spotless-maven-plugin
|
|
%pom_remove_dep org.graalvm.sdk:nativeimage
|
|
|
|
sed -i -e '/org\.graalvm\.nativeimage/ d' src/main/java9/module-info.java
|
|
rm src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java
|
|
|
|
dos2unix SQLiteJDBC.wiki
|
|
mkdir -p target/classpath
|
|
cp %{SOURCE1} target/sqlite-$(sed -e 's/^version=//' VERSION)-amal.zip
|
|
|
|
ln -s %{_javadir}/slf4j/slf4j-api.jar target/classpath/
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
%make_build native
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE* NOTICE
|
|
%doc CHANGELOG README.adoc {USAGE,SECURITY}.md SQLiteJDBC.wiki
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE* NOTICE
|
|
|
|
%changelog
|