%define name sausage-api %define version 0.1.0 %define unmangled_version 0.1.0 %define unmangled_version 0.1.0 %define release 1 Summary: SLURM account usage API Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: GPLv3 Group: Application/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE Url: https://c4science.ch/source/sausage-api/ BuildRequires: python3-setuptools, python36-falcon, python36-gunicorn, python36-elasticsearch6 Requires: python36-falcon, python36-gunicorn, python36-elasticsearch6 %description SLURM account usage (Sausage) API ================================= This project implements a Falcon API service to display CPU / GPU consumption per account in a Slurm cluster. The service queries the elastic instance created by the jobcomp/elasticsearch plugin provided by SchedMD. %prep %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} %build python3 setup.py build %install python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root)