%define name cpuset %define version 1.6 %define unmangled_version 1.6 %define release 1 Summary: Allows manipulation of cpusets and provides higher level functions. Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: GPLv2 Group: System/Management BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Libor Pechacek Requires: python3 Url: https://github.com/lpechacek/cpuset BuildRequires: python3 python3-devel asciidoc xmlto %description Cpuset is a Python application to make using the cpusets facilities in the Linux kernel easier. The actual included command is called cset and it allows manipulation of cpusets on the system and provides higher level functions such as implementation and control of a basic cpu shielding setup. %prep %setup -n %{name}-%{unmangled_version} %build python3 setup.py build %install python3 setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root)