代码拉取完成,页面将自动刷新
%global tar_version 4.4.6
Name: java-ovirt-engine-sdk4
Version: 4.4.6
Release: 1
Summary: Java SDK for version 4 of the oVirt Engine API
Group: Development/Languages
License: ASL 2.0
URL: http://ovirt.org/wiki/SDK
# This should be a tar file containing the generated source code of the
# SDK, as we can't build and run the generator with the packages
# available in the distribution:
Source0: https://resources.ovirt.org/pub/ovirt-4.4/src/java-ovirt-engine-sdk4/ovirt-engine-sdk-java-%{tar_version}.tar.gz
# This file is used to perform the build using Ant, because the upstream
# project has build dependencies that make it impossible to build it
# with the packages available in the distribution:
Source1: build.xml
# This file is used to transform the upstream 'pom.xml' file into a
# 'pom-nodeps.xml' file that doesn't have the dependencies of the
# code generator, as those aren't available in the distribution:
Source2: transform-pom.xsl
BuildArch: noarch
BuildRequires: ant
BuildRequires: javapackages-local
BuildRequires: zlib >= 1.2.11
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(org.slf4j:slf4j-api)
%description
This package contains the Java SDK for version 4 of the oVirt Engine
API.
%prep
# Extract the source:
%setup -q -n ovirt-engine-sdk-java-%{tar_version}
%build
# Copy the files required for the Ant build to the extracted SDK
# directory:
cp %{SOURCE1} %{SOURCE2} .
# Populate the lib directory with symlinks to the required dependencies that
# will be used to create the compiler classpath:
mkdir lib
while read jar
do
ln -s %{_javadir}/${jar}.jar lib
done << __EOF__
httpcomponents/httpclient
httpcomponents/httpcore
jackson/jackson-databind
jackson/jackson-core
jackson/jackson-annotations
slf4j/api
__EOF__
# Perform build using Ant:
java -jar %{_javadir}/ant-launcher.jar -f build.xml
%install
# Install the POM without dependencies created during the build process
# and the .jar file:
%mvn_artifact pom-nodeps.xml target/%{name}.jar
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%{name}
%doc README.adoc
%license LICENSE.txt
%changelog
* Mon Jan 29 2024 woody2918 <wudi1@uniontech.com> - 4.4.6-1
- Update version to 4.4.6
* Fri Apr 1 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.4.5-2
- Adding buildRequires
* Thu Jul 01 2021 wangdi <wangdi@kylinos.cn> - 4.4.5-1
- Init pacakage for version 4.4.5
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。