2019-04-01 11:28:24 +02:00
|
|
|
#
|
2022-03-10 10:07:52 +01:00
|
|
|
# spec file
|
2019-04-01 11:28:24 +02:00
|
|
|
#
|
2023-09-13 20:12:55 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-04-01 11:28:24 +02: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "bootstrap"
|
|
|
|
%bcond_without bootstrap
|
|
|
|
%else
|
|
|
|
%bcond_with bootstrap
|
|
|
|
%endif
|
|
|
|
%global base_name maven-compiler-plugin
|
2023-09-13 20:12:55 +02:00
|
|
|
Version: 3.11.0
|
2019-04-01 11:28:24 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Maven Compiler Plugin
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2022-03-11 16:45:03 +01:00
|
|
|
URL: https://maven.apache.org/plugins/maven-compiler-plugin
|
|
|
|
Source0: https://dlcdn.apache.org/maven/plugins/%{base_name}-%{version}-source-release.zip
|
2019-04-01 11:28:24 +02:00
|
|
|
Source1: %{base_name}-build.xml
|
|
|
|
Patch0: %{base_name}-bootstrap-resources.patch
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: maven-lib
|
|
|
|
BuildRequires: maven-plugin-annotations
|
|
|
|
BuildRequires: maven-shared-incremental
|
|
|
|
BuildRequires: maven-shared-utils
|
2022-03-11 16:45:03 +01:00
|
|
|
BuildRequires: objectweb-asm
|
2019-04-01 11:28:24 +02:00
|
|
|
BuildRequires: plexus-compiler
|
|
|
|
BuildRequires: plexus-languages
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xmvn-install
|
|
|
|
BuildRequires: xmvn-resolve
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with bootstrap}
|
|
|
|
Name: %{base_name}-bootstrap
|
|
|
|
BuildRequires: ant
|
|
|
|
%else
|
|
|
|
Name: %{base_name}
|
2022-03-11 16:45:03 +01:00
|
|
|
BuildRequires: fdupes
|
2019-04-01 11:28:24 +02:00
|
|
|
BuildRequires: xmvn
|
2023-09-13 20:12:55 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
2019-04-01 11:28:24 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
2023-09-13 20:12:55 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:)
|
2019-04-01 11:28:24 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
2023-09-13 20:12:55 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-shared-incremental)
|
|
|
|
BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) >= 2.13
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-javac) >= 2.13
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-manager) >= 2.13
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-java)
|
2019-04-01 11:28:24 +02:00
|
|
|
Obsoletes: %{base_name}-bootstrap
|
2019-04-02 18:28:16 +02:00
|
|
|
#!BuildRequires: maven-compiler-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-jar-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-javadoc-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-plugin-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-resources-plugin-bootstrap
|
|
|
|
#!BuildRequires: maven-surefire-plugin-bootstrap
|
2019-04-01 11:28:24 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Compiler Plugin is used to compile the sources of your project.
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{base_name}-%{version}
|
|
|
|
%if %{with bootstrap}
|
|
|
|
cp %{SOURCE1} build.xml
|
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
|
|
|
|
2019-11-29 11:52:13 +01:00
|
|
|
%pom_remove_dep :::test
|
|
|
|
|
2023-09-13 20:12:55 +02:00
|
|
|
# There is nothing to index and this creates a cycle
|
|
|
|
%pom_remove_plugin org.eclipse.sisu:sisu-maven-plugin
|
|
|
|
|
2022-03-11 16:45:03 +01:00
|
|
|
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
|
|
|
|
|
2019-04-01 11:28:24 +02:00
|
|
|
%build
|
|
|
|
%if %{with bootstrap}
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib \
|
|
|
|
maven/maven-artifact \
|
|
|
|
maven/maven-core \
|
|
|
|
maven/maven-model \
|
|
|
|
maven/maven-plugin-api \
|
|
|
|
maven-plugin-tools/maven-plugin-annotations \
|
|
|
|
maven-shared-incremental/maven-shared-incremental \
|
|
|
|
maven-shared-utils/maven-shared-utils \
|
2022-03-11 16:45:03 +01:00
|
|
|
objectweb-asm/asm-all \
|
2019-04-01 11:28:24 +02:00
|
|
|
plexus-compiler/plexus-compiler-api \
|
|
|
|
plexus-compiler/plexus-compiler-javac \
|
|
|
|
plexus-compiler/plexus-compiler-manager \
|
|
|
|
plexus-languages/plexus-java
|
|
|
|
%{ant} -Dtest.skip=true jar
|
|
|
|
%else
|
|
|
|
xmvn --batch-mode --offline \
|
2019-11-22 16:33:24 +01:00
|
|
|
-Dmaven.test.skip=true \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2023-09-13 20:12:55 +02:00
|
|
|
-Dmaven.compiler.release=8 \
|
2019-11-22 16:33:24 +01:00
|
|
|
%endif
|
2019-11-22 01:15:03 +01:00
|
|
|
package org.apache.maven.plugins:maven-javadoc-plugin:aggregate
|
2019-04-01 11:28:24 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%{mvn_artifact} pom.xml target/%{base_name}-%{version}.jar
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
2022-03-11 16:45:03 +01:00
|
|
|
%if %{without bootstrap}
|
2019-04-01 11:28:24 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2022-03-11 16:45:03 +01:00
|
|
|
%endif
|
2019-04-01 11:28:24 +02:00
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
|
2019-11-22 01:15:03 +01:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
%endif
|
2019-04-01 11:28:24 +02:00
|
|
|
|
|
|
|
%changelog
|