%define unmangled_name pyrad %define version 2.4 %define unmangled_version 2.4 %define release 1 Summary: Python RADIUS tools Name: python3-%{unmangled_name} Version: %{version} Release: %{release} Source0: %{unmangled_name}-%{unmangled_version}.tar.gz License: BSD Group: Development/Libraries BuildArch: noarch Url: https://github.com/pyradius/pyrad BuildRequires: python3-setuptools pipenv python3-netaddr python3-nose %description pyrad is an implementation of a RADIUS client/server as described in RFC2865. It takes care of all the details like building RADIUS packets, sending them and decoding responses. %prep %setup -n %{unmangled_name}-%{unmangled_version} %build python3 setup.py build %check unshare python3 setup.py test %install python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %files -f INSTALLED_FILES %defattr(-,root,root) %license LICENSE.txt %doc README.rst TODO.rst CHANGES.rst %changelog * Mon Apr 19 2021 Alexander Bokovoy - 2.4-1 - Initial build