public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amdsmi] epel10: Add a static package
@ 2026-06-09 22:35 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-09 22:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/amdsmi
Branch : epel10
Commit : 2446fa0e0cd24834accebd0fa2525fdb0273140e
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-09T14:39:31-07:00
Stats : +15/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/amdsmi/c/2446fa0e0cd24834accebd0fa2525fdb0273140e?branch=epel10
Log:
Add a static package
cmake infra looks for the static lib, so include it for now.
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/amdsmi.spec b/amdsmi.spec
index 79ec351..b1c12ba 100644
--- a/amdsmi.spec
+++ b/amdsmi.spec
@@ -154,6 +154,16 @@ Requires: libdrm-devel
%{summary}
%endif
+%if %{with preview}
+%package static
+Summary: Static libraries for %{name}
+Requires: amdsmi%{pkg_suffix}-devel = %{version}-%{release}
+Provides: amdsmi%{pkg_suffix}-static = %{version}-%{release}
+
+%description static
+%{summary}
+%endif
+
%prep
%if %{without preview}
%autosetup -p1 -n %{upstreamname}
@@ -261,7 +271,6 @@ mv %{buildroot}%{pkg_prefix}/share/tests %{buildroot}%{pkg_prefix}/share/amdsmi/
#ERROR 0002: file '/usr/lib/python3.14/site-packages/amdsmi/libamd_smi.so' contains an invalid runpath '/builddir/build/BUILD/amdsmi-7.12.0-build/amdsmi/redhat-linux-build/src/nic/ai-nic/amdsmi_unified/build' in [/builddir/build/BUILD/amdsmi-7.12.0-build/amdsmi/redhat-linux-build/src/nic/ai-nic/amdsmi_unified/build:]
chrpath -d %{buildroot}%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi/libamd_smi.so
-rm -f %{buildroot}%{pkg_prefix}/%{pkg_libdir}/lib*.a
%endif
%if 0%{?suse_version}
@@ -303,6 +312,11 @@ rm -f %{buildroot}%{pkg_prefix}/%{pkg_libdir}/lib*.a
%{pkg_prefix}/share/amdsmi
%endif
+%if %{with preview}
+%files static
+%{pkg_prefix}/%{pkg_libdir}/libamd_smi_static.a
+%endif
+
%changelog
* 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:35 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:35 [rpms/amdsmi] epel10: Add a static package Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox