2019-11-02 08:52:18 +01:00
|
|
|
#
|
|
|
|
# spec file for package mojo-executor
|
|
|
|
#
|
2024-02-21 11:51:25 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-11-02 08:52:18 +01:00
|
|
|
#
|
|
|
|
# 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: mojo-executor
|
2022-12-05 08:26:39 +01:00
|
|
|
Version: 2.4.0
|
2019-11-02 08:52:18 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Mojo Executor
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2022-12-05 08:26:39 +01:00
|
|
|
URL: https://mojo-executor.github.io/mojo-executor/
|
|
|
|
Source0: https://github.com/mojo-executor/mojo-executor/archive/refs/tags/mojo-executor-parent-%{version}.tar.gz
|
2019-11-02 08:52:18 +01:00
|
|
|
Source1: http://www.apache.org/licenses/LICENSE-2.0
|
2019-11-23 21:00:58 +01:00
|
|
|
Patch0: mojo-executor-dependency.patch
|
2019-11-22 08:56:26 +01:00
|
|
|
BuildRequires: fdupes
|
2023-10-26 12:33:22 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2019-11-22 08:56:26 +01:00
|
|
|
BuildRequires: maven-local
|
2019-11-02 08:52:18 +01:00
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-model)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-simple)
|
|
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
2019-11-22 08:56:26 +01:00
|
|
|
BuildArch: noarch
|
2019-11-02 08:52:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Mojo Executor provides a way to to execute other Mojos (plugins) within a Maven plugin,
|
|
|
|
allowing to create Maven plugins that are composed of other plugins.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-parent-%{version}
|
2024-02-21 11:51:25 +01:00
|
|
|
%patch -P 0 -p1
|
2019-11-02 08:52:18 +01:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
%pom_disable_module %{name}-maven-plugin
|
2019-11-23 21:00:58 +01:00
|
|
|
%pom_remove_plugin :jacoco-maven-plugin
|
2023-10-26 12:33:22 +02:00
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
2019-11-02 08:52:18 +01:00
|
|
|
|
|
|
|
perl -pi -e 's#org\.sonatype\.aether\.repository#org.eclipse.aether.repository#g' \
|
|
|
|
mojo-executor/src/main/java/org/twdata/maven/mojoexecutor/MavenCompatibilityHelper.java
|
|
|
|
|
|
|
|
%build
|
2023-10-26 12:33:22 +02:00
|
|
|
%{mvn_build} -f -- \
|
2019-11-22 17:17:16 +01:00
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2023-10-26 12:33:22 +02:00
|
|
|
-Dmaven.compiler.release=8 \
|
2019-11-22 17:17:16 +01:00
|
|
|
%endif
|
2023-10-26 12:33:22 +02:00
|
|
|
-Dsource=8
|
2019-11-02 08:52:18 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE-2.0 LICENSE.txt
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE-2.0 LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|