4 Commits

2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed May 7 12:24:43 UTC 2025 - Simon Lees <sflees@suse.de>
- export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes
minimum version warnings
-------------------------------------------------------------------
Mon Oct 28 13:09:49 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Remove bogus dependencies
-------------------------------------------------------------------
Wed Feb 21 16:21:26 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xgboost
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,18 +32,15 @@ Patch0: xgboost-fix-big-endian.patch
Patch1: no-hadoop.patch
Patch2: xgboost-2.0.0-python34.patch
Patch3: xgboost-2.0.0-cmake.patch
BuildRequires: akka
BuildRequires: ant
BuildRequires: apache-commons-logging
BuildRequires: cmake >= 3.5
BuildRequires: fdupes
BuildRequires: javapackages-local >= 6
BuildRequires: kryo
BuildRequires: objenesis
BuildRequires: python3
BuildRequires: scala
BuildRequires: scala-ant
BuildRequires: typesafe-config
%if 0%{?suse_version} <= 1500
BuildRequires: gcc8-c++ >= 8.1
%else
@@ -76,6 +73,9 @@ cp %{SOURCE1} jvm-packages/%{artifactId}/build.xml
%pom_remove_dep ":scala-collection-compat_\${scala.binary.version}" jvm-packages/%{artifactId}
%build
# Remove cmake4 error due to not setting
# min cmake version - sflees.de
export CMAKE_POLICY_VERSION_MINIMUM=3.5
pushd jvm-packages
%if 0%{?suse_version} <= 1500
export CC=gcc-8
@@ -87,7 +87,7 @@ python3 create_jni.py
popd
pushd jvm-packages/%{artifactId}
mkdir -p lib
build-jar-repository -s lib akka kryo commons-logging scala typesafe-config objenesis/objenesis
build-jar-repository -s lib kryo commons-logging scala
%{ant} jar javadoc
popd