File datanucleus-maven-parent.spec of Package datanucleus-maven-parent

#
# spec file for package datanucleus-maven-parent
#
# 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-maven-parent
Version:        6.0.1
Release:        0
Summary:        DataNucleus Maven parent project
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://github.com/datanucleus/datanucleus-maven-parent
Source:         https://github.com/datanucleus/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires:  maven-local
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch:      noarch

%description
Datanucleus Maven parent pom used by other datanucleus packages.

%prep
%setup -q -n %{name}-%{name}-%{version}
cp -p %{SOURCE1} LICENSE

%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-ssh-external']]"

%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin :maven-clean-plugin
%pom_remove_plugin :maven-javadoc-plugin

%build
%{mvn_build} -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%changelog
openSUSE Build Service is sponsored by