Skip to content

Commit

Permalink
Add .spec file for RPM build on COPR
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehenry committed Sep 16, 2022
1 parent a3b8ba4 commit 21ad2e0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions scripts/RyzenAdj.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

%changelog

* Fri Sep 16 2022 Christophe Henry <[email protected]> - 0.11.1
- First Fedora package

0 comments on commit 21ad2e0

Please sign in to comment.