!1 Package init

From: @kymayl
Reviewed-by: @crrs666
Signed-off-by: @crrs666
This commit is contained in:
openeuler-ci-bot 2021-07-06 07:47:01 +00:00 committed by Gitee
commit 0edc4440d1
2 changed files with 60 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,60 @@
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