public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-cmake] epel10: Add --with preview
@ 2026-06-09 22:56 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-09 22:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocm-cmake
Branch : epel10
Commit : 9fd25fd576c0ef5dc74a4f9dced944d096799d76
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-03-06T05:46:22-08:00
Stats : +23/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rocm-cmake/c/9fd25fd576c0ef5dc74a4f9dced944d096799d76?branch=epel10
Log:
Add --with preview
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/rocm-cmake.spec b/rocm-cmake.spec
index a113a0c..a54b0d2 100644
--- a/rocm-cmake.spec
+++ b/rocm-cmake.spec
@@ -20,11 +20,17 @@
# THE SOFTWARE.
#
-# there is no debug package - this is just cmake modules
-%global debug_package %{nil}
-
+%bcond_with preview
+%if %{with preview}
+%global rocm_release 7.11
+%global rocm_patch 0
+%global pkg_src therock-%{rocm_release}
+%else
%global rocm_release 7.2
%global rocm_patch 0
+%global pkg_src rocm-%{rocm_release}.%{rocm_patch}
+%endif
+
%global rocm_version %{rocm_release}.%{rocm_patch}
%bcond_with compat
@@ -38,13 +44,20 @@
%endif
%global pkg_name rocm-cmake%{pkg_suffix}
+# there is no debug package - this is just cmake modules
+%global debug_package %{nil}
+
Name: %{pkg_name}
Version: %{rocm_version}
-Release: 2%{?dist}
+%if %{with preview}
+Release: 0%{?dist}
+%else
+Release: 3%{?dist}
+%endif
Summary: CMake modules for common build and development tasks for ROCm
License: MIT
URL: https://github.com/ROCm/rocm-cmake
-Source: %{url}/archive/rocm-%{version}.tar.gz#/rocm-cmake-rocm-%{version}.tar.gz
+Source: %{url}/archive/%{pkg_src}.tar.gz#/rocm-cmake-rocm-%{version}.tar.gz
# https://github.com/ROCm/rocm-cmake/issues/276
Patch0: 0001-rocm-cmake-follow-cmake-install-rules.patch
@@ -64,7 +77,7 @@ rocm-cmake is not required for building libraries or programs that use ROCm; it
is required for building some of the libraries that are a part of ROCm.
%prep
-%autosetup -p1 -n rocm-cmake-rocm-%{version}
+%autosetup -p1 -n rocm-cmake-%{pkg_src}
# Another hardcoding of the libdir
sed -i -e 's@set(CMAKE_INSTALL_LIBDIR@#set(CMAKE_INSTALL_LIBDIR@' share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake
@@ -88,7 +101,10 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocm-cmake/LICENSE
%{pkg_prefix}/share/rocmcmakebuildtools/
%changelog
-* Thu Feb 12 2026 Tom Rix <Tom>Rix@amd.com> - 7.2.0-2
+* Thu Mar 5 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Add --with preview
+
+* Thu Feb 12 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
- Fix changelog
* Sat Jan 24 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 22:56 [rpms/rocm-cmake] epel10: Add --with preview Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox