## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 # UMR is designed to be a static lib %undefine _cmake_shared_libs Summary: AMDGPU Userspace Register Debugger Name: umr Version: 1.0.10 Release: %autorelease License: MIT URL: https://gitlab.freedesktop.org/tomstdenis/umr Source0: https://gitlab.freedesktop.org/tomstdenis/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz #Glibc is too old prior to EL7, enable rt linking to avoid compilation failure %if 0%{?rhel} && 0%{?rhel} < 7 %global enablert 1 %endif #UMR requires llvm >= 7 to enable llvm features, enable for EL8+/F29+ %if 0%{?rhel} > 7 || 0%{?fedora} > 28 BuildRequires: llvm-devel %else %global disablellvm 1 %endif #UMR requires a recent libdrm enable libdrm features, enable for EL8+/Fedora %if 0%{?rhel} > 7 || 0%{?fedora} BuildRequires: libdrm-devel %else %global disablelibdrm 1 %endif BuildRequires: cmake%{?rhel:3} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libpciaccess-devel BuildRequires: mesa-libgbm-devel BuildRequires: nanomsg-devel BuildRequires: ncurses-devel BuildRequires: SDL2-devel BuildRequires: zlib-devel Requires: bash-completion #Disable unnecessary arches, as umr requires the amdgpu kernel module: ExclusiveArch: x86_64 aarch64 ppc64le %description AMDGPU Userspace Register Debugger (UMR) is a tool to read and display, as well as write to AMDGPU device MMIO, PCIE, SMC, and DIDT registers via userspace. %prep %autosetup -p1 -n %{name}-%{version} %build %{!?cmake:%global cmake %%cmake3} %cmake %{?disablellvm:-DUMR_NO_LLVM=ON} \ %{?disablelibdrm:-DUMR_NO_DRM=ON} \ %{?enablert:-DUMR_NEED_RT=ON} \ -DCMAKE_BUILD_TYPE="RELEASE" %cmake_build %install %cmake_install %fdupes %{buildroot}%{_datadir}/%{name} %files %doc README %license LICENSE #Note: umrgui is a symlink to umr, so a gui subpackage doesn't seem valuable %{_bindir}/%{name}* %{_mandir}/man1/* %{_datadir}/%{name} %{_datadir}/bash-completion/completions/%{name} %changelog ## START: Generated by rpmautospec * Tue Sep 24 2024 Jeremy Newton - 1.0.10-3 - Rebuild for libnanomsg update * Sat Jul 20 2024 Fedora Release Engineering - 1.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Jeremy Newton - 1.0.10-1 - Update to 1.0.10 * Mon Apr 01 2024 Jeremy Newton - 1.0.9-1 - Update to 1.0.9 * Sat Jan 27 2024 Fedora Release Engineering - 1.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 01 2023 Jeremy Newton - 1.0.8-1 - Update to 1.0.8 * Wed Mar 29 2023 Jeremy Newton - 1.0.7-1 - Update to 1.0.7 * Mon Jan 23 2023 Jeremy Newton - 1.0.6-1 - Update to 1.0.6 * Sat Jan 21 2023 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 19 2022 Jeremy Newton - 1.0.5-1 - Update to 1.0.5 * Mon Sep 19 2022 Pete Walter - 1.0-14.20220107git02f162c - Rebuild for llvm 15 * Sat Jul 23 2022 Fedora Release Engineering - 1.0-13.20220107git02f162c - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.0-12.20220107git02f162c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Jeremy Newton - 1.0-11.20220107git02f162c - Update to newer git * Fri Jul 23 2021 Fedora Release Engineering - 1.0-10.20210115git8bf83ae - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 20 2021 Jeremy Newton - 1.0-9.20210115git8bf83ae - Update to newer git * Wed Jul 29 2020 Fedora Release Engineering - 1.0-8.20200709gitcf9e2f8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 09 2020 Jeremy Newton - 1.0-7.20200709gitcf9e2f8 - Update to newer git - Drop static llvm dependency * Fri Jan 31 2020 Fedora Release Engineering - 1.0-6.20191210git0affde7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 15 2019 Fedora Release Engineering - 1.0-5.20191210git0affde7 - Update to newer git * Sat Jul 27 2019 Fedora Release Engineering - 1.0-4.20190514gitcb1cb54 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed May 29 2019 Jeremy Newton 1.0-3.20190514gitcb1cb54 - Update to newer git, switch to gitlab * Wed Apr 03 2019 Jeremy Newton 1.0-2.20190403git1139876 - Update to newer git, fixes install issues and all patches upstreamed - Add missing static provides for devel * Thu Mar 21 2019 Jeremy Newton 1.0-1.20190322.git51112c7 - Initial Package ## END: Generated by rpmautospec