spark/spark.spec

49 lines
1.2 KiB
RPMSpec
Raw Normal View History

2020-09-30 10:18:19 +08:00
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
2020-10-09 14:09:02 +08:00
%global debug_package %{nil}
Summary: A unified analytics engine for large-scale data processing.
Name: spark
2021-11-27 10:30:39 +08:00
Version: 3.2.0
Release: 1.2
License: Apache License v2.0
URL: http://spark.apache.org/
Source0: https://github.com/apache/spark/archive/v%{version}.tar.gz
2021-11-27 10:30:39 +08:00
Source1: settings.xml
Patch0001: 0001-modify-maven-version-for-3.6.3-to-3.5.4.patch
2020-09-30 10:18:19 +08:00
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: maven
Requires: java-1.8.0-openjdk
ExclusiveArch: x86_64 aarch64
%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
2021-11-27 10:36:52 +08:00
cp %{SOURCE1} ./settings.xml
2021-11-27 10:30:39 +08:00
mvn -DskipTests clean package -s settings.xml
%install
2020-09-30 10:18:19 +08:00
mkdir -p %{buildroot}/opt/
cp -rf ../%{name}-%{version} %{buildroot}/opt/apache-%{name}-%{version}
2020-09-30 10:18:19 +08:00
%files
/opt/apache-%{name}-%{version}
%changelog
2021-11-27 10:30:39 +08:00
* 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