better handling for the shared library package #1
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 19 03:34:19 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- 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 <Tom.Rix@amd.com>
|
||||
|
||||
|
||||
@@ -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.*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user