SHA256
1
0
forked from pool/sqlite-jdbc
sqlite-jdbc/sqlite-jdbc.spec
Anton Shvetz a6f2b745cc - Update to v3.39.2.0
* Changes:
    + Build
      ~ 63e0467 create the release commit only after successful
        push to Maven Central
      ~ 5aaeb8c attach javadoc when creating the jar in release
        profile
      ~ 7310a45 add missing project url in pom.xml
      ~ 13d2369 automatic release via workflow_dispatch
      ~ 6537808 add jreleaser plugin
      ~ 9f9ce09 remove maven-release-plugin and adjust version
        number
      ~ 10ab71c add test for #720
      ~ c7b54a2 expand multiarch test to arm64/alpine and
        ppc64/ubuntu
      ~ 50c0458 simplify matrix on test job using include instead
        of exclude
      ~ 972f1db run mvn with --batch-mode --no-transfer-progress
      ~ 7fc747f use actions/checkout@v3
      ~ 8409e5c display more information during OSInfoTest
      ~ 062440a build on jdk 17 (#747)
📝  + Documentation
      ~ 5c03f58 update list of supported platforms in README.md
      ~ d23711e remove bitbucket links
      ~ 766a51f syntax highlighting in README.md
    + --------
      ~ 481b803 fix memory leak when calling
        Connection.getMetaData() (#757)
      ~ bb84601 show numeric code instead of UNKNOWN_ERROR (#689)
      ~ 085700f compile OSInfo on the fly if needed by make (#715)

OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=8
2022-08-04 04:44:46 +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.0
%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}-%{version} %{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
%doc CHANGELOG README.md Usage.md SQLiteJDBC.wiki
%license LICENSE* NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE* NOTICE
%changelog