%global github_name icmplib %global _description\ The icmplib is an implementation of the ICMP protocol in Python. Name: python-%{github_name} Version: 3.0.3 Release: 1%{?dist} Summary: An implementation of the ICMP protocol in Python License: LGPLv3 URL: https://github.com/ValentinBELYN/icmplib Source0: https://github.com/ValentinBELYN/%{github_name}/archive/refs/tags/v%{version}.tar.gz#/%{github_name}-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-%{github_name} Summary: %{summary} BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-wheel %generate_buildrequires %pyproject_buildrequires -r %description -n python3-%{github_name} %_description %prep %autosetup -p1 -n %{github_name}-%{version} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{github_name} %check %py3_check_import icmplib %files -n python3-%{github_name} -f %{pyproject_files} %doc README.md %license LICENSE %changelog * Mon Feb 06 2023 George Frolov - 3.0.3-1 - add icmplib