%global srcname tuned-ekaaty %bcond_with git %if 0%{?with_git:1} %define gitref main %endif Name: tuned-profiles-ekaaty Version: %{?ekaaty:%ekaaty}%{!?ekaaty:9.0} Release: 1%{?git:+git~%{gitref}}%{?dist} Summary: Hardened by-default tuned profiles for Ekaaty Linux License: CC-BY-SA-3.0 URL: https://github.com/ekaaty/tuned-ekaaty %if 0%{?git:1} > 0 Source0: %url/archive/%{gitref}.tar.gz#/%{srcname}-git~%{gitref}.tar.gz %else Source0: %url/archive/v%{version}/%{srcname}-%{version}.tar.gz %endif BuildArch: noarch BuildRequires: make Requires: tuned Requires: tuned-ppd %description These profiles are designed to provide an out-of-the-box balance between security, system responsiveness, power efficiency, and hardware utilization across multiple microarchitectures. %prep %if 0%{?git:1} > 0 %setup -n %{srcname}-%{git} %else %setup -n %{srcname}-%{version} %endif %build %install export PROFILESDIR=%{buildroot}%{_sysconfdir}/tuned/profiles %make_install \ DESTDIR=${PROFILESDIR} ln -sf ekaaty/ekaaty-hardened-balanced ${PROFILESDIR}/balanced ln -sf ekaaty/ekaaty-hardened-balanced-battery ${PROFILESDIR}/balanced-battery ln -sf ekaaty/ekaaty-hardened-powersave ${PROFILESDIR}/powersave ln -sf ekaaty/ekaaty-hardened-performance ${PROFILESDIR}/throughput-performance mv LICENSE CC-BY-SA-3.0.txt %files %defattr(-,root,root,-) %license CC-BY-SA-3.0.txt %doc README.md %{_sysconfdir}/tuned/profiles/ekaaty/ # Links for Powerdevil compatibility %{_sysconfdir}/tuned/profiles/balanced %{_sysconfdir}/tuned/profiles/balanced-battery %{_sysconfdir}/tuned/profiles/powersave %{_sysconfdir}/tuned/profiles/throughput-performance %changelog * Thu Jul 09 2026 Ekaaty Build Service - 9.0-1 - Initial RPM package release