From 384109372556df02e48a43813b0cdd7abf74aa9455466f35269768b0a8587ece Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 12 Nov 2020 15:44:55 +0000 Subject: [PATCH] Accepting request 847317 from home:concyclic:java Submitting new package. I would also like to request to add me as a maintainer of this package. OBS-URL: https://build.opensuse.org/request/show/847317 OBS-URL: https://build.opensuse.org/package/show/Java:packages/sqlite-jdbc?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + _service | 5 + _service:download_files:3.32.3.2.tar.gz | 3 + ...load_files:sqlite-amalgamation-3320300.zip | 3 + sqlite-jdbc.spec | 91 +++++++++++++++++++ 6 files changed, 126 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _service:download_files:3.32.3.2.tar.gz create mode 100644 _service:download_files:sqlite-amalgamation-3320300.zip create mode 100644 sqlite-jdbc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1138efd --- /dev/null +++ b/_service @@ -0,0 +1,5 @@ + + + yes + + diff --git a/_service:download_files:3.32.3.2.tar.gz b/_service:download_files:3.32.3.2.tar.gz new file mode 100644 index 0000000..fe4f3e9 --- /dev/null +++ b/_service:download_files:3.32.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9168ad02cb8b01449271eabd8a2a81461954c2c3fa854d3828a37dc07a1fefec +size 10495017 diff --git a/_service:download_files:sqlite-amalgamation-3320300.zip b/_service:download_files:sqlite-amalgamation-3320300.zip new file mode 100644 index 0000000..89e194d --- /dev/null +++ b/_service:download_files:sqlite-amalgamation-3320300.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9cec01d4519e2d49b3810615237325263fe1feaceae390ee12b4a29bd73dbe2 +size 2407456 diff --git a/sqlite-jdbc.spec b/sqlite-jdbc.spec new file mode 100644 index 0000000..b96c525 --- /dev/null +++ b/sqlite-jdbc.spec @@ -0,0 +1,91 @@ +# +# 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.2 +%global amalgamation_version 3320300 +%global debug_package %{nil} + +Name: sqlite-jdbc +Version: 3.32.3.2 +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 +