Files
maven-toolchains-plugin/maven-toolchains-plugin.spec

65 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package maven-toolchains-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: maven-toolchains-plugin
Version: 3.0.0
Release: 0
Summary: Apache Maven Toolchains Plugin
License: Apache-2.0
URL: https://maven.apache.org/plugins/maven-toolchains-plugin/
Source0: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildArch: noarch
%description
The Toolchains Plugins allows to share configuration across plugins.
For example to make sure the plugins like compiler, surefire,
javadoc, webstart etc. all use the same JDK for execution.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%pom_xpath_set "pom:project/pom:properties/pom:javaVersion" "8"
%build
%{mvn_build} -f -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%files javadoc -f .mfiles-javadoc
%changelog