public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hiprand] epel10: Convert gitcommit to preview
@ 2026-06-11 12:46 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-11 12:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hiprand
Branch : epel10
Commit : c1c4dce5c799422335137cefa43df4aa24083a22
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-02-28T06:47:13-08:00
Stats : +17/-32 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/hiprand/c/c1c4dce5c799422335137cefa43df4aa24083a22?branch=epel10
Log:
Convert gitcommit to preview
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/.gitignore b/.gitignore
index e5145af..34d1981 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/hipRAND-7.0.1.tar.gz
/hipRAND-7.1.0.tar.gz
/hiprand-7.2.0.tar.gz
+/hiprand-7.11.0.tar.gz
diff --git a/hiprand.spec b/hiprand.spec
index e9550e8..f722117 100644
--- a/hiprand.spec
+++ b/hiprand.spec
@@ -19,16 +19,19 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
-%bcond_with gitcommit
-%if %{with gitcommit}
-%global commit0 2584e35062ad9c2edb68d93c464cf157bc57e3b0
-%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
-%global date0 20250926
-%endif
-
%global upstreamname hiprand
+
+%bcond_with preview
+%if %{with preview}
+%global rocm_release 7.11
+%global rocm_patch 0
+%global pkg_src therock-%{rocm_release}
+%else
%global rocm_release 7.2
%global rocm_patch 0
+%global pkg_src rocm-%{rocm_release}.%{rocm_patch}
+%endif
+
%global rocm_version %{rocm_release}.%{rocm_patch}
%bcond_with compat
@@ -82,21 +85,17 @@
%global _binary_payload w7T0.xzdio
Name: %{hiprand_name}
-%if %{with gitcommit}
-Version: git%{date0}.%{shortcommit0}
-Release: 3%{?dist}
-%else
Version: %{rocm_version}
+%if %{with preview}
+Release: 1%{?dist}
+%else
Release: 2%{?dist}
%endif
+
Summary: HIP random number generator
License: MIT AND BSD-3-Clause
URL: https://github.com/ROCm/rocm-libraries
-%if %{with gitcommit}
-Source0: %{url}/archive/%{commit0}/rocm-libraries-%{shortcommit0}.tar.gz
-%else
-Source0: %{url}/releases/download/rocm-%{version}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
-%endif
+Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
@@ -156,12 +155,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%endif
%prep
-%if %{with gitcommit}
-%setup -q -n rocm-libraries-%{commit0}
-cd projects/hiprand
-%else
%autosetup -p1 -n %{upstreamname}
-%endif
#Remove RPATH:
sed -i '/INSTALL_RPATH/d' CMakeLists.txt
@@ -174,9 +168,6 @@ sed -i '/INSTALL_RPATH/d' CMakeLists.txt
sed -i -e 's@set(CMAKE_CXX_STANDARD 11)@set(CMAKE_CXX_STANDARD 14)@' {,test/package/}CMakeLists.txt
%build
-%if %{with gitcommit}
-cd projects/hiprand
-%endif
%cmake \
-DCMAKE_C_COMPILER=%rocmllvm_bindir/amdclang \
@@ -197,9 +188,6 @@ cd projects/hiprand
%cmake_build
%install
-%if %{with gitcommit}
-cd projects/hiprand
-%endif
%cmake_install
rm -f %{buildroot}%{pkg_prefix}/share/doc/hiprand/LICENSE.md
@@ -217,13 +205,8 @@ export LD_LIBRARY_PATH=$PWD/build/library:$LD_LIBRARY_PATH
%endif
%files
-%if %{with gitcommit}
-%doc projects/hiprand/README.md
-%license projects/hiprand/LICENSE.md
-%else
%doc README.md
%license LICENSE.md
-%endif
%if %{with debug}
%{pkg_prefix}/%{pkg_libdir}/libhiprand-d.so.1{,.*}
%else
diff --git a/sources b/sources
index d58879a..a51061a 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
SHA512 (hiprand-7.2.0.tar.gz) = f1b9d254ecd246ff6815c28575bd51422710d6503aff025505bad5821948cbbfd2b5b707de07c17e1aec379c7b347c409d13c2b25a6c4d7996f0323e21da7c89
+SHA512 (hiprand-7.11.0.tar.gz) = cb5e1b0e0cc52f0c287916515012ba2f21572083b28b78abe2aaabf7d89002bd607902bd1e26dc846262d96245beba5388423f5c224d5f49e70c0a2e98e874b5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-11 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 12:46 [rpms/hiprand] epel10: Convert gitcommit to preview Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox