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-smi] epel10: Generate suse package names
Date: Tue, 09 Jun 2026 22:36:48 GMT	[thread overview]
Message-ID: <178104460893.1.9660778443791699090.rpms-rocm-smi-fffec029217f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocm-smi
            Branch : epel10
            Commit : fffec029217fc721f341d29b68f43983355e03d4
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-04-19T07:01:56-07:00
            Stats  : +44/-10 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocm-smi/c/fffec029217fc721f341d29b68f43983355e03d4?branch=epel10

            Log:
            Generate suse package names

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

---
diff --git a/rocm-smi.spec b/rocm-smi.spec
index d17fcbd..4a8bf7e 100644
--- a/rocm-smi.spec
+++ b/rocm-smi.spec
@@ -21,6 +21,9 @@
 #
 %global upstreamname rocm-smi-lib
 
+%global pkg_library_name rocm_smi64
+%global pkg_library_version 1
+
 %bcond_with preview
 %if %{with preview}
 %global rocm_release 7.12
@@ -46,7 +49,12 @@
 %global pkg_suffix %{nil}
 %global pkg_skip_install_rpath TRUE
 %endif
-%global pkg_name rocm-smi%{pkg_suffix}
+
+%if 0%{?suse_version}
+%global pkg_name %{NAME}-libs
+%else
+%global pkg_name %{NAME}
+%endif
 
 %bcond_with test
 %if %{with test}
@@ -57,12 +65,12 @@
 
 %bcond_with doc
 
-Name:       %{pkg_name}
+Name:       rocm-smi%{pkg_suffix}
 Version:    %{rocm_version}
 %if %{with preview}
 Release:    0%{?dist}
 %else
-Release:    1%{?dist}
+Release:    2%{?dist}
 %endif
 Summary:    ROCm System Management Interface Library
 
@@ -128,15 +136,29 @@ BuildRequires:  gtest-devel
 Requires:       rocm-filesystem%{pkg_suffix}
 %endif
 
+%if 0%{?suse_version}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
+%endif
+
 %description
 The ROCm System Management Interface Library, or ROCm SMI library, is part of
 the Radeon Open Compute ROCm software stack . It is a C library for Linux that
 provides a user space interface for applications to monitor and control GPU
 applications.
 
+%if 0%{?suse_version}
+%package -n %{pkg_name}
+Summary:        Runtime for %{name}
+
+%description -n %{pkg_name}
+%summary
+
+%ldconfig_scriptlets -n %{pkg_name}
+%endif
+
 %package devel
 Summary: ROCm SMI Library development files
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
 # /usr/include/rocm_smi/kfd_ioctl.h:26:10: fatal error: 'libdrm/drm.h' file not found
 Requires: libdrm-devel
 
@@ -146,7 +168,7 @@ ROCm System Management Interface Library development files
 %if %{with test}
 %package test
 Summary:        Tests for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 
 %description test
 %{summary}
@@ -194,22 +216,31 @@ rm -rf tests
 rm -f %{buildroot}%{pkg_prefix}/share/doc/rocm-smi-lib/LICENSE.md
 
 %if 0%{?suse_version}
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-%endif
+%files
+%{pkg_prefix}/bin/rocm-smi
+%{pkg_prefix}/libexec/rocm_smi/
+
+%files -n %{pkg_name}
+%doc README.md
+%license LICENSE.md
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
+%{pkg_prefix}/%{pkg_libdir}/liboam.so.1{,.*}
+
+%else
 
 %files
 %doc README.md
 %license LICENSE.md
 %{pkg_prefix}/bin/rocm-smi
 %{pkg_prefix}/libexec/rocm_smi/
-%{pkg_prefix}/%{pkg_libdir}/librocm_smi64.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
 %{pkg_prefix}/%{pkg_libdir}/liboam.so.1{,.*}
+%endif
 
 %files devel
 %{pkg_prefix}/include/rocm_smi/
 %{pkg_prefix}/include/oam/
-%{pkg_prefix}/%{pkg_libdir}/librocm_smi64.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
 %{pkg_prefix}/%{pkg_libdir}/liboam.so
 %{pkg_prefix}/%{pkg_libdir}/cmake/rocm_smi/
 
@@ -219,6 +250,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocm-smi-lib/LICENSE.md
 %endif
 
 %changelog
+* Fri Apr 17 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.1-2
+- Generate suse package names
+
 * Tue Mar 24 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.1-1
 - Update to 7.2.1
 

                 reply	other threads:[~2026-06-09 22:36 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=178104460893.1.9660778443791699090.rpms-rocm-smi-fffec029217f@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