public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-smi] epel10: Generate suse package names
@ 2026-06-09 22:36 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-09 22:36 UTC (permalink / raw)
  To: git-commits

            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
 

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

only message in thread, other threads:[~2026-06-09 22:36 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:36 [rpms/rocm-smi] epel10: Generate suse package names Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox