# # spec file for package sqlite-jdbc # # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %global version 3.32.3.3 %global amalgamation_version 3320300 %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: https://github.com/xerial/%{name}/archive/%{version}.tar.gz Source1: https://www.sqlite.org/2020/sqlite-amalgamation-%{amalgamation_version}.zip BuildRequires: java-devel >= 11 BuildRequires: java-javadoc >= 11 BuildRequires: maven-local BuildRequires: xmvn BuildRequires: unzip BuildRequires: fdupes BuildRequires: dos2unix BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) BuildRoot: %{_tmppath}/%{name}-%{version}-build %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} %description javadoc API documentation for %{name}. %prep %setup -q %mvn_file : %{name}-%{version} %{name} %pom_xpath_replace "pom:plugin[pom:artifactId/text()='maven-compiler-plugin']/pom:configuration/pom:source" 11 pom.xml %pom_xpath_replace "pom:plugin[pom:artifactId/text()='maven-compiler-plugin']/pom:configuration/pom:target" 11 pom.xml dos2unix SQLiteJDBC.wiki mkdir target cp %{S:1} target/sqlite-3.32.3-amal.zip %build make native %mvn_build -- \ -Dmaven.test.skip=true \ -Dmaven.compiler.source=11 \ -Dmaven.compiler.target=11 \ -Dmaven.javadoc.offlineLinks='https://docs.oracle.com/en/java/javase/11/docs/api/#%{_javadocdir}/java/' \ -DcompileSource=11 \ package \ org.apache.maven.plugins:maven-javadoc-plugin:javadoc %install %mvn_install -J target/site/apidocs %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %defattr(-,root,root) %doc CHANGELOG README.md Usage.md SQLiteJDBC.wiki %license LICENSE* NOTICE %files javadoc -f .mfiles-javadoc %defattr(-,root,root) %license LICENSE* NOTICE %changelog