%define pkg_name snap7 %define pkg_summary A Python wrapper for the snap7 PLC communication library %define debug_package %{nil} Name: python-%{pkg_name} Version: 0.11 Release: 1%{?dist} Summary: %{pkg_summary} License: MIT URL: https://github.com/gijzelaerr/python-snap7 Source0: python-%{pkg_name}-%{version}.tar.gz ##Patch0: setup.py-setuptools.patch BuildRequires: python3-devel %description %{pkg_summary} %package -n %{pkg_name} Summary: %{pkg_summary} Requires: python3-%{pkg_name} %description -n %{pkg_name} %{pkg_summary} %package -n python3-%{pkg_name} Summary: %{pkg_summary} %{?python_provide:%python_provide python3-%{pkg_name}} %description -n python3-%{pkg_name} %{pkg_summary} %prep %autosetup -n python-%{pkg_name}-%{version} %build %py3_build %install rm -rf $RPM_BUILD_ROOT %py3_install %clean rm -rf $RPM_BUILD_ROOT %files -n %{pkg_name} /usr/bin/* %files -n python3-%{pkg_name} %{python3_sitelib}/* %changelog * Sat Nov 17 2018 Daniel Mach - 0.10-1 - Upgrade to new upstream version * Sun Apr 22 2018 Daniel Mach - 0.9-1 - Initial build