spark/spark.spec
2024-03-12 14:51:14 +08:00

53 lines
1.3 KiB
RPMSpec

%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%global debug_package %{nil}
Summary: A unified analytics engine for large-scale data processing.
Name: spark
Version: 3.2.2
Release: 2
License: Apache 2.0
URL: http://spark.apache.org/
Source0: https://github.com/apache/spark/archive/v%{version}.tar.gz
Patch0001: 0001-change-mvn-scalafmt.patch
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: maven
Requires: java-1.8.0-openjdk
ExclusiveArch: x86_64 aarch64 ppc64le
%description
Apache Spark achieves high performance for both batch and streaming data, using a state-of-the-art DAG scheduler, a query optimizer, and a physical execution engine.
%prep
%setup -q
%patch0001 -p1
%build
mvn -DskipTests -Dmaven.test.skip=true clean package
%install
mkdir -p %{buildroot}/opt/
cp -rf ../%{name}-%{version} %{buildroot}/opt/apache-%{name}-%{version}
%files
/opt/apache-%{name}-%{version}
%changelog
* Tue Mar 12 2024 peng.zou <peng.zou@shingroup.cn> - 3.2.2-2
- add ppc64le support
* Wed Aug 10 2022 xiexing <xiexing4@hisilicon.com> - 3.2.2-1
- update spark version
* Fri Nov 12 2021 Wuzeyiii<wuzeyi1@huawei.com> - 1.2
- Update spark version
* Fri Sep 18 2020 Hubble_Zhu<hubble_zhu@qq.com> - 1.0
- Init package