# # spec file for package h2database # # 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/ # Name: h2database Version: 2.1.210 Release: 0 Summary: Java SQL database License: MPL-1.1 AND EPL-1.0 Group: Development/Libraries/Java URL: https://www.h2database.com/ Source: https://github.com/h2database/h2database/archive/version-%{version}.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(jakarta.servlet:jakarta.servlet-api) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(org.apache.lucene:lucene-analyzers-common) BuildRequires: mvn(org.apache.lucene:lucene-core) BuildRequires: mvn(org.apache.lucene:lucene-queryparser) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.locationtech.jts:jts-core) BuildRequires: mvn(org.osgi:org.osgi.service.jdbc) BuildRequires: mvn(org.osgi:osgi.core) BuildRequires: mvn(org.slf4j:slf4j-api) BuildArch: noarch %description The main features of H2 are: * Very fast, open source, JDBC API * Embedded and server modes; in-memory databases * Browser based Console application * Small footprint: around 1 MB jar file size %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-version-%{version} # This one is bogus dependency %pom_remove_dep org.osgi:org.osgi.enterprise h2 # Missing dependency %pom_add_dep org.osgi:org.osgi.service.jdbc:1.0.0 h2 # Use OSGi 7 %pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core h2 # The profiles are used for tests that we don't run %pom_xpath_remove pom:project/pom:profiles h2 %build cd h2 %{mvn_build} -f -- -Dsource=8 %install cd h2 %mvn_install %fdupes -s %{_buildroot}%{_javadocdir} %files -f h2/.mfiles %files javadoc -f h2/.mfiles-javadoc %changelog