Use javadoc_package macro

This commit is contained in:
Mikolaj Izdebski 2019-06-28 11:19:00 +02:00
parent 2a3af29787
commit 1a3c171dc4

View File

@ -30,11 +30,7 @@ loading of components or otherwise represent a 'container'
can benefit from the classloading control provided by
classworlds.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
API documentation for %{name}.
%{?javadoc_package}
%prep
%setup -q -n %{name}-%{name}-%{version}
@ -48,10 +44,7 @@ API documentation for %{name}.
%mvn_install
%files -f .mfiles
%doc LICENSE.txt LICENSE-2.0.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt LICENSE-2.0.txt
%license LICENSE.txt LICENSE-2.0.txt
%changelog
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.6.0-2