File roc-smi.spec of Package roc-smi
#
# spec file for package roc-smi
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: roc-smi
Version: 3.0.0
Release: 0
Summary: ROCm System Management Interface
License: MIT
URL: https://github.com/RadeonOpenCompute/ROC-smi
Source: https://github.com/RadeonOpenCompute/ROC-smi/archive/roc-%{version}.tar.gz
BuildRequires: python3-base
Requires: python3
BuildArch: noarch
%description
The rocm-smi tool. This tool exposes functionality for clock and temperature management of your ROCm enabled system.
%prep
%setup -q -n ROC-smi-roc-%{version}
# fix python shebang py2 is gone
sed -i -e 's:%{_bindir}/env python:%{_bindir}/python3:' rocm_smi.py
%build
:
%install
install -Dm0755 rocm_smi.py %{buildroot}%{_bindir}/rocm_smi
%files
%license LICENSE
%doc README.md
%{_bindir}/rocm_smi
%changelog