public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Newton <Jeremy.Newton@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/amdsmi] rawhide: Drop all suse-isms
Date: Mon, 02 Nov 2026 18:07:27 GMT	[thread overview]
Message-ID: <179364284755.1.373046790639411454.rpms-amdsmi-63b97b25464d@fedoraproject.org> (raw)

            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/

                 reply	other threads:[~2026-11-02 18:07 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=179364284755.1.373046790639411454.rpms-amdsmi-63b97b25464d@fedoraproject.org \
    --to=jeremy.newton@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