From d89cbe3db6e3d2aecd0aeb8a73250fabace58f77 Mon Sep 17 00:00:00 2001 From: Christophe Henry Date: Mon, 29 Aug 2022 17:38:48 +0200 Subject: [PATCH] Add .spec file for RPM build on COPR --- scripts/RyzenAdj.spec | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 scripts/RyzenAdj.spec diff --git a/scripts/RyzenAdj.spec b/scripts/RyzenAdj.spec new file mode 100644 index 00000000..828ccb85 --- /dev/null +++ b/scripts/RyzenAdj.spec @@ -0,0 +1,35 @@ +Name: RyzenAdj +Version: 0.11.1 +Release: 1%{?dist} +Summary: Adjust power management settings for Ryzen APUs + +License: LGPL-3.0 license +URL: https://github.com/FlyGoat/RyzenAdj + +Source0: https://github.com/FlyGoat/RyzenAdj/archive/refs/tags/v%{version}.tar.gz + +BuildArch: x86_64 + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: pciutils-devel + +%description +Adjust power management settings for Ryzen APUs + +%prep +%autosetup + +%build +%cmake +%cmake_build + +%install +mkdir -p %{buildroot}%{_bindir} +mv %{_builddir}/%{name}-%{version}/%__cmake_builddir/ryzenadj %{buildroot}%{_bindir}/ryzenadj + +%files +%{_bindir}/ryzenadj +%license LICENSE +%doc README.md