%define srcname shellingham %define debug_package %{nil} Name: python-shellingham Version: 1.5.0 Release: %mkrel 1 Summary: Tool to detect surrounding Shell Group: Development/Python License: GPLv2+ URL: https://pypi.org/project/shellingham/ Source0: https://files.pythonhosted.org/packages/1f/13/fab0a3f512478bc387b66c51557ee715ede8e9811c77ce952f9b9a4d8ac1/%{srcname}-%{version}.post1.tar.gz ExclusiveArch: i586 x86_64 aarch64 %description Tool to detect surrounding Shell %package -n python3-shellingham Summary: Tool to detect surrounding Shell Group: Development/Python BuildRequires: pyproject-rpm-macros BuildRequires: python3dist(setuptools) BuildRequires: pkgconfig(python3) %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-shellingham Tool to Detect Surrounding Shell %prep %setup -q -n %{srcname}-%{version}.post1 %build %pyproject_wheel %install %pyproject_install %pyproject_save_files shellingham %files -n python3-shellingham -f %{pyproject_files}