## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global rocm_release 6.2 %global rocm_patch 1 %global rocm_version %{rocm_release}.%{rocm_patch} %global upstreamname rocm_smi_lib %bcond_with doc Name: rocm-smi Version: %{rocm_version} %if 0%{?is_opensuse} || 0%{?rhel} && 0%{?rhel} < 10 Release: 1%{?dist} %else Release: %autorelease %endif Summary: ROCm System Management Interface Library License: NCSA and MIT and BSD URL: https://github.com/RadeonOpenCompute/%{upstreamname} Source0: %{url}/archive/refs/tags/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz %if 0%{?rhel} || 0%{?is_opensuse} ExclusiveArch: x86_64 %else # SMI requires the AMDGPU kernel module, which only builds on: ExclusiveArch: x86_64 aarch64 ppc64le riscv64 %endif BuildRequires: cmake %if %{with doc} # Fedora 38 has doxygen 1.9.6 %if 0%{?fedora} > 38 BuildRequires: doxygen >= 1.9.7 BuildRequires: doxygen-latex >= 1.9.7 %endif %endif BuildRequires: gcc-c++ %description The ROCm System Management Interface Library, or ROCm SMI library, is part of the Radeon Open Compute ROCm software stack . It is a C library for Linux that provides a user space interface for applications to monitor and control GPU applications. %package devel Summary: ROCm SMI Library development files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel ROCm System Management Interface Library development files %prep %autosetup -n %{upstreamname}-rocm-%{version} -p1 # Don't change default C FLAGS and CXX FLAGS: sed -i '/CMAKE_C.*_FLAGS/d' CMakeLists.txt %build %cmake -DFILE_REORG_BACKWARD_COMPATIBILITY=OFF -DCMAKE_INSTALL_LIBDIR=%{_lib} %cmake_build %install %cmake_install # For Fedora < 38, the README is not installed if doxygen is disabled: install -D -m 644 README.md %{buildroot}%{_docdir}/rocm_smi/README.md F=%{buildroot}%{_datadir}/doc/rocm_smi/LICENSE.txt if [ -f $F ]; then rm $F fi %files %doc %{_docdir}/rocm_smi %license License.txt %{_bindir}/rocm-smi %{_libexecdir}/rocm_smi %{_libdir}/librocm_smi64.so.1{,.*} %{_libdir}/liboam.so.1{,.*} %files devel %{_includedir}/rocm_smi/ %{_includedir}/oam/ %{_libdir}/librocm_smi64.so %{_libdir}/liboam.so %{_libdir}/cmake/rocm_smi/ %changelog ## START: Generated by rpmautospec * Sat Nov 16 2024 Tom Rix - 6.2.1-4 - Make docs optional * Sun Nov 03 2024 Tom Rix - 6.2.1-3 - Build on Tumbleweed * Wed Oct 30 2024 Tom Rix - 6.2.1-2 - RHEL is only x86_64 * Tue Sep 24 2024 Jeremy Newton - 6.2.1-1 - Update to 6.2.1 * Tue Sep 10 2024 Tim Flink - 6.2.0-3 - fixing test for rhel<10 so that it only affects el builds * Mon Sep 09 2024 Tom Rix - 6.2.0-2 - Handle autorelease on rhel < 10 * Thu Aug 08 2024 Jeremy Newton - 6.2.0-1 - Update to 6.2 * Fri Jul 19 2024 Fedora Release Engineering - 6.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Jeremy Newton - 6.1.2-1 - Update to 6.1.2 * Sun Mar 10 2024 Tom Rix - 6.0.2-1 - Update to 6.0.2 * Tue Feb 20 2024 Zhengyu He - 6.0.0-5 - Add support for riscv64 * Thu Oct 19 2023 Jeremy Newton - 5.7.1-1 - Update to 5.7.1 * Sun Sep 17 2023 Jeremy Newton - 5.7.0-1 - Update to 5.7 * Fri Jul 21 2023 Fedora Release Engineering - 5.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Jeremy Newton - 5.6.0-1 - Update to 5.6.0 - Replace fixes with upstream patches * Sun Jun 25 2023 Jeremy Newton - 5.5.1-2 - Rename to rocm-smi to replace existing retired package - Add patches to fix soversion * Fri Jun 23 2023 Jeremy Newton - 5.5.1-1 - Complete rewrite of spec file (start from scratch) * Wed Jan 27 2021 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 22 2020 Benjamin A. Beasley - 4.0.0-1 - Upstream version 4.0.0 (no changes whatsoever, still deprecated) * Fri Dec 11 2020 Benjamin A. Beasley - 3.10.0-1 - Upstream version 3.10.0 (no changes whatsoever, still deprecated) * Thu Nov 19 2020 Benjamin A. Beasley - 3.9.0-1 - Upstream version 3.9.0 (no changes except deprecation) - Deprecate package * Thu Oct 15 2020 Benjamin A. Beasley - 3.8.0-1 - Initial import (#1885684) ## END: Generated by rpmautospec