2019-04-01 13:50:58 +02:00
|
|
|
#
|
2022-03-10 14:32:40 +01:00
|
|
|
# spec file
|
2019-04-01 13:50:58 +02:00
|
|
|
#
|
2022-03-10 14:32:40 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-04-01 13:50:58 +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-javadoc-plugin
|
2022-03-10 17:02:19 +01:00
|
|
|
Version: 3.3.2
|
2019-04-01 13:50:58 +02:00
|
|
|
Release: 0
|
2019-04-07 08:40:05 +02:00
|
|
|
Summary: Maven plugin for creating javadocs
|
2019-04-01 13:50:58 +02:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: http://maven.apache.org/plugins/maven-javadoc-plugin
|
|
|
|
Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{base_name}/%{version}/%{base_name}-%{version}-source-release.zip
|
|
|
|
Source1: %{base_name}-build.xml
|
|
|
|
Patch0: %{base_name}-bootstrap-resources.patch
|
|
|
|
BuildRequires: apache-commons-cli
|
|
|
|
BuildRequires: apache-commons-io
|
|
|
|
BuildRequires: apache-commons-lang3
|
2022-03-10 14:32:40 +01:00
|
|
|
BuildRequires: apache-commons-text
|
2019-04-01 13:50:58 +02:00
|
|
|
BuildRequires: atinject
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: google-guice
|
2021-05-11 17:25:35 +02:00
|
|
|
BuildRequires: guava
|
2019-04-01 13:50:58 +02:00
|
|
|
BuildRequires: httpcomponents-client
|
|
|
|
BuildRequires: httpcomponents-core
|
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildRequires: jdom2
|
|
|
|
BuildRequires: maven-archiver
|
|
|
|
BuildRequires: maven-artifact-transfer
|
|
|
|
BuildRequires: maven-common-artifact-filters
|
|
|
|
BuildRequires: maven-doxia-core
|
|
|
|
BuildRequires: maven-doxia-logging-api
|
|
|
|
BuildRequires: maven-doxia-module-xhtml
|
|
|
|
BuildRequires: maven-doxia-sink-api
|
|
|
|
BuildRequires: maven-doxia-sitetools
|
|
|
|
BuildRequires: maven-invoker
|
|
|
|
BuildRequires: maven-lib
|
|
|
|
BuildRequires: maven-plugin-annotations
|
2022-03-10 17:02:19 +01:00
|
|
|
BuildRequires: maven-reporting-api >= 3.1.0
|
2019-11-21 17:37:49 +01:00
|
|
|
BuildRequires: maven-shared-utils
|
2019-04-01 13:50:58 +02:00
|
|
|
BuildRequires: maven-wagon-provider-api
|
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
BuildRequires: plexus-archiver
|
|
|
|
BuildRequires: plexus-classworlds
|
|
|
|
BuildRequires: plexus-cli
|
|
|
|
BuildRequires: plexus-containers-component-annotations
|
|
|
|
BuildRequires: plexus-interactivity-api
|
|
|
|
BuildRequires: plexus-io
|
|
|
|
BuildRequires: plexus-languages
|
|
|
|
BuildRequires: plexus-utils
|
|
|
|
BuildRequires: qdox
|
|
|
|
BuildRequires: sisu-inject
|
|
|
|
BuildRequires: sisu-plexus
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: xbean
|
|
|
|
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
|
|
|
|
BuildRequires: modello
|
|
|
|
BuildRequires: plexus-metadata-generator
|
|
|
|
%else
|
|
|
|
Name: %{base_name}
|
|
|
|
BuildRequires: xmvn
|
|
|
|
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)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-resources-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
|
|
|
Obsoletes: %{base_name}-bootstrap
|
2019-04-03 11:26:49 +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 13:50:58 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Maven Javadoc Plugin is a plugin that uses the javadoc tool for
|
|
|
|
generating javadocs for the specified 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-21 21:13:47 +01:00
|
|
|
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
|
2019-04-01 13:50:58 +02:00
|
|
|
%pom_remove_dep :::test:
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{with bootstrap}
|
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s lib \
|
|
|
|
apache-commons-lang3 \
|
2022-03-10 14:32:40 +01:00
|
|
|
apache-commons-text \
|
2019-04-01 13:50:58 +02:00
|
|
|
atinject \
|
|
|
|
commons-cli \
|
|
|
|
commons-io \
|
2021-05-11 17:25:35 +02:00
|
|
|
guava/guava \
|
2019-04-01 13:50:58 +02:00
|
|
|
guice/google-guice-no_aop \
|
|
|
|
httpcomponents/httpclient \
|
|
|
|
httpcomponents/httpcore \
|
|
|
|
jdom2/jdom2 \
|
|
|
|
maven-archiver/maven-archiver \
|
|
|
|
maven-artifact-transfer/maven-artifact-transfer \
|
|
|
|
maven-common-artifact-filters/maven-common-artifact-filters \
|
|
|
|
maven-doxia/doxia-core \
|
|
|
|
maven-doxia/doxia-logging-api \
|
|
|
|
maven-doxia/doxia-module-xhtml \
|
2020-03-10 13:46:47 +01:00
|
|
|
maven-doxia/doxia-module-xhtml5 \
|
2019-04-01 13:50:58 +02:00
|
|
|
maven-doxia/doxia-sink-api \
|
|
|
|
maven-doxia-sitetools/doxia-site-renderer \
|
|
|
|
maven-invoker/maven-invoker \
|
|
|
|
maven/maven-artifact \
|
|
|
|
maven/maven-core \
|
|
|
|
maven/maven-model \
|
|
|
|
maven/maven-model-builder \
|
|
|
|
maven/maven-plugin-api \
|
|
|
|
maven/maven-settings \
|
|
|
|
maven-plugin-tools/maven-plugin-annotations \
|
|
|
|
maven-reporting-api/maven-reporting-api \
|
2019-11-21 17:37:49 +01:00
|
|
|
maven-shared-utils/maven-shared-utils \
|
2019-04-01 13:50:58 +02:00
|
|
|
maven-wagon/provider-api \
|
|
|
|
objectweb-asm/asm \
|
|
|
|
org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
|
|
|
plexus/archiver \
|
|
|
|
plexus-classworlds \
|
|
|
|
plexus/cli \
|
|
|
|
plexus-containers/plexus-component-annotations \
|
|
|
|
plexus/interactivity-api \
|
|
|
|
plexus/io \
|
|
|
|
plexus-languages/plexus-java \
|
|
|
|
plexus-metadata-generator \
|
|
|
|
plexus/utils \
|
|
|
|
qdox \
|
|
|
|
xbean/xbean-reflect
|
|
|
|
%{ant} -Dtest.skip=true jar
|
|
|
|
%else
|
|
|
|
xmvn --batch-mode --offline \
|
2019-11-22 16:44:13 +01:00
|
|
|
-Dmaven.test.skip=true -DmavenVersion=3.5.0 \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
2022-03-10 14:32:40 +01:00
|
|
|
-Dmaven.compiler.release=8 \
|
2019-11-22 16:44:13 +01:00
|
|
|
%endif
|
2019-11-22 01:19:51 +01:00
|
|
|
package org.apache.maven.plugins:maven-javadoc-plugin:aggregate
|
2019-04-01 13:50:58 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%{mvn_artifact} pom.xml target/%{base_name}-%{version}.jar
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE
|
|
|
|
%doc NOTICE
|
|
|
|
|
2019-11-22 01:19:51 +01:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license LICENSE
|
|
|
|
%doc NOTICE
|
|
|
|
%endif
|
2019-04-01 13:50:58 +02:00
|
|
|
|
|
|
|
%changelog
|