# # spec file for package python-Fabric # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_with test %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Fabric Version: 1.14.0 Release: 0 Summary: A Pythonic tool for remote execution and deployment License: BSD-2-Clause Group: Development/Languages/Python Url: http://fabfile.org Source: https://files.pythonhosted.org/packages/source/F/Fabric/Fabric-%{version}.tar.gz # Test requirements: #TODO: Disabled due to errors / fudge requirement #BuildRequires: python-fudge #BuildRequires: python-nose # Documentation requirements: BuildRequires: %{python_module devel} BuildRequires: %{python_module paramiko >= 1.10} BuildRequires: %{python_module setuptools} %if %{with test} # SECTION test requirements BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module fudge} BuildRequires: %{python_module nose} # /SECTION %endif BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx Requires: python-paramiko >= 1.10 Requires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. It provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running user for input, or aborting execution. In addition to being used via the fab tool, Fabric's components may be imported into other Python code, providing a Pythonic interface to the SSH protocol suite at a higher level than that provided by e.g. Paramiko (which Fabric itself leverages). %prep %setup -q -n Fabric-%{version} sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge %build %python_build python3 setup.py build_sphinx --source-dir=sites/docs && rm -r build/sphinx/html/.buildinfo && mv build/sphinx/html html %install %python_install %if %{with test} %check %python_exec setup.py test %endif %files %{python_files} %defattr(-,root,root,-) %doc AUTHORS LICENSE README.rst html %python3_only %{_bindir}/fab %{python_sitelib}/* %changelog