File depends-maven-plugin.spec of Package depends-maven-plugin

#
# spec file for package depends-maven-plugin
#
# 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:           depends-maven-plugin
Version:        1.5.0
Release:        0
Summary:        Apache ServiceMix :: Plugins :: Maven2 Depends Plugin
License:        Apache-2.0
Group:          Development/Libraries/Java
URL:            https://github.com/apache/servicemix-maven-plugins
Source0:        %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildArch:      noarch

%description
Apache ServiceMix :: Plugins :: Maven2 Depends Plugin.

%package javadoc
Summary:        API documentation for %{name}
Group:          Documentation/HTML

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n servicemix-maven-plugins-%{name}-%{version}/depends-maven-plugin
chmod 0644 ../maven-plugins-pom/LICENSE

%pom_remove_parent

%pom_add_dep org.apache.maven:maven-core
%pom_add_dep org.apache.maven:maven-artifact:2.2.1

%pom_xpath_inject pom:project '<groupId>org.apache.servicemix</groupId>'

%build
%{mvn_build} -f

%install
%mvn_install
%fdupes %{buildroot}/%{_javadocdir}/%{name}

%files -f .mfiles
%license ../maven-plugins-pom/{NOTICE,LICENSE}

%files javadoc -f .mfiles-javadoc
%license ../maven-plugins-pom/{NOTICE,LICENSE}

%changelog
openSUSE Build Service is sponsored by