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/rocsparse] epel10: Generate suse package name
Date: Fri, 12 Jun 2026 12:35:39 GMT	[thread overview]
Message-ID: <178126773969.1.16452231364194416780.rpms-rocsparse-6f9a5b964df2@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocsparse
            Branch : epel10
            Commit : 6f9a5b964df28f76cc9c4839fa0250abf46c2333
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-04-20T14:18:52-07:00
            Stats  : +17/-11 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocsparse/c/6f9a5b964df28f76cc9c4839fa0250abf46c2333?branch=epel10

            Log:
            Generate suse package name

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

---
diff --git a/rocsparse.spec b/rocsparse.spec
index 766cc28..65d0772 100644
--- a/rocsparse.spec
+++ b/rocsparse.spec
@@ -21,6 +21,9 @@
 #
 %global upstreamname rocsparse
 
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 1
+
 %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 rocsparse_name librocsparse1%{pkg_suffix}
+%global pkg_name lib%{pkg_library_name}%{pkg_library_version}%{pkg_suffix}
 %else
-%global rocsparse_name rocsparse%{pkg_suffix}
+%global pkg_name %{NAME}
 %endif
 
 %global toolchain rocm
@@ -130,7 +134,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        3%{?dist}
+Release:        4%{?dist}
 %endif
 Summary:        SPARSE implementation for ROCm
 License:        MIT AND 0BSD
@@ -193,18 +197,18 @@ the HIP programming language and optimized for AMD's
 latest discrete GPUs.
 
 %if 0%{?suse_version}
-%package -n %{rocsparse_name}
+%package -n %{pkg_name}
 Summary:        Shared libraries for %{name}
 
-%description -n %{rocsparse_name}
+%description -n %{pkg_name}
 %{summary}
 
-%ldconfig_scriptlets -n %{rocsparse_name}
+%ldconfig_scriptlets -n %{pkg_name}
 %endif
 
 %package devel
 Summary:        Libraries and headers for %{name}
-Requires:       %{rocsparse_name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 
 %description devel
 %{summary}
@@ -258,15 +262,14 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
 %endif
 %endif
 
-%files -n %{rocsparse_name}
+%files -n %{pkg_name}
 %doc README.md
 %license LICENSE.md
-
-%{pkg_prefix}/%{pkg_libdir}/librocsparse.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
 
 %files devel
 %{pkg_prefix}/include/rocsparse/
-%{pkg_prefix}/%{pkg_libdir}/librocsparse.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
 %{pkg_prefix}/%{pkg_libdir}/cmake/rocsparse/
 
 %if %{with test}
@@ -279,6 +282,9 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library:$LD_LIBRARY_PATH
 %endif
 
 %changelog
+* Mon Apr 20 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-4
+- Generate suse package name
+
 * Fri Mar 6 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
 - Change --with gitcommit to preview
 

                 reply	other threads:[~2026-06-12 12: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=178126773969.1.16452231364194416780.rpms-rocsparse-6f9a5b964df2@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