public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amdsmi] epel10: Add --with preview
@ 2026-06-09 22:35 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-09 22:35 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/amdsmi
            Branch : epel10
            Commit : 411b15bde4b3f1953d9322213d2bd84c7908438c
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-03-11T08:53:02-07:00
            Stats  : +23/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/amdsmi/c/411b15bde4b3f1953d9322213d2bd84c7908438c?branch=epel10

            Log:
            Add --with preview

Change URL to rocm-systems

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

---
diff --git a/amdsmi.spec b/amdsmi.spec
index bc08db8..8381d47 100644
--- a/amdsmi.spec
+++ b/amdsmi.spec
@@ -19,10 +19,20 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 #
+%global upstreamname amdsmi
+
+%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}
-%global upstreamname amdsmi
 
 %bcond_with compat
 %if %{with compat}
@@ -53,7 +63,11 @@
 
 Name:       amdsmi%{pkg_suffix}
 Version:    %{rocm_version}
-Release:    2%{?dist}
+%if %{with preview}
+Release:    0%{?dist}
+%else
+Release:    3%{?dist}
+%endif
 Summary:    AMD System Management Interface
 
 License:    MIT AND (GPL-2.0-only WITH Linux-syscall-note)
@@ -62,8 +76,8 @@ License:    MIT AND (GPL-2.0-only WITH Linux-syscall-note)
 # This file is GPL-2.0
 # include/amd_smi/impl/amd_hsmp.h
 
-URL:        https://github.com/ROCm/%{upstreamname}
-Source0:    %{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+URL:        https://github.com/ROCm/rocm-systems
+Source0:    %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
 # esmi_ib_library is not suitable for packaging
 # https://github.com/amd/esmi_ib_library/issues/13
 # This tag was choosen by the amdsmi project because 4.0+ introduced variables not
@@ -118,7 +132,7 @@ Requires:       libdrm-devel
 %endif
 
 %prep
-%autosetup -n %{upstreamname}-rocm-%{version} -p1
+%autosetup -p1 -n %{upstreamname}
 tar xf %{SOURCE1}
 mv esmi_ib_library-* esmi_ib_library
 # So we can pick up this license
@@ -231,6 +245,10 @@ mv %{buildroot}%{pkg_prefix}/share/tests %{buildroot}%{pkg_prefix}/share/amdsmi/
 %endif
 
 %changelog
+* Wed Mar 11 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Add --with preview
+- Change URL to rocm-systems
+
 * Thu Feb 12 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
 - Update license
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-09 22:35 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:35 [rpms/amdsmi] 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