File datanucleus-api-jdo.spec of Package datanucleus-api-jdo
#
# spec file for package datanucleus-api-jdo
#
# 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-api-jdo
Version: 6.0.1
Release: 0
Summary: DataNucleus JDO API plugin
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/datanucleus/datanucleus-api-jdo
Source: https://github.com/datanucleus/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 9
BuildRequires: maven-local
BuildRequires: mvn(javax.transaction:javax.transaction-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(org.datanucleus:datanucleus-maven-parent:pom:)
BuildRequires: mvn(org.datanucleus:javax.jdo)
BuildArch: noarch
%description
Plugin providing DataNucleus implementation of JDO API.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%{mvn_file} : %{name}
%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 src/main/resources/META-INF/NOTICE.txt
%doc src/main/resources/META-INF/README.txt
%files javadoc -f .mfiles-javadoc
%license src/main/resources/META-INF/LICENSE.txt src/main/resources/META-INF/NOTICE.txt
%changelog