File intel-undervolt.spec of Package intel-undervolt

%global pkg intel-undervolt-%{version}

Name: intel-undervolt
Version: 1.7
Release: 0
Summary: Intel CPU undervolting and throttling configuration tool
License: GPLv3
Source0: %{pkg}.tar.gz

BuildRequires: gcc make
Requires: systemd

BuildArch: x86_64

%description
Intel CPU undervolting and throttling configuration tool

%prep
%setup -n %{pkg}
sed -i 's|CFLAGS =|CLAGS=%{build_cflags}|' Makefile.in

%build
./configure
make

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 intel-undervolt $RPM_BUILD_ROOT%{_bindir}/

%files
%{_bindir}/intel-undervolt

%changelog 
* Fri Jun 06 2025 slimbook <dev@slimbook.es> 1.7-1
- No longer using systemd service

* Wed May 21 2025 slimbook <dev@slimbook.es> 1.7-0
- Upstream version 1.7
openSUSE Build Service is sponsored by