%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.0 Release: 3 License: Apache License v2.0 URL: http://spark.apache.org/ Source0: https://github.com/apache/spark/archive/v%{version}.tar.gz Source1: settings.xml Patch0001: 0001-modify-maven-version-for-3.6.3-to-3.5.4.patch Patch0002: backport-CVE-2024-23945.patch 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 %patch0002 -p1 %build cp %{SOURCE1} ./settings.xml mvn -DskipTests -Dmaven.test.skip=true clean package -s settings.xml %install mkdir -p %{buildroot}/opt/ cp -rf ../%{name}-%{version} %{buildroot}/opt/apache-%{name}-%{version} %files /opt/apache-%{name}-%{version} %changelog * Thu Dec 26 2024 changtao - 3.2.0-3 - Type: CVE - CVE: CVE-2024-23945 - SUG: NA - DESC: fix CVE-2024-23945 * Fri Mar 25 2022 xiexing - 3.2.0-2 - fix install problem * Tue Mar 15 2022 houyingchao - 3.2.0-1 - Upgrade to 3.2.0 version - Fix CVE-2021-38296 * Fri Feb 25 2022 wangkai - 3.0.1-2.0 - Rebuild for fix log4j1.x cves * Fri Sep 18 2020 Hubble_Zhu - 1.0 - Init package