public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/amdsmi] rawhide: Drop all suse-isms
@ 2026-11-02 18:07 Jeremy Newton
0 siblings, 0 replies; only message in thread
From: Jeremy Newton @ 2026-11-02 18:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/amdsmi
Branch : rawhide
Commit : 63b97b25464d9abbc2df3bd9617112852f5d2465
Author : Jeremy Newton <Jeremy.Newton@amd.com>
Date : 2026-11-02T13:06:10-05:00
Stats : +2/-45 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/amdsmi/c/63b97b25464d9abbc2df3bd9617112852f5d2465?branch=rawhide
Log:
Drop all suse-isms
The SUSE package has diverged too much, so keeping these makes little sense.
Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com>
---
diff --git a/amdsmi.spec b/amdsmi.spec
index 9ca2288..7f6c250 100644
--- a/amdsmi.spec
+++ b/amdsmi.spec
@@ -48,12 +48,6 @@
%global pkg_suffix %{nil}
%endif
-%if 0%{?suse_version}
-%global pkg_name %{NAME}-libs
-%else
-%global pkg_name %{NAME}
-%endif
-
# Downloads its own googletest
# Testing also depends on having AMD hardware cpu and/or gpu installed.
# Not suitable for a general check
@@ -127,12 +121,8 @@ BuildRequires: python3-devel
BuildRequires: rocm-filesystem%{pkg_suffix}
%if %{with test}
-%if 0%{?suse_version}
-BuildRequires: gtest
-%else
BuildRequires: gtest-devel
%endif
-%endif
%if %{without compat}
Requires: python3dist(pyyaml)
@@ -142,10 +132,6 @@ Requires: python3dist(pyyaml)
Requires: rocm-filesystem%{pkg_suffix}
%endif
-%if 0%{?suse_version}
-Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
-%endif
-
# University of Illinois/NCSA Open Source License
Provides: bundled(esmi_ib_library) = %{esmi_ver}
@@ -154,19 +140,9 @@ The AMD System Management Interface Library, or AMD SMI library, is a C
library for Linux that provides a user space interface for applications
to monitor and control AMD devices.
-%if 0%{?suse_version}
-%package -n %{pkg_name}
-Summary: Runtime for %{name}
-
-%description -n %{pkg_name}
-%summary
-
-%ldconfig_scriptlets -n %{pkg_name}
-%endif
-
%package devel
Summary: Libraries and headers for %{name}
-Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}
@@ -174,10 +150,7 @@ Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
%if %{with test}
%package test
Summary: Tests for %{name}
-Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
-%if 0%{?suse_version}
-Requires: libgoamdsmi_shim64-1%{?_isa} = %{version}-%{release}
-%endif
+Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libdrm-devel
%description test
@@ -272,21 +245,6 @@ if [ -e %{buildroot}%{pkg_prefix}/share/tests ]; then
mv %{buildroot}%{pkg_prefix}/share/tests %{buildroot}%{pkg_prefix}/share/amdsmi/
fi
-%if 0%{?suse_version}
-%files
-%{pkg_prefix}/bin/amd-smi
-%{pkg_prefix}/libexec/amdsmi_cli
-%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi
-
-%files -n %{pkg_name}
-%doc README.md
-%license LICENSE
-%license esmi_ib_library_License.txt
-%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
-%{pkg_prefix}/%{pkg_libdir}/libgoamdsmi_shim64.so.1{,.*}
-
-%else
-
%files
%doc README.md
%license LICENSE
@@ -299,7 +257,6 @@ fi
%{pkg_prefix}/lib/python%{python3_version}/site-packages/amdsmi
%endif
%{pkg_prefix}/%{pkg_libdir}/libamdsminic.so.*
-%endif
%files devel
%{pkg_prefix}/include/amd_smi/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-02 18:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 18:07 [rpms/amdsmi] rawhide: Drop all suse-isms Jeremy Newton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox