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-core] epel10: Generate suse package name
Date: Thu, 11 Jun 2026 14:37:14 GMT [thread overview]
Message-ID: <178118863416.1.6265377842817086483.rpms-rocm-core-baf4fb52ab0a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rocm-core
Branch : epel10
Commit : baf4fb52ab0a668f8fbe602719420bbdbc132cb1
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-19T07:03:19-07:00
Stats : +37/-16 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rocm-core/c/baf4fb52ab0a668f8fbe602719420bbdbc132cb1?branch=epel10
Log:
Generate suse package name
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/rocm-core.spec b/rocm-core.spec
index d9a511a..66b28f4 100644
--- a/rocm-core.spec
+++ b/rocm-core.spec
@@ -21,6 +21,9 @@
#
%global upstreamname rocm-core
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 1
+
%bcond_with preview
%if %{with preview}
%global rocm_release 7.12
@@ -46,21 +49,19 @@
%global pkg_suffix %{nil}
%global pkg_module default
%endif
+
%if 0%{?suse_version}
-# 15.6
-# rocm-core.x86_64: E: shlib-policy-name-error (Badness: 10000) librocm-core1
-# Your package contains a single shared library but is not named after its SONAME.
-%global core_name librocm-core1%{pkg_suffix}
+%global pkg_name lib%{pkg_library_name}%{pkg_library_version}%{pkg_suffix}
%else
-%global core_name rocm-core%{pkg_suffix}
+%global pkg_name %{NAME}
%endif
-Name: rocm-core
+Name: rocm-core%{pkg_suffix}
Version: %{rocm_version}
%if %{with preview}
Release: 0%{?dist}
%else
-Release: 1%{?dist}
+Release: 2%{?dist}
%endif
Summary: A utility to get the ROCm release version
License: MIT
@@ -70,6 +71,10 @@ Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{up
BuildRequires: cmake
BuildRequires: gcc-c++
+%if 0%{?suse_version}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
+%endif
+
Provides: rocm-core = %{version}-%{release}
# Only x86_64 works right now:
@@ -79,18 +84,18 @@ ExclusiveArch: x86_64
%{summary}
%if 0%{?suse_version}
-%package -n %{core_name}
-Summary: Shared libraries for %{name}
+%package -n %{pkg_name}
+Summary: Runtime for %{name}
-%description -n %{core_name}
-%{summary}
+%description -n %{pkg_name}
+%summary
-%ldconfig_scriptlets -n %{core_name}
+%ldconfig_scriptlets -n %{pkg_name}
%endif
%package devel
Summary: Libraries and headers for %{name}
-Requires: %{core_name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}
@@ -124,19 +129,35 @@ rm -rf %{buildroot}/%{pkg_prefix}/include/rocm-core
find %{buildroot} -type f -name 'runpath_to_rpath.py' -exec rm {} \;
-%files -n %{core_name}
+%if 0%{?suse_version}
+%files
+%{pkg_prefix}/bin/rdhc
+%{pkg_prefix}/libexec/rocm-core/
+
+%files -n %{pkg_name}
+%doc README.md
+%license LICENSE.md
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
+
+%else
+
+%files
%doc README.md
%license LICENSE.md
-%{pkg_prefix}/%{pkg_libdir}/librocm-core.so.*
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
%{pkg_prefix}/bin/rdhc
%{pkg_prefix}/libexec/rocm-core/
+%endif
%files devel
%{pkg_prefix}/include/*.h
-%{pkg_prefix}/%{pkg_libdir}/librocm-core.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
%{pkg_prefix}/%{pkg_libdir}/cmake/rocm-core/
%changelog
+* Fri Apr 17 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.2-2
+- Generate suse package name
+
* Wed Apr 15 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.2-1
- Update to 7.2.2
reply other threads:[~2026-06-11 14:37 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=178118863416.1.6265377842817086483.rpms-rocm-core-baf4fb52ab0a@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