File datanucleus-rdbms.spec of Package datanucleus-rdbms

#
# spec file for package datanucleus-rdbms
#
# Copyright (c) 2023 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:           datanucleus-rdbms
Version:        6.0.4
Release:        0
Summary:        DataNucleus RDBMS
License:        Apache-2.0
URL:            http://www.datanucleus.org/%{name}
Source:         https://github.com/datanucleus/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0:         0001-Remove-databases-with-missing-dependencies.patch
BuildRequires:  fdupes
BuildRequires:  java-devel >= 9
BuildRequires:  maven-local
BuildRequires:  mvn(c3p0:c3p0)
BuildRequires:  mvn(org.apache.commons:commons-dbcp2)
BuildRequires:  mvn(org.apache.commons:commons-pool2)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.tomcat:tomcat-jdbc)
BuildRequires:  mvn(org.datanucleus:datanucleus-core)
BuildRequires:  mvn(org.datanucleus:datanucleus-maven-parent:pom:)
BuildArch:      noarch

%description
Plugin for DataNucleus providing persistence to RDBMS data-stores.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch -P 0 -p1

%build
%{mvn_build} -f -- -Dmaven.compiler.source=8 -Dmaven.compiler.target=8 -Dsource=8

%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}

%files -f .mfiles
%license src/main/resources/META-INF/LICENSE.txt
%doc src/main/resources/META-INF/NOTICE.txt src/main/resources/META-INF/README.txt

%files javadoc -f .mfiles-javadoc
%license src/main/resources/META-INF/LICENSE.txt
%doc src/main/resources/META-INF/NOTICE.txt

%changelog
openSUSE Build Service is sponsored by