public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocrand] epel10: Generate suse package name
@ 2026-06-10 23:51 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-10 23:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocrand
Branch : epel10
Commit : be9ab84b68b5eb1d8d631ba842d5604e83ab02fe
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-04-20T14:16:48-07:00
Stats : +22/-15 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rocrand/c/be9ab84b68b5eb1d8d631ba842d5604e83ab02fe?branch=epel10
Log:
Generate suse package name
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/rocrand.spec b/rocrand.spec
index c1ae794..55c6000 100644
--- a/rocrand.spec
+++ b/rocrand.spec
@@ -21,6 +21,9 @@
#
%global upstreamname rocrand
+%global pkg_library_name %{upstreamname}
+%global pkg_library_version 1
+
%bcond_with preview
%if %{with preview}
%global rocm_release 7.12
@@ -44,10 +47,11 @@
%global pkg_prefix %{_prefix}
%global pkg_suffix %{nil}
%endif
+
%if 0%{?suse_version}
-%global rocrand_name librocrand1%{pkg_suffix}
+%global pkg_name lib%{pkg_library_name}%{pkg_library_version}%{pkg_suffix}
%else
-%global rocrand_name rocrand%{pkg_suffix}
+%global pkg_name %{NAME}
%endif
%global toolchain rocm
@@ -125,7 +129,7 @@ Version: %{rocm_version}
%if %{with preview}
Release: 0%{?dist}
%else
-Release: 3%{?dist}
+Release: 4%{?dist}
%endif
Summary: ROCm random number generator
@@ -199,18 +203,18 @@ optimized for AMD's latest discrete GPUs. It is designed to run on top of AMD's
Radeon Open Compute ROCm runtime, but it also works on CUDA enabled GPUs.
%if 0%{?suse_version}
-%package -n %{rocrand_name}
-Summary: Shared libraries for %{name}
+%package -n %{pkg_name}
+Summary: The rocRAND runtime package
-%description -n %{rocrand_name}
-%{summary}
+%description -n %{pkg_name}
+%summary
-%ldconfig_scriptlets -n %{rocrand_name}
+%ldconfig_scriptlets -n %{pkg_name}
%endif
%package devel
Summary: The rocRAND development package
-Requires: %{rocrand_name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
%description devel
The rocRAND development package.
@@ -218,7 +222,7 @@ The rocRAND development package.
%if %{with test}
%package test
Summary: Tests for %{name}
-Requires: %{rocrand_name}%{?_isa} = %{version}-%{release}
+Requires: %{pkg_name}%{?_isa} = %{version}-%{release}
%description test
%{summary}
@@ -247,7 +251,7 @@ rm -rf test/fortran/fruit
rm -f %{buildroot}%{pkg_prefix}/share/doc/rocrand/LICENSE.md
-%files -n %{rocrand_name}
+%files -n %{pkg_name}
%if %{with gitcommit}
%doc projects/rocrand/README.md
%license projects/rocrand/LICENSE.md
@@ -257,18 +261,18 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocrand/LICENSE.md
%endif
%if %{with debug}
-%{pkg_prefix}/%{pkg_libdir}/librocrand-d.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}-d.so.%{pkg_library_version}{,.*}
%else
-%{pkg_prefix}/%{pkg_libdir}/librocrand.so.1{,.*}
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so.%{pkg_library_version}{,.*}
%endif
%files devel
%{pkg_prefix}/include/rocrand/
%{pkg_prefix}/%{pkg_libdir}/cmake/rocrand/
%if %{with debug}
-%{pkg_prefix}/%{pkg_libdir}/librocrand-d.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}-d.so
%else
-%{pkg_prefix}/%{pkg_libdir}/librocrand.so
+%{pkg_prefix}/%{pkg_libdir}/lib%{pkg_library_name}.so
%endif
%if %{with test}
@@ -278,6 +282,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/rocrand/LICENSE.md
%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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-10 23:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 23:51 [rpms/rocrand] 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