public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hipfort] rawhide: Fix check
@ 2026-07-15 14:15 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-07-15 14:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hipfort
Branch : rawhide
Commit : 16f18f1eb2e84d107229038be6ee7f95838fcbce
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-07-15T07:14:37-07:00
Stats : +12/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hipfort/c/16f18f1eb2e84d107229038be6ee7f95838fcbce?branch=rawhide
Log:
Fix check
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/hipfort.spec b/hipfort.spec
index b5d11c0..bba0fc4 100644
--- a/hipfort.spec
+++ b/hipfort.spec
@@ -46,10 +46,15 @@
# Needs ROCm HW so is only suitable for local testing
%bcond_with check
+%if %{with check}
+%global build_test ON
+%else
+%global build_test OFF
+%endif
Name: hipfort%{pkg_suffix}
Version: %{rocm_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Fortran interfaces for ROCm libraries
Url: https://github.com/ROCm/%{upstreamname}
@@ -116,24 +121,15 @@ sed -i 's@cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR@cmake_minimum_requir
-DROCM_SYMLINK_LIBS=OFF \
-DHIP_PLATFORM=amd \
-DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=%{build_test} \
-DCMAKE_BUILD_TYPE=%{build_type}
%cmake_build
-# Assume you _just_ installed hipfort-devel as the tests assume hipfc is in the PATH
%if %{with check}
%check
-# Mixing rpm gfortran security flags with hipcc does not work
-# Override the normal rpm flags
-export CFLAGS=""
-export CXXFLAGS=""
-export FFLAGS=""
-export FCFLAGS=""
-export LDFLAGS=""
-# hipfc needs these set to find things
-export HIPFORT="%{pkg_prefix}"
-export ROCM_PATH="%{pkg_prefix}"
-%cmake_build -t all-tests-run
+export LD_LIBRARY_PATH=${PWD}/%{_vpath_builddir}/lib:$LD_LIBRARY_PATH
+%ctest -j1
%endif
%install
@@ -162,6 +158,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hipfort/LICENSE
%{pkg_prefix}/%{pkg_libdir}/cmake/hipfort/
%changelog
+* Wed Jul 15 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Fix check
+
* Fri Feb 20 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
- Fix so version
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-15 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15 14:15 [rpms/hipfort] rawhide: Fix check Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox