%global sum Python bindings for xapps Name: python-xapp Version: 1.0.0 Release: 1%{?dist} Summary: %{sum} License: GPLv2 URL: https://github.com/linuxmint/%{name} Source0: %url/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch %description %{sum}. %package -n python2-xapp Summary: %{sum} BuildRequires: python2-devel BuildRequires: python2-setuptools Requires: python2-psutil %{?python_provide:%python_provide python2-xapp} %description -n python2-xapp %{sum}. %package -n python3-xapp Summary: %{sum} BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-psutil %{?python_provide:%python_provide python3-xapp} %description -n python3-xapp %{sum}. %prep %autosetup -p1 %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-xapp %license COPYING #doc README TODO AUTHORS %{python2_sitelib}/xapp/ %{python2_sitelib}/python_xapp-%{version}-py%{python2_version}.egg-info %files -n python3-xapp %license COPYING #doc README TODO AUTHORS %{python3_sitelib}/xapp/ %{python3_sitelib}/python_xapp-%{version}-py%{python3_version}.egg-info %changelog * Mon May 01 2017 Leigh Scott - 1.0.0-1 - first build