代码拉取完成,页面将自动刷新
%define _jar_repack %{nil}
%define user iceberg
%define _define _jar_repack %{nil}
%define debug_package %{nil}
Name: iceberg
Version: 1.4.0
Release: 1
Summary: Apache Iceberg is a new table format for storing large,slow-moving tabular data.
License: Apache-2.0
URL: https://iceberg.apache.org
Source0: http://github.com/apache/iceberg/archive/refs/tags/apache-iceberg-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/gradle/gradle/v8.1.1/gradle/wrapper/gradle-wrapper.jar
#Source2: https://services.gradle.org/distributions/gradle-8.1.1-bin.zip
Source3: version.txt
Patch01: 0001-gradle-wrapper-to-local-source.patch
BuildRequires: java-1.8.0-openjdk-devel maven git
Requires: java-1.8.0-openjdk
%description
Apache Iceberg is a new table format for storing large,slow-moving tabular data.It is designed to improve on the de-facto standard table layout built into Hive,Trino,and Spark.
%prep
%autosetup -p1 -n iceberg-apache-iceberg-%{version}
cp -r %{SOURCE1} ./gradle/wrapper
#cp -r %{SOURCE2} ./gradle/wrapper
cp -r %{SOURCE3} ./
%build
#./gradlew build -x test -x integrationTest -x javadoc --info
./gradlew build -x test -x integrationTest --info
#dev/stage-binaries.sh
%install
mkdir -p $RPM_BUILD_ROOT/opt/iceberg
cd $RPM_BUILD_ROOT/opt/iceberg
mkdir aliyun api arrow aws bundled-guava common core data flink gcp hive mr nessie orc parquet pig spark
mkdir -p flink/flink
mkdir -p flink/flink-runtime
mkdir -p hive/hive-metastore
mkdir -p hive/hive-runtime
mkdir -p spark/spark-extensions
mkdir -p spark/spark
mkdir -p spark/spark-runtime
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/aliyun/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/aliyun
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/api/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/api
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/arrow/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/arrow
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/aws/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/aws
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/bundled-guava/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/bundled-guava
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/common/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/common
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/core/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/core
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/data/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/data
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/flink/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/flink
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/flink/v1.17/flink-runtime/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/flink/flink-runtime
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/flink/v1.17/flink/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/flink/flink
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/gcp/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/gcp
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/hive-metastore/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/hive/hive-metastore
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/hive-runtime/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/hive/hive-runtime
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/mr/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/mr
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/nessie/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/nessie
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/orc/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/orc
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/parquet/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/parquet
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/pig/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/pig
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/spark/v3.5/spark-extensions/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/spark/spark-extensions
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/spark/v3.5/spark-runtime/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/spark/spark-runtime
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/spark/v3.5/spark/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/spark/spark
cp -r %{_builddir}/%{name}-apache-%{name}-%{version}/spark/build/libs/* $RPM_BUILD_ROOT/opt/iceberg/spark
%files
/opt/iceberg
%changelog
* Mon Oct 9 2023 xiexing <xiexing4@hisilicon.com> - 1.4.0-1
- update version to 1.4.0
* Thu Jun 8 2022 xiexing <xiexing4@hisilicon.com> - 0.13.0-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。