%global modname phabricator Name: python-%{modname} Version: 0.7.0 Release: 1%{?dist} Summary: Phabricator API Bindings License: ASL 2.0 URL: https://github.com/disqus/python-phabricator Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %description %{summary}. %package -n python2-%{modname} Summary: %{summary} %{?python_provide:%python_provide python2-%{modname}} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-mock %description -n python2-%{modname} %{summary}. Python 2 version. %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-%{modname} %{summary}. Python 3 version. %prep %autosetup %build %py2_build %py3_build %install %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{modname} %license LICENSE %doc CHANGES README.rst %{python2_sitelib}/%{modname}-*.egg-info/ %{python2_sitelib}/%{modname}/ %files -n python3-%{modname} %license LICENSE %doc CHANGES README.rst %{python3_sitelib}/%{modname}-*.egg-info/ %{python3_sitelib}/%{modname}/ %changelog * Sat Jan 07 2017 Igor Gnatenko - 0.7.0-1 - Initial package