代码拉取完成,页面将自动刷新
%define _jar_repack %{nil}
%define user mahout
%define _define _jar_repack %{nil}
%define debug_package %{nil}
Name: mahout
Version: 14.1
Release: 1
Summary: The goal of the Apache Mahout™ project is to build an environment for quickly creating scalable, performant machine learning applications.
License: Apache License v2.0
URL: https://mahout.apache.org
Source0: https://github.com/apache/mahout/archive/refs/tags/%{name}-%{version}.tar.gz
#Source1: settings.xml
BuildRequires: java-1.8.0-openjdk-devel maven
Requires: java-1.8.0-openjdk
%description
The goal of the Apache Mahout™ project is to build an environment for quickly creating scalable, performant machine learning applications.
%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
#cp %{SOURCE1} ./
%build
mvn clean install -DskipTests -Dcheckstyle.skip -Drat.skip=true
%install
mkdir -p $RPM_BUILD_ROOT/opt/mahout
cp -r ./engine/spark/target/mahout-spark-14.1-test_scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./engine/spark/target/apache-mahout-14.1-dependency-reduced.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./engine/spark/target/mahout-spark-14.1-scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./engine/hdfs/target/mahout-hdfs-14.1.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./engine/hdfs/target/mahout-hdfs-14.1-tests.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./distribution/target/apache-mahout-14.1/lib/mahout-spark-14.1-dependency-reduced.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./distribution/target/apache-mahout-14.1/lib/mahout-hdfs-14.1.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./distribution/target/apache-mahout-14.1/lib/mahout-core-14.1-scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./distribution/target/apache-mahout-14.1/lib/mahout-spark-14.1-scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./core/target/mahout-core-14.1-scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
cp -r ./core/target/mahout-core-14.1-test_scala_2.11.jar $RPM_BUILD_ROOT/opt/mahout
%files
#%doc
/opt/mahout
%changelog
* Thu Mar 17 2022 xiexing <xiexing4@hisilicon.com> - 14.1-1
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。