## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 13; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: intel-undervolt Version: 1.7 Release: %autorelease Summary: Intel CPU undervolting and throttling configuration tool License: GPLv3+ URL: https://github.com/kitsunyan/intel-undervolt Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz ExclusiveArch: i386 x86_64 BuildRequires: gcc BuildRequires: make BuildRequires: systemd %{?systemd_requires} %description intel-undervolt is a tool for undervolting and throttling limits alteration for Intel CPUs. Undervolting works on Haswell and newer CPUs and based on the content of this article https://github.com/mihic/linux-intel-undervolt %prep %autosetup -p1 # Cant build with proper build flags on Fedora # * https://github.com/kitsunyan/intel-undervolt/issues/31 sed -i 's|CFLAGS =|CFLAGS =%{build_cflags}|' \ Makefile.in %build %set_build_flags %configure \ --enable-systemd %make_build %install %make_install %post %systemd_post %{name}.service %{name}-loop.service %preun %systemd_preun %{name}.service %{name}-loop.service %postun %systemd_postun_with_restart %{name}.service %{name}-loop.service %files %license COPYING %doc README.md %{_bindir}/%{name} %{_unitdir}/*.service %config(noreplace) %{_sysconfdir}/%{name}.conf %changelog * Thu Jul 21 2022 Fedora Release Engineering 1.7-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri May 20 2022 Artem Polishchuk 1.7-12 - style: Minor Spec file improvements * Fri May 20 2022 Artem Polishchuk - 1.7-9 - build: Drop custom LTO flags override * Thu Jan 20 2022 Fedora Release Engineering - 1.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1.7-6 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Aug 29 2019 Artem Polishchuk - 1.7-2 - Update to 1.7 * Mon Apr 29 2019 Artem Polishchuk - 1.6-2 - Initial package