Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c718d366ea | |||
| ca03c16e58 |
69
amdsmi.spec
69
amdsmi.spec
@@ -1,3 +1,24 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
%global rocm_release 6.4
|
||||
%global rocm_patch 2
|
||||
%global rocm_version %{rocm_release}.%{rocm_patch}
|
||||
@@ -19,7 +40,7 @@
|
||||
|
||||
Name: amdsmi
|
||||
Version: %{rocm_version}
|
||||
Release: 4%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: AMD System Management Interface
|
||||
|
||||
License: NCSA AND MIT AND BSD-3-Clause
|
||||
@@ -125,36 +146,16 @@ else
|
||||
fi
|
||||
|
||||
# Remove some things
|
||||
if [ -d %{buildroot}/usr/share/example ]; then
|
||||
rm -rf %{buildroot}/usr/share/example
|
||||
fi
|
||||
if [ -d %{buildroot}/usr/share/amd_smi/example ]; then
|
||||
rm -rf %{buildroot}/usr/share/amd_smi/example
|
||||
fi
|
||||
if [ -f %{buildroot}/usr/share/doc/amd_smi-asan/LICENSE.txt ]; then
|
||||
rm %{buildroot}/usr/share/doc/amd_smi-asan/LICENSE.txt
|
||||
fi
|
||||
if [ -f %{buildroot}/usr/share/doc/amd_smi/LICENSE.txt ]; then
|
||||
rm %{buildroot}/usr/share/doc/amd_smi/LICENSE.txt
|
||||
fi
|
||||
if [ -f %{buildroot}/usr/share/doc/amd_smi/README.md ]; then
|
||||
rm %{buildroot}/usr/share/doc/amd_smi/README.md
|
||||
fi
|
||||
if [ -f %{buildroot}/usr/share/doc/amd_smi/copyright ]; then
|
||||
rm %{buildroot}/usr/share/doc/amd_smi/copyright
|
||||
fi
|
||||
if [ -f %{buildroot}%{_datadir}/_version.py ]; then
|
||||
rm %{buildroot}%{_datadir}/_version.py
|
||||
fi
|
||||
if [ -f %{buildroot}%{_datadir}/amd_smi/_version.py ]; then
|
||||
rm %{buildroot}%{_datadir}/amd_smi/_version.py
|
||||
fi
|
||||
if [ -f %{buildroot}%{_datadir}/setup.py ]; then
|
||||
rm %{buildroot}%{_datadir}/setup.py
|
||||
fi
|
||||
if [ -f %{buildroot}%{_datadir}/amd_smi/setup.py ]; then
|
||||
rm %{buildroot}%{_datadir}/amd_smi/setup.py
|
||||
fi
|
||||
rm -rf %{buildroot}/usr/share/example
|
||||
rm -rf %{buildroot}/usr/share/amd_smi/example
|
||||
rm -rf %{buildroot}/usr/share/doc/amd_smi-asan/LICENSE.txt
|
||||
rm -f %{buildroot}/usr/share/doc/amd_smi/LICENSE.txt
|
||||
rm -f %{buildroot}/usr/share/doc/amd_smi/README.md
|
||||
rm -rf %{buildroot}/usr/share/doc/amd_smi/copyright
|
||||
rm -f %{buildroot}%{_datadir}/_version.py
|
||||
rm -f %{buildroot}%{_datadir}/amd_smi/_version.py
|
||||
rm -f %{buildroot}%{_datadir}/setup.py
|
||||
rm -f %{buildroot}%{_datadir}/amd_smi/setup.py
|
||||
|
||||
# W: unstripped-binary-or-object /usr/lib/python3.13/site-packages/amdsmi/libamd_smi.so
|
||||
# Does an explict open, so can not just rm it
|
||||
@@ -200,6 +201,12 @@ mv %{buildroot}%{_datadir}/tests %{buildroot}%{_datadir}/amdsmi/.
|
||||
%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
|
||||
|
||||
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 6.4.2-4
|
||||
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user