Name: ananicy Version: 2.2.1 Release: 1%{?dist} Summary: ANother Auto NICe daemon License: GPLv3+ URL: https://github.com/Nefelim4ag/Ananicy Source0: https://github.com/Nefelim4ag/Ananicy/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: python3-devel BuildRequires: systemd Requires: schedtool %description ANother Auto NICe daemon %prep %autosetup -n Ananicy-%{version} %{__sed} -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|' ananicy.py %build %install %{__make} install PREFIX="%{buildroot}" %{__mv} "%{buildroot}/lib" "%{buildroot}%{_prefix}" %files %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/ananicy.d/ananicy.conf %config %{_sysconfdir}/ananicy.d/00-* %{_sysconfdir}/ananicy.d %{_unitdir}/ananicy.service %post %systemd_post ananicy.service %preun %systemd_preun ananicy.service %postun %systemd_postun_with_restart ananicy.service