Use javadoc_package macro

This commit is contained in:
Mikolaj Izdebski 2019-06-28 11:15:58 +02:00
parent e290714dbf
commit c2fba0c2cf

View File

@ -20,16 +20,12 @@ Source1: NOTICE-CC-BY.txt
BuildRequires: maven-local BuildRequires: maven-local
%package javadoc
Summary: Javadoc documentation for %{name}
%description %description
This package contains reference implementations, test cases, and other This package contains reference implementations, test cases, and other
documents for Java Specification Request 305: Annotations for Software Defect documents for Java Specification Request 305: Annotations for Software Defect
Detection. Detection.
%description javadoc %{?javadoc_package}
This package contains the API documentation for %{name}.
%prep %prep
%setup -q -n %{name} %setup -q -n %{name}
@ -49,10 +45,8 @@ cp %{SOURCE1} NOTICE-CC-BY
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%doc ri/LICENSE NOTICE-CC-BY sampleUses %license ri/LICENSE NOTICE-CC-BY
%doc sampleUses
%files javadoc -f .mfiles-javadoc
%doc ri/LICENSE NOTICE-CC-BY
%changelog %changelog
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.23.20130910svn * Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.23.20130910svn