From da23ab85d7e5dd98e40af326ec1ccf733633006b2403aab001e1e86b600a272d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= Date: Sun, 19 Oct 2025 05:34:57 +0200 Subject: [PATCH] better handling for the shared library package 1. devel package name remains normal 2. use modern scriptlet --- rocm-core.changes | 7 +++++++ rocm-core.spec | 16 ++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/rocm-core.changes b/rocm-core.changes index c57b849..9e0fbcb 100644 --- a/rocm-core.changes +++ b/rocm-core.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Oct 19 03:34:19 UTC 2025 - Marcus Rueckert + +- better handling for the shared library package + 1. devel package name remains normal + 2. use modern scriptlet + ------------------------------------------------------------------- Wed Aug 27 00:00:00 UTC 2025 - Tom Rix diff --git a/rocm-core.spec b/rocm-core.spec index 06a1ab0..a42feee 100644 --- a/rocm-core.spec +++ b/rocm-core.spec @@ -51,7 +51,7 @@ %global rocm_patch 3 %global rocm_version %{rocm_release}.%{rocm_patch} -Name: %{core_name} +Name: rocm-core Version: %{rocm_version} Release: 2%{?dist} Summary: A utility to get the ROCm release version @@ -72,14 +72,18 @@ ExclusiveArch: x86_64 %{summary} %if 0%{?suse_version} -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%package -n %{core_name} +Summary: Shared libraries for %{name} + +%description -n %{core_name} +%{summary} + +%ldconfig_scriptlets -n %{core_name} %endif %package devel Summary: Libraries and headers for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} -Provides: rocm-core-devel = %{version}-%{release} +Requires: %{core_name}%{?_isa} = %{version}-%{release} %description devel %{summary} @@ -104,7 +108,7 @@ rm -rf %{buildroot}/%{_includedir}/rocm-core find %{buildroot} -type f -name 'runpath_to_rpath.py' -exec rm {} \; -%files +%files -n %{core_name} %license copyright %{_libdir}/librocm-core.so.* -- 2.51.1