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/amdsmi] epel10: Add a static package
Date: Tue, 09 Jun 2026 22:35:56 GMT [thread overview]
Message-ID: <178104455653.1.1433718248372063216.rpms-amdsmi-2446fa0e0cd2@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-09 22:35 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=178104455653.1.1433718248372063216.rpms-amdsmi-2446fa0e0cd2@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