public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rocclr] epel10: Add --with preview
Date: Wed, 10 Jun 2026 23:25:35 GMT	[thread overview]
Message-ID: <178113393528.1.15618319056023967157.rpms-rocclr-6e157b10a1fc@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocclr
            Branch : epel10
            Commit : 6e157b10a1fcbdc0727e7a36e3b4f80de5c5390a
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-03-05T16:29:55-08:00
            Stats  : +39/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocclr/c/6e157b10a1fcbdc0727e7a36e3b4f80de5c5390a?branch=epel10

            Log:
            Add --with preview

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/rocclr.spec b/rocclr.spec
index 8de9e0c..9496fe5 100644
--- a/rocclr.spec
+++ b/rocclr.spec
@@ -20,18 +20,24 @@
 # THE SOFTWARE.
 #
 
-# ROCclr loads comgr at run time by soversion, so this needs to be checked when
-# updating this package as it's used for the comgr requires for opencl and hip:
-%global comgr_maj_api_ver 3
-# See the file "rocclr/device/comgrctx.cpp" for reference:
-# https://github.com/ROCm-Developer-Tools/ROCclr/blob/develop/device/comgrctx.cpp#L62
+%global upstreamname clr
 
+%bcond_with preview
+%if %{with preview}
+%global rocm_major 7
+%global rocm_minor 11
+%global rocm_patch 0
+%global rocm_release %{rocm_major}.%{rocm_minor}
+%global pkg_src therock-%{rocm_release}
+%else
 %global rocm_major 7
 %global rocm_minor 2
 %global rocm_patch 0
 %global rocm_release %{rocm_major}.%{rocm_minor}
+%global pkg_src rocm-%{rocm_release}.%{rocm_patch}
+%endif
+
 %global rocm_version %{rocm_release}.%{rocm_patch}
-%global upstreamname clr
 
 %bcond_with compat
 %if %{with compat}
@@ -45,6 +51,12 @@
 %endif
 %global pkg_name rocclr%{pkg_suffix}
 
+# ROCclr loads comgr at run time by soversion, so this needs to be checked when
+# updating this package as it's used for the comgr requires for opencl and hip:
+%global comgr_maj_api_ver 3
+# See the file "rocclr/device/comgrctx.cpp" for reference:
+# https://github.com/ROCm-Developer-Tools/ROCclr/blob/develop/device/comgrctx.cpp#L62
+
 %global toolchain clang
 
 %bcond_with debug
@@ -95,15 +107,19 @@
 
 Name:           %{pkg_name}
 Version:        %{rocm_version}
-Release:        2%{?dist}
+%if %{with preview}
+Release:        0%{?dist}
+%else
+Release:        3%{?dist}
+%endif
 Summary:        ROCm Compute Language Runtime
 License:        MIT AND Apache-2.0 AND MIT-Khronos-old
 # The main license is MIT
 # OpenCL parts are licensed with Khronos AND Apache-2.0
 URL:            https://github.com/ROCm/rocm-systems
-Source0:        %{url}/releases/download/rocm-%{version}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+Source0:        %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
 # TODO: it would be nice to separate this into its own package:
-Source1:        %{url}/releases/download/rocm-%{version}/hip.tar.gz#/hip-%{version}.tar.gz
+Source1:        %{url}/releases/download/%{pkg_src}/hip.tar.gz#/hip-%{version}.tar.gz
 
 # a fix for building blender
 Patch1:         0001-rocclr-long-variants-for-__ffsll.patch
@@ -166,6 +182,9 @@ BuildRequires:  python3-cppheaderparser
 BuildRequires:  rocm-comgr%{pkg_suffix}-devel
 BuildRequires:  rocm-compilersupport%{pkg_suffix}-macros
 BuildRequires:  rocm-runtime%{pkg_suffix}-devel >= %{rocm_release}
+%if %{with preview}
+BuildRequires:  simde-devel
+%endif
 BuildRequires:  zlib-devel
 
 # ROCclr relies on some x86 intrinsics
@@ -384,11 +403,19 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hip/LICENSE.md
 %license opencl/LICENSE.md
 %config(noreplace) %{_sysconfdir}/OpenCL/vendors/amdocl64.icd
 %endif
+%if %{with preview}
+%{pkg_prefix}/%{pkg_libdir}/opencl/libamdocl64.so.%{rocm_major}{,.*}
+%else
 %{pkg_prefix}/%{pkg_libdir}/libamdocl64.so.%{rocm_major}{,.*}
+%endif
 %{pkg_prefix}/%{pkg_libdir}/libcltrace.so.%{rocm_major}{,.*}
 
 %files -n rocm-opencl%{pkg_suffix}-devel
+%if %{with preview}
+%{pkg_prefix}/%{pkg_libdir}/opencl/libamdocl64.so
+%else
 %{pkg_prefix}/%{pkg_libdir}/libamdocl64.so
+%endif
 %{pkg_prefix}/%{pkg_libdir}/libcltrace.so
 %{pkg_prefix}/include/%{name}
 
@@ -424,6 +451,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hip/LICENSE.md
 %endif
 
 %changelog
+* Thu Mar 5 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Add --with preview
+
 * Mon Feb 23 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
 - Cleanup specfile
 

                 reply	other threads:[~2026-06-10 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178113393528.1.15618319056023967157.rpms-rocclr-6e157b10a1fc@fedoraproject.org \
    --to=tom.rix@amd.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox