%global srcname fabric3 %global common_desc Fabric3 is a fork of Fabric to provide compatability with Python 3.4+.\ The port still works with Python 2.7. Name: python-%{srcname} Version: 1.10.3.post3 Release: 1%{?dist} Summary: Python3-compatible fork of Fabric License: ASL 2.0 URL: https://github.com/mathiasertl/fabric # https://pypi.python.org/pypi/Fabric3/ Source0: https://github.com/mathiasertl/fabric/archive/%{version}/fabric-%{version}.tar.gz BuildArch: noarch %description %{common_desc} # This module is Python 3 only %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-fudge BuildRequires: python3-nose BuildRequires: python3-jinja2 Requires: python3-paramiko Requires: python3-six %description -n python3-%{srcname} %{common_desc} %prep %autosetup -n fabric-%{version} # rename fab tool to fab3 until we decide # which fabric is the default one sed -i 's/fab = fabric.main:main/fab3 = fabric.main:main/' setup.py # Remove ver deps sed -i 's/fudge<1.0/fudge/' setup.py %build %py3_build %install %py3_install %check # Test suite fails with fudge>=1.0 #%%{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE %doc README.rst AUTHORS %{python3_sitelib}/fabfile/ %{python3_sitelib}/fabric/ %{python3_sitelib}/Fabric3-*.egg-info/ %{_bindir}/fab3 %changelog * Sat Dec 03 2016 Athmane Madjoudj - 1.10.3.post3 - Initial spec