%define debug_package %{nil} Name: dis3 Version: 0.1.3 Release: 1%{?dist} Summary: dis3 is a Python 2.7 backport of the dis module from Python 3.5. License: MIT / PSF URL: https://github.com/KeyWeeUsr/python-dis3 Source0: %{name}-%{version}.tar.gz %description dis3 is a Python 2.7 backport of the dis module from Python 3.5. %package -n python2-%{name} Summary: dis3 is a Python 2.7 backport of the dis module from Python 3.5. BuildRequires: python2-devel BuildRequires: python2-setuptools Provides: python2-dis3 = %{version}-%{release} %{?python_provide:%python_provide python2-%{name}} %description -n python2-%{name} dis3 is a Python 2.7 backport of the dis module from Python 3.5. %prep %autosetup %build %py2_build %install %py2_install %files -n python2-%{name} %{python2_sitelib}/dis3-%{version}-py%{python2_version}.egg-info/* %{python2_sitelib}/dis3.py %{python2_sitelib}/dis3.pyc %{python2_sitelib}/dis3.pyo