Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 654a3a9b94 |
6
changelog
Normal file
6
changelog
Normal file
@@ -0,0 +1,6 @@
|
||||
* Fri Dec 22 2023 Jeremy Newton <alexjnewt at hotmail dot com> - 6.0.0-2
|
||||
- Add test package
|
||||
- Use rocm toolchain instead of clang (requires rocm macros)
|
||||
|
||||
* Thu Dec 21 2023 Jeremy Newton <alexjnewt at hotmail dot com> - 6.0.0-1
|
||||
- Initial package
|
||||
48
hiprand.spec
48
hiprand.spec
@@ -1,24 +1,3 @@
|
||||
#
|
||||
# Copyright Fedora Project Authors.
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
#
|
||||
%if 0%{?suse_version}
|
||||
%global hiprand_name libhiprand1
|
||||
%else
|
||||
@@ -62,7 +41,7 @@
|
||||
|
||||
Name: %{hiprand_name}
|
||||
Version: %{rocm_version}
|
||||
Release: 6%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: HIP random number generator
|
||||
|
||||
Url: https://github.com/ROCm/%{upstreamname}
|
||||
@@ -130,12 +109,10 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
#Remove RPATH:
|
||||
sed -i '/INSTALL_RPATH/d' CMakeLists.txt
|
||||
|
||||
# On Tumbleweed Q2,2025
|
||||
# /usr/include/gtest/internal/gtest-port.h:279:2: error: C++ versions less than C++14 are not supported.
|
||||
# 279 | #error C++ versions less than C++14 are not supported.
|
||||
# https://github.com/ROCm/hipRAND/issues/222
|
||||
# Convert the c++11's to c++14
|
||||
sed -i -e 's@set(CMAKE_CXX_STANDARD 11)@set(CMAKE_CXX_STANDARD 14)@' {,test/package/}CMakeLists.txt
|
||||
# On Tumbleweed 20250817
|
||||
# /usr/include/gtest/internal/gtest-port.h:273:2: error: C++ versions less than C++17 are not supported.
|
||||
# Convert the c++11's to c++17
|
||||
sed -i -e 's@set(CMAKE_CXX_STANDARD *11)@set(CMAKE_CXX_STANDARD 17)@' {,test/package/}CMakeLists.txt
|
||||
|
||||
%build
|
||||
|
||||
@@ -159,8 +136,12 @@ sed -i -e 's@set(CMAKE_CXX_STANDARD 11)@set(CMAKE_CXX_STANDARD 14)@' {,test/pack
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
rm -f %{buildroot}%{_prefix}/share/doc/hiprand/LICENSE.txt
|
||||
rm -f %{buildroot}%{_prefix}/bin/hipRAND/CTestTestfile.cmake
|
||||
if [ -f %{buildroot}%{_prefix}/share/doc/hiprand/LICENSE.txt ]; then
|
||||
rm %{buildroot}%{_prefix}/share/doc/hiprand/LICENSE.txt
|
||||
fi
|
||||
if [ -f %{buildroot}%{_prefix}/bin/hipRAND/CTestTestfile.cmake ]; then
|
||||
rm %{buildroot}%{_prefix}/bin/hipRAND/CTestTestfile.cmake
|
||||
fi
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
@@ -191,11 +172,8 @@ export LD_LIBRARY_PATH=$PWD/build/library:$LD_LIBRARY_PATH
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Aug 27 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-6
|
||||
- Add Fedora copyright
|
||||
|
||||
* Mon Aug 25 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-5
|
||||
- Simplify file removal
|
||||
* Thu Aug 14 2025 Egbert Eich <eich@suse.com> - 6.4.2-5
|
||||
Up C++ standard to version 17 to comply with recent gtest.
|
||||
|
||||
* Wed Jul 30 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-4
|
||||
- Remove -mtls-dialect cflag
|
||||
|
||||
Reference in New Issue
Block a user