61 lines
1.4 KiB
RPMSpec
61 lines
1.4 KiB
RPMSpec
Name: ovirt-engine-extensions-api
|
|
Version: 1.0.1
|
|
Release: 1
|
|
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)
|
|
|
|
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
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin 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
|
|
* Tue Jul 6 2021 kymayl<mayilin@kylinos.cn> - 1.0.1-1
|
|
- Package init
|