3 Star 0 Fork 2

src-openEuler/mahout

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

搜索帮助