Name: ovirt-engine-extensions-api Version: 1.0.2 Release: 0.49.202207080918%{?dist} Summary: oVirt engine extensions API Group: %{ovirt_product_group} License: ASL 2.0 URL: http://www.ovirt.org Source0: %{name}-%{version}.tar.gz # We need to disable automatic generation of "Requires: java-headless >= 1:11" # by xmvn, becase JDK 11 doesn't provide java-headless artifact, but it # provides java-11-headless. AutoReq: no BuildArch: noarch BuildRequires: java-11-openjdk-devel BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) # Required because of old xmvn version in COPR BuildRequires: maven # On EL8 maven-javadoc-plugin has been merged into xmvn, but on Fedora # we still need to require it %if 0%{?fedora} >= 30 BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) %endif Requires: java-11-openjdk-headless >= 1:11.0.0 Requires: javapackages-filesystem Obsoletes: ovirt-engine-extensions-api-impl %description %{name} provides classes that define API for oVirt engine extensions %package javadoc Summary: oVirt engine extensions API documentation Group: %{ovirt_product_group} %description javadoc oVirt engine extensions API documentation %prep %setup -c -q # On EL8 maven-javadoc-plugin has been merged into xmvn, so we need to remove # reference to it from pom.xml %if 0%{?rhel} >= 8 %pom_remove_plugin :maven-javadoc-plugin pom.xml %endif # maven-release-plugin is not used during package build, so we can remove it # from pom.xml %pom_remove_plugin :maven-release-plugin pom.xml %build # Necessary to override the default for xmvn, which is JDK 8 export JAVA_HOME="/usr/lib/jvm/java-11-openjdk" %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE %dir %{_javadir}/%{name} %files javadoc -f .mfiles-javadoc %changelog * Thu Feb 13 2020 Martin Perina 1.0.1-1 - Fix RPM packaging issues * Mon Feb 10 2020 Martin Perina 1.0.0-1 - Extracted from ovirt-engine into standalone project - Bump requirements to JDK 11