%global pypi_name productivity Name: python-%{pypi_name} Version: 0.6.0 Release: 1%{?dist} Summary: Python driver for AutomationDirect Productivity Series PLCs License: GPLv2 URL: http://github.com/numat/productivity/ Source0: %{pypi_source} BuildArch: noarch %description Python driver and command-line tool for AutomationDirect Productivity Series PLCs. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Python driver and command-line tool for AutomationDirect Productivity Series PLCs. %prep %autosetup -n %{pypi_name}-%{version} sed -i -e '5,8d' setup.py rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.md %license LICENSE %{_bindir}/productivity %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Sun Sep 19 2021 Fabian Affolter - 0.6.0-1 - Update to latest upstream release 0.6.0 (closes rhbz#1892887) * Fri Jul 23 2021 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.4.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Oct 06 2020 Fabian Affolter - 0.4.1-1 - Initial package for Fedora