public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hipblas] epel10: Generate suse package name
@ 2026-06-13 22:12 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-13 22:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hipblas
Branch : epel10
Commit : 2a03d65a86c1d328b0bb7cc7cc4219b26e55c293
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-20T14:15:49-07:00
Stats : +18/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hipblas/c/2a03d65a86c1d328b0bb7cc7cc4219b26e55c293?branch=epel10
Log:
Generate suse package name
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/hipblas.spec b/hipblas.spec
index 86822c3..0c79074 100644
--- a/hipblas.spec
+++ b/hipblas.spec
@@ -21,6 +21,9 @@
#
%global upstreamname hipblas
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 3
+
%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 hipblas_name libhipblas3%{pkg_suffix}
+%global pkg_name lib%{pkg_library_name}%{pkg_library_version}%{pkg_suffix}
%else
-%global hipblas_name hipblas%{pkg_suffix}
+%global pkg_name %{NAME}
%endif
%global toolchain rocm
@@ -90,7 +94,7 @@ Version: %{rocm_version}
%if %{with preview}
Release: 0%{?dist}
%else
-Release: 4%{?dist}
+Release: 5%{?dist}
%endif
Summary: ROCm BLAS marshaling library
License: MIT AND 0BSD
@@ -142,18 +146,18 @@ the client to change, regardless of the chosen backend. Currently,
hipBLAS supports rocBLAS and cuBLAS as backends.
%if 0%{?suse_version}
-%package -n %{hipblas_name}
+%package -n %{pkg_name}
Summary: Shared libraries for %{name}
-%description -n %{hipblas_name}
+%description -n %{pkg_name}
%{summary}
-%ldconfig_scriptlets -n %{hipblas_name}
+%ldconfig_scriptlets -n %{pkg_name}
%endif
%package devel
Summary: Libraries and headers for %{name}
-Requires: %{hipblas_name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
Requires: hipblas-common%{pkg_suffix}-devel
%description devel
@@ -201,17 +205,17 @@ sed -i -e 's@find_package(Git REQUIRED)@#find_package(Git REQUIRED)@' library/CM
%install
%cmake_install
-
+# Extra license
rm -f %{buildroot}%{pkg_prefix}/share/doc/hipblas/LICENSE.md
-%files -n %{hipblas_name}
+%files -n %{pkg_name}
%license LICENSE.md
%doc README.md
-%{pkg_prefix}/%{pkg_libdir}/libhipblas.so.3{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
%files devel
%{pkg_prefix}/include/hipblas/
-%{pkg_prefix}/%{pkg_libdir}/libhipblas.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
%{pkg_prefix}/%{pkg_libdir}/cmake/hipblas/
%if %{with test}
@@ -220,6 +224,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hipblas/LICENSE.md
%endif
%changelog
+* Mon Apr 20 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-5
+- Generate suse package name
+
* Sat Mar 7 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-4
- Change --with gitcommit to preview
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 22:12 [rpms/hipblas] epel10: Generate suse package name Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox