Use javadoc_package macro

This commit is contained in:
Mikolaj Izdebski 2019-06-28 11:36:23 +02:00
parent 82fea3a572
commit 372139ac20

View File

@ -1,7 +1,3 @@
%global namedreltag .NOTHING
%global namedversion %{version}%{?namedreltag}
Name: cdi-api
Version: 1.2
Release: 9%{?dist}
@ -26,11 +22,7 @@ BuildRequires: mvn(org.testng:testng::jdk15:)
%description
APIs for JSR-299: Contexts and Dependency Injection for Java EE
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%{?javadoc_package}
%prep
%setup -q -n cdi-%{version}
@ -60,10 +52,6 @@ cd api
%license spec/src/main/doc/license-asl2.%{adoc}
%license spec/src/main/doc/license-jcp.%{adoc}
%files javadoc -f api/.mfiles-javadoc
%license spec/src/main/doc/license-asl2.%{adoc}
%license spec/src/main/doc/license-jcp.%{adoc}
%changelog
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-9
- Mass rebuild for javapackages-tools 201901