%define name python-linstor %define version 1.0.15 %define release 2 Summary: Linstor python api Name: %{name} Version: %{version} Release: %{release} Source0: https://www.linbit.com/downloads/linstor/%{name}-%{version}.tar.gz License: GPLv3 Group: System Environment/Daemons BuildArch: noarch Vendor: LINBIT HA-Solutions GmbH Packager: LINSTOR Team Url: https://www.linbit.com BuildRequires: python3 python3-setuptools %description Python linstor api interface %prep %setup -n %{name}-%{version} -n %{name}-%{version} %build make PYTHON=python3 gensrc 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)