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/rocblas] epel10: Generate suse package names
Date: Thu, 11 Jun 2026 14:33:14 GMT	[thread overview]
Message-ID: <178118839411.1.4816736358181699234.rpms-rocblas-fce704a7cda7@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocblas
            Branch : epel10
            Commit : fce704a7cda75ce54bc5135b6490aed2dedc0eab
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-04-19T07:04:35-07:00
            Stats  : +18/-11 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocblas/c/fce704a7cda75ce54bc5135b6490aed2dedc0eab?branch=epel10

            Log:
            Generate suse package names

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

---
diff --git a/rocblas.spec b/rocblas.spec
index a2d485b..8eb5b95 100644
--- a/rocblas.spec
+++ b/rocblas.spec
@@ -21,6 +21,9 @@
 #
 %global upstreamname rocblas
 
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 5
+
 %bcond_with preview
 %if %{with preview}
 %global rocm_release 7.12
@@ -46,10 +49,11 @@
 %global pkg_suffix %{nil}
 %global pkg_module default
 %endif
+
 %if 0%{?suse_version}
-%global rocblas_name librocblas5%{pkg_suffix}
+%global pkg_name lib%{pkg_library_name}%{pkg_library_version}%{pkg_suffix}
 %else
-%global rocblas_name rocblas%{pkg_suffix}
+%global pkg_name %{NAME}
 %endif
 
 %global toolchain rocm
@@ -165,7 +169,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        5%{?dist}
+Release:        6%{?dist}
 %endif
 
 Source0:        %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
@@ -318,18 +322,18 @@ rocBLAS is the AMD library for Basic Linear Algebra Subprograms
 programming language and optimized for AMD GPUs.
 
 %if 0%{?suse_version}
-%package -n %{rocblas_name}
+%package -n %{pkg_name}
 Summary:        Shared libraries for %{name}
 
-%description -n %{rocblas_name}
+%description -n %{pkg_name}
 %{summary}
 
-%ldconfig_scriptlets -n %{rocblas_name}
+%ldconfig_scriptlets -n %{pkg_name}
 %endif
 
 %package devel
 Summary:        Libraries and headers for %{name}
-Requires:       %{rocblas_name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 %if %{without compat}
 Requires:       cmake(hip)
 %endif
@@ -340,7 +344,7 @@ Requires:       cmake(hip)
 %if %{with test}
 %package test
 Summary:        Tests for %{name}
-Requires:       %{rocblas_name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 Requires:       diffutils
 
 %description test
@@ -502,10 +506,10 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
 %endif
 %endif
 
-%files -n %{rocblas_name}
+%files -n %{pkg_name}
 %license LICENSE.md
 %doc README.md
-%{pkg_prefix}/%{pkg_libdir}/librocblas.so.5{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
 %if %{with tensile}
 %{pkg_prefix}/%{pkg_libdir}/rocblas/
 %endif
@@ -513,7 +517,7 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
 %files devel
 %{pkg_prefix}/include/rocblas/
 %{pkg_prefix}/%{pkg_libdir}/cmake/rocblas/
-%{pkg_prefix}/%{pkg_libdir}/librocblas.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
 
 %if %{with test}
 %files test
@@ -521,6 +525,9 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
 %endif
 
 %changelog
+* Sat Apr 18 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-6
+- Generate suse package names
+
 * Tue Mar 17 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-5
 - Install tensile with pip
 

                 reply	other threads:[~2026-06-11 14:33 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=178118839411.1.4816736358181699234.rpms-rocblas-fce704a7cda7@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