Temporarily disable javadoc generation

Resolves: rhbz#1976997
This commit is contained in:
Mikolaj Izdebski 2021-06-28 11:30:36 +02:00
parent 8a3c768678
commit 60d40351dd
1 changed files with 18 additions and 27 deletions

View File

@ -1,25 +1,19 @@
%global srcname jaf
Name: jakarta-activation Name: jakarta-activation
Version: 1.2.2 Version: 1.2.2
Release: 3%{?dist} Release: 4%{?dist}
Summary: Jakarta Activation Specification and Implementation Summary: Jakarta Activation Specification and Implementation
License: BSD License: BSD
URL: https://eclipse-ee4j.github.io/jaf/ URL: https://eclipse-ee4j.github.io/jaf/
Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}/jaf-%{version}.tar.gz
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
Provides: jaf = %{version}-%{release}
Obsoletes: jaf < 1.2.1-5
%description %description
Jakarta Activation lets you take advantage of standard services to: Jakarta Activation lets you take advantage of standard services to:
@ -27,53 +21,50 @@ determine the type of an arbitrary piece of data; encapsulate access to
it; discover the operations available on it; and instantiate the it; discover the operations available on it; and instantiate the
appropriate bean to perform the operation(s). appropriate bean to perform the operation(s).
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
%description javadoc %description javadoc
This package contains javadoc for %{name}. This package contains javadoc for %{name}.
%prep %prep
%setup -q -n %{srcname}-%{version} %setup -q -n jaf-%{version}
# remove unnecessary dependency on "org.eclipse.ee4j:project" (not packaged)
%pom_remove_parent %pom_remove_parent
%pom_disable_module demo
# remove unnecessary maven plugins
%pom_remove_plugin :build-helper-maven-plugin
%pom_remove_plugin :directory-maven-plugin %pom_remove_plugin :directory-maven-plugin
%pom_remove_plugin :osgiversion-maven-plugin sed -i 's/${main.basedir}/${basedir}/' pom.xml
# remove custom doclet configuration # remove custom doclet configuration
%pom_remove_plugin :maven-javadoc-plugin activation %pom_remove_plugin :maven-javadoc-plugin activation
# disable demo submodule
%pom_disable_module demo
# set bundle version manually instead of with osgiversion-maven-plugin # set bundle version manually instead of with osgiversion-maven-plugin
# (the plugin is only used to strip off -SNAPSHOT or -Mx qualifiers) # (the plugin is only used to strip off -SNAPSHOT or -Mx qualifiers)
%pom_remove_plugin :osgiversion-maven-plugin
sed -i "s/\${activation.osgiversion}/%{version}/g" activation/pom.xml sed -i "s/\${activation.osgiversion}/%{version}/g" activation/pom.xml
%build %build
%mvn_build # javadoc temporairly disabled due to https://github.com/fedora-java/xmvn/issues/58
%mvn_build -j
%install %install
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%license LICENSE.md NOTICE.md
%doc README.md %doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md %license LICENSE.md NOTICE.md
# javadoc temporairly disabled due to https://github.com/fedora-java/xmvn/issues/58
#%files javadoc -f .mfiles-javadoc
%files javadoc
%license LICENSE.md NOTICE.md
%changelog %changelog
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.2-4
- Temporarily disable javadoc generation
- Resolves: rhbz#1976997
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.2-3 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.2-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937