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/hipsolver] epel10: Generate suse package names
Date: Sat, 13 Jun 2026 22:14:09 GMT [thread overview]
Message-ID: <178138884921.1.13886188543904332081.rpms-hipsolver-a07632533090@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hipsolver
Branch : epel10
Commit : a076325330903b830743738c0b0176e2ccbc3414
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-22T12:44:25-07:00
Stats : +25/-33 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hipsolver/c/a076325330903b830743738c0b0176e2ccbc3414?branch=epel10
Log:
Generate suse package names
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/hipsolver.spec b/hipsolver.spec
index 34562ce..2e20aca 100644
--- a/hipsolver.spec
+++ b/hipsolver.spec
@@ -21,6 +21,9 @@
#
%global upstreamname hipsolver
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 1
+
%bcond_with preview
%if %{with preview}
%global rocm_release 7.12
@@ -47,10 +50,11 @@
%global pkg_suffix %{nil}
%global pkg_module default
%endif
+
%if 0%{?suse_version}
-%global hipsolver_name libhipsolver1%{pkg_suffix}
+%global pkg_name %{NAME}-libs
%else
-%global hipsolver_name hipsolver%{pkg_suffix}
+%global pkg_name %{NAME}
%endif
%global toolchain rocm
@@ -83,12 +87,12 @@
%global _source_payload w7T0.xzdio
%global _binary_payload w7T0.xzdio
-Name: %{hipsolver_name}
+Name: hipsolver%{pkg_suffix}
Version: %{rocm_version}
%if %{with preview}
Release: 0%{?dist}
%else
-Release: 3%{?dist}
+Release: 4%{?dist}
%endif
Summary: ROCm SOLVER marshaling library
License: MIT
@@ -144,13 +148,18 @@ of the chosen backend. Currently, hipSOLVER supports rocSOLVER
and cuSOLVER as backends.
%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: hipsolver%{pkg_suffix}-devel = %{version}-%{release}
%description devel
@@ -159,26 +168,16 @@ Provides: hipsolver%{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}
%endif
%prep
-%if %{with gitcommit}
-%setup -q -n rocm-libraries-%{commit0}
-cd projects/hipsolver
-%patch -P1 -p1
-%else
%autosetup -p1 -n %{upstreamname}
-%endif
%build
-%if %{with gitcommit}
-cd projects/hipsolver
-%endif
-
%cmake \
-DCMAKE_C_COMPILER=%rocmllvm_bindir/amdclang \
-DCMAKE_CXX_COMPILER=%rocmllvm_bindir/amdclang++ \
@@ -199,31 +198,21 @@ cd projects/hipsolver
%cmake_build
%install
-%if %{with gitcommit}
-cd projects/hipsolver
-%endif
-
%cmake_install
# Extra license
rm -f %{buildroot}%{pkg_prefix}/share/doc/hipsolver/LICENSE.md
-%files
-%if %{with gitcommit}
-%doc projects/hipsolver/README.md
-%license projects/hipsolver/LICENSE.md
-%else
+%files -n %{pkg_name}
%doc README.md
%license LICENSE.md
-%endif
-
-%{pkg_prefix}/%{pkg_libdir}/libhipsolver.so.1{,.*}
-%{pkg_prefix}/%{pkg_libdir}/libhipsolver_fortran.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}_fortran.so.%{pkg_library_version}{,.*}
%files devel
%{pkg_prefix}/include/hipsolver/
-%{pkg_prefix}/%{pkg_libdir}/libhipsolver.so
-%{pkg_prefix}/%{pkg_libdir}/libhipsolver_fortran.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}_fortran.so
%{pkg_prefix}/%{pkg_libdir}/cmake/hipsolver/
%if %{with test}
@@ -233,6 +222,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hipsolver/LICENSE.md
%endif
%changelog
+* Wed Apr 22 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-4
+- Generate suse package names
+
* Fri Apr 10 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
- Change --with gitcommit to preview
reply other threads:[~2026-06-13 22:14 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=178138884921.1.13886188543904332081.rpms-hipsolver-a07632533090@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