public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocalution] rawhide: Add --with preview
@ 2026-08-06 12:08 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-08-06 12:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocalution
Branch : rawhide
Commit : e98c048c4aed1b6480b4064c1ed6aa16ab5c13d7
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-08-06T05:06:20-07:00
Stats : +28/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rocalution/c/e98c048c4aed1b6480b4064c1ed6aa16ab5c13d7?branch=rawhide
Log:
Add --with preview
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/rocalution.spec b/rocalution.spec
index 49f8fc5..d3c3bd3 100644
--- a/rocalution.spec
+++ b/rocalution.spec
@@ -19,13 +19,23 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
-%global upstreamname rocALUTION
%global pkg_library_name rocalution
%global pkg_library_version 1
+%bcond_with preview
+%if %{with preview}
+%global upstreamname rocalution
+%global rocm_release 7.14
+%global rocm_patch 0
+%global pkg_src therock-%{rocm_release}
+%else
+%global upstreamname rocALUTION
%global rocm_release 7.2
%global rocm_patch 0
+%global pkg_src rocm-%{rocm_version}
+%endif
+
%global rocm_version %{rocm_release}.%{rocm_patch}
%bcond_with compat
@@ -89,12 +99,22 @@
Name: rocalution%{pkg_suffix}
Version: %{rocm_version}
-Release: 5%{?dist}
+%if %{with preview}
+Release: 0%{?dist}
+%else
+Release: 6%{?dist}
+%endif
+
Summary: Next generation library for iterative sparse solvers for ROCm platform
-Url: https://github.com/ROCm/%{upstreamname}
License: MIT
+%if %{with preview}
+URL: https://github.com/ROCm/rocm-libraries
+Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+%else
+Url: https://github.com/ROCm/%{upstreamname}
Source0: %{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+%endif
BuildRequires: chrpath
BuildRequires: cmake
@@ -184,7 +204,11 @@ Requires: rocm-filesystem%{pkg_suffix}
%endif
%prep
-%autosetup -p1 -n %{upstreamname}-rocm-%{version}
+%if %{with preview}
+%autosetup -p3 -n %{upstreamname}
+%else
+%autosetup -p1 -n %{upstreamname}-%{pkg_src}
+%endif
%if 0%{?suse_version}
# On TW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-06 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 12:08 [rpms/rocalution] rawhide: 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