## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global daemon_name intel_lpmd Name: intel-lpmd Version: 0.0.8 Release: %autorelease Summary: Intel Low Power Mode Daemon License: GPL-2.0-or-later URL: https://github.com/intel/intel-lpmd Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: glib2-devel BuildRequires: gtk-doc BuildRequires: libnl3-devel BuildRequires: libxml2-devel BuildRequires: libtool BuildRequires: upower-devel BuildRequires: systemd-devel BuildRequires: systemd-units %description Intel Low Power Model Daemon is a Linux daemon used to optimize active idle power. It selects a set of most power efficient CPUs based on configuration file or CPU topology. Based on system utilization and other hints, it puts the system into Low Power Mode by activating the power efficient CPUs and disabling the rest, and restoring the system from Low Power Mode by activating all CPUs. %prep %autosetup -p1 # fedora path fix sed -i -e "s|etc|usr/share|" configure.ac %build aclocal --install gtkdocize --copy --flavour no-tmpl autoreconf --install --verbose %configure --disable-werror %make_build %install %make_install install -D -p -m 644 src/%{daemon_name}_dbus_interface.xml %{buildroot}/%{_datadir}/dbus-1/interfaces/org.freedesktop.%{daemon_name}.xml %post %systemd_post %{daemon_name}.service %preun %systemd_preun %{daemon_name}.service %postun %systemd_postun_with_restart %{daemon_name}.service %files %license COPYING %doc README.md %{_bindir}/%{daemon_name}_control %{_sbindir}/%{daemon_name} %dir %{_sysconfdir}/%{daemon_name} %config(noreplace) %{_sysconfdir}/%{daemon_name}/%{daemon_name}_config.xml %config(noreplace) %{_sysconfdir}/%{daemon_name}/%{daemon_name}_config_F6_M170.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.%{daemon_name}.xml %{_datadir}/dbus-1/system.d/org.freedesktop.%{daemon_name}.conf %{_datadir}/dbus-1/system-services/org.freedesktop.%{daemon_name}.service %{_unitdir}/%{daemon_name}.service %{_mandir}/man5/%{daemon_name}_config.xml.5* %{_mandir}/man8/%{daemon_name}.8* %changelog ## START: Generated by rpmautospec * Tue Oct 22 2024 Ali Erdinc Koroglu - 0.0.8-1 - Update to 0.0.8 (rhbz#2318716) * Tue Sep 24 2024 Ali Erdinc Koroglu - 0.0.7-1 - Update to 0.0.7 * Thu Aug 15 2024 Yaakov Selkowitz - 0.0.6-1 - Update to 0.0.6 * Thu Jul 18 2024 Fedora Release Engineering - 0.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 21 2024 Ali Erdinc Koroglu - 0.0.5-1 - Update to 0.0.5 * Fri Feb 09 2024 Ali Erdinc Koroglu - 0.0.3-1 - Update to 0.0.3 * Wed Jan 24 2024 Fedora Release Engineering - 0.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 15 2023 Ali Erdinc Koroglu - 0.0.2-1 - 1st release ## END: Generated by rpmautospec