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/rocalution] epel10: Generate suse package names
Date: Fri, 12 Jun 2026 17:22:16 GMT	[thread overview]
Message-ID: <178128493642.1.7901103480291305460.rpms-rocalution-575a869aa0c2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rocalution
Branch : epel10
Commit : 575a869aa0c2a7a7b3aeb28b7b92525b37878d79
Author : Tom Rix <Tom.Rix@amd.com>
Date   : 2026-04-21T11:45:56-07:00
Stats  : +27/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rocalution/c/575a869aa0c2a7a7b3aeb28b7b92525b37878d79?branch=epel10

Log:
Generate suse package names

---
diff --git a/rocalution.spec b/rocalution.spec
index f1d40d6..efd021a 100644
--- a/rocalution.spec
+++ b/rocalution.spec
@@ -20,6 +20,10 @@
 # THE SOFTWARE.
 #
 %global upstreamname rocALUTION
+
+%global pkg_library_name rocalution
+%global pkg_library_version 1
+
 %global rocm_release 7.2
 %global rocm_patch 0
 %global rocm_version %{rocm_release}.%{rocm_patch}
@@ -36,10 +40,11 @@
 %global pkg_suffix %{nil}
 %global pkg_module default
 %endif
+
 %if 0%{?suse_version}
-%global rocalution_name librocalution1%{pkg_suffix}
+%global pkg_name %{NAME}-libs
 %else
-%global rocalution_name rocalution%{pkg_suffix}
+%global pkg_name %{NAME}
 %endif
 
 %global toolchain rocm
@@ -82,9 +87,9 @@
 %global cmake_generator %{nil}
 %endif
 
-Name:           %{rocalution_name}
+Name:           rocalution%{pkg_suffix}
 Version:        %{rocm_version}
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Next generation library for iterative sparse solvers for ROCm platform
 Url:            https://github.com/ROCm/%{upstreamname}
 License:        MIT
@@ -147,13 +152,18 @@ Host
 * MPI: Designed for multi-node clusters and multi-GPU setups
 
 %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: Libraries and headers for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 Provides:       rocalution%{pkg_suffix}-devel = %{version}-%{release}
 
 %description devel
@@ -162,7 +172,7 @@ Provides:       rocalution%{pkg_suffix}-devel = %{version}-%{release}
 %if %{with test}
 %package test
 Summary:        Tests for %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{pkg_name}%{?_isa} = %{version}-%{release}
 
 %description test
 %{summary}
@@ -216,19 +226,19 @@ sed -i -e 's@set(CMAKE_CXX_STANDARD 14)@set(CMAKE_CXX_STANDARD 17)@' clients/CMa
 
 %install
 %cmake_install
-
+# Extra license
 rm -f %{buildroot}%{pkg_prefix}/share/doc/rocalution/LICENSE.md
 
-%files
+%files -n %{pkg_name}
 %license LICENSE.md
-%{pkg_prefix}/%{pkg_libdir}/librocalution.so.1{,.*}
-%{pkg_prefix}/%{pkg_libdir}/librocalution_hip.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}_hip.so.%{pkg_library_version}{,.*}
 
 %files devel
 %doc README.md
 %{pkg_prefix}/include/rocalution/
-%{pkg_prefix}/%{pkg_libdir}/librocalution.so
-%{pkg_prefix}/%{pkg_libdir}/librocalution_hip.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}_hip.so
 %{pkg_prefix}/%{pkg_libdir}/cmake/rocalution/
 
 %if %{with test}
@@ -237,6 +247,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocalution/LICENSE.md
 %endif
 
 %changelog
+* Tue Apr 21 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Generate suse package name
+
 * Mon Feb 16 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
 - Cleanup specfile
 
@@ -312,4 +325,3 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocalution/LICENSE.md
 
 * Sun Nov 10 2024 Tom Rix <Tom.Rix@amd.com> - 6.2.1-1
 - Stub for tumbleweed
-

                 reply	other threads:[~2026-06-12 17:22 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=178128493642.1.7901103480291305460.rpms-rocalution-575a869aa0c2@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