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/rocm-rpm-macros] epel10: Add --with preview
Date: Thu, 11 Jun 2026 13:35:35 GMT	[thread overview]
Message-ID: <178118493561.1.2967635560095197375.rpms-rocm-rpm-macros-f71894932aec@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocm-rpm-macros
            Branch : epel10
            Commit : f71894932aece152054776154c0823a208287e57
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-03-10T11:42:23-07:00
            Stats  : +51/-3 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocm-rpm-macros/c/f71894932aece152054776154c0823a208287e57?branch=epel10

            Log:
            Add --with preview

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

---
diff --git a/macros.rocm.preview b/macros.rocm.preview
new file mode 100644
index 0000000..30148e7
--- /dev/null
+++ b/macros.rocm.preview
@@ -0,0 +1,30 @@
+%rocm_gpu_list default
+
+%rocm_gpu_list_default "gfx9-generic;gfx942;gfx950;gfx10-1-generic;gfx10-3-generic;gfx11-generic;gfx12-generic"
+%rocm_gpu_list_hipblaslt "gfx1100;gfx1101;gfx1151;gfx1200;gfx1201"
+%rocm_gpu_list_rccl "gfx906;gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
+%rocm_gpu_list_test "gfx1100;gfx1101;gfx1201"
+
+%__cc_rocm hipcc
+%__cxx_rocm hipcc
+%__cpp_rocm clang-cpp
+
+%_rocm_extra_ldflags %{?_lto_cflags}
+%build_ldflags -Wl,-z,relro %{?_ld_as_needed_flags} %{?_ld_symbols_flags} %{?_hardened_ldflags} %{?_annotation_ldflags} "%{?_rocm_extra_ldflags}" %{?_build_id_flags} %{?_package_note_flags} %{?_distro_extra_ldflags}
+
+%__spec_install_post\
+    %{?__brp_llvm_compile_lto_elf} \
+    %{?__debug_package:%{__debug_install_post}}\
+    %{__arch_install_post}\
+    %{__os_install_post}\
+%{nil}
+
+%_hardening_rocm_cflags --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg
+%_hardening_cflags	 -fPIE -Xarch_host -fstack-protector-strong
+%_hardening_ldflags	 -Wl,-z,now
+%_hardening_rocm_ldflags  -Wl,-z,now
+
+%_annobin_rocm_plugin	%dnl-fplugin=/usr/lib64/clang/`clang -dumpversion`/lib/annobin.so
+
+%_rocm_lto_cflags	-flto=thin
+

diff --git a/rocm-rpm-macros.spec b/rocm-rpm-macros.spec
index 8a84f1a..7d255e8 100644
--- a/rocm-rpm-macros.spec
+++ b/rocm-rpm-macros.spec
@@ -20,8 +20,15 @@
 # THE SOFTWARE.
 #
 
+%bcond_with preview
+%if %{with preview}
+%global rocm_release 7.11
+%global rocm_patch 0
+%else
 %global rocm_release 7.2
 %global rocm_patch 0
+%endif
+
 %global rocm_version %{rocm_release}.%{rocm_patch}
 
 %bcond_with compat
@@ -34,12 +41,20 @@
 
 Name:           %{pkg_name}
 Version:        %{rocm_version}
-Release:        1%{?dist}
+%if %{with preview}
+Release:        0%{?dist}
+%else
+Release:        2%{?dist}
+%endif
 Summary:        ROCm RPM macros
 License:        GPL-2.0-or-later
 
 URL:            https://github.com/trixirt/rocm-rpm-macros
+%if %{with preview}
+Source0:        macros.rocm.preview
+%else
 Source0:        macros.rocm
+%endif
 Source1:        GPL
 # Modules
 Source2:        default
@@ -97,7 +112,7 @@ between different GPU families.
 
 %prep
 %setup -cT
-install -pm 644 %{SOURCE0} .
+install -pm 644 %{SOURCE0} macros.rocm
 install -pm 644 %{SOURCE1} .
 mkdir modules
 %if 0%{?rhel}
@@ -127,7 +142,7 @@ install -pm 644 %{SOURCE31} modules
 
 %install
 mkdir -p %{buildroot}%{_rpmmacrodir}/
-install -Dpm 644 %{SOURCE0} %{buildroot}%{_rpmmacrodir}/
+install -Dpm 644 %{SOURCE0} %{buildroot}%{_rpmmacrodir}/macros.rocm
 %if 0%{?suse_version}
 mkdir -p %{buildroot}%{_datadir}/modules/rocm/
 cp -p modules/* %{buildroot}%{_datadir}/modules/rocm/
@@ -149,6 +164,9 @@ cp -p modules/* %{buildroot}%{_datadir}/modulefiles/rocm/
 %endif
 
 %changelog
+* Tue Mar 10 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
+- Add --with preview
+
 * Fri Feb 6 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-1
 - Update to 7.2.0
 

                 reply	other threads:[~2026-06-11 13:35 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=178118493561.1.2967635560095197375.rpms-rocm-rpm-macros-f71894932aec@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