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/roctracer] epel10: Generate suse package names
Date: Sun, 14 Jun 2026 12:45:15 GMT	[thread overview]
Message-ID: <178144111558.1.7666338086513933139.rpms-roctracer-ba7fce3cc141@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/roctracer
            Branch : epel10
            Commit : ba7fce3cc141fe677d88fc31c4286f9b4da42445
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-04-22T12:43:17-07:00
            Stats  : +26/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/roctracer/c/ba7fce3cc141fe677d88fc31c4286f9b4da42445?branch=epel10

            Log:
            Generate suse package names

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/roctracer.spec b/roctracer.spec
index 3863389..c4dbfcb 100644
--- a/roctracer.spec
+++ b/roctracer.spec
@@ -21,6 +21,9 @@
 #
 %global upstreamname roctracer
 
+%global pkg_library_name %{upstreamname}64
+%global pkg_library_version 4
+
 %bcond_with preview
 %if %{with preview}
 %global rocm_release 7.12
@@ -47,6 +50,12 @@
 %global pkg_module default
 %endif
 
+%if 0%{?suse_version}
+%global pkg_name %{NAME}-libs
+%else
+%global pkg_name %{NAME}
+%endif
+
 %global toolchain clang
 # hipcc does not support some clang flags
 %global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong/-Xarch_host -fstack-protector-strong/' -e 's/-fcf-protection/-Xarch_host -fcf-protection/')
@@ -74,7 +83,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        1%{?dist}
+Release:        2%{?dist}
 %endif
 Summary:        ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs
 License:        MIT
@@ -142,13 +151,18 @@ ROC-tracer
   * roctxRangePop
 
 %if 0%{?suse_version}
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%package -n %{pkg_name}
+Summary:        Runtime for %{name}
+
+%description -n %{pkg_name}
+%summary
+
+%ldconfig_scriptlets -n %{pkg_name}
 %endif
 
 %package devel
 Summary:        The %{name} development package
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 
 %description devel
 The headers of libraries for %{name}.
@@ -164,7 +178,7 @@ Summary:        Docs for %{name}
 %if %{with test}
 %package test
 Summary:        Tests for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 
 %description test
 %{summary}
@@ -219,16 +233,16 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/*/LICENSE.md
 rm -f %{buildroot}%{pkg_prefix}/share/doc/*/*/LICENSE.md
 
 
-%files
+%files -n %{pkg_name}
 %license LICENSE.md
 %doc README.md
-%{pkg_prefix}/%{pkg_libdir}/libroctracer64.so.*
-%{pkg_prefix}/%{pkg_libdir}/libroctx64.so.*
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
+%{pkg_prefix}/%{pkg_libdir}/libroctx64.so.%{pkg_library_version}{,.*}
 %{pkg_prefix}/%{pkg_libdir}/roctracer/
 
 %files devel
 %{pkg_prefix}/include/roctracer
-%{pkg_prefix}/%{pkg_libdir}/libroctracer64.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
 %{pkg_prefix}/%{pkg_libdir}/libroctx64.so
 
 %if %{with doc}
@@ -242,6 +256,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/*/*/LICENSE.md
 %endif
 
 %changelog
+* Wed Apr 22 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.2-2
+- Generate suse package names
+
 * Tue Apr 14 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.2-1
 - Update to 7.2.2
 

                 reply	other threads:[~2026-06-14 12:45 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=178144111558.1.7666338086513933139.rpms-roctracer-ba7fce3cc141@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