3 Star 0 Fork 1

src-openEuler/iceberg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iceberg.spec 4.33 KB
一键复制 编辑 原始数据 按行查看 历史
xiexing 提交于 2023-10-09 06:42 . update version to 1.4.0
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/iceberg.git
git@gitee.com:src-openeuler/iceberg.git
src-openeuler
iceberg
iceberg
master

搜索帮助