2011-06-07 23:19:53 +00:00
|
|
|
#
|
2011-06-07 23:23:10 +00:00
|
|
|
# spec file for package python-Fabric
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
2018-01-22 11:18:13 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-08-08 13:51:17 +00:00
|
|
|
|
2011-06-07 23:19:53 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-14 11:57:06 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-01-22 11:18:13 +00:00
|
|
|
%define skip_python3 1
|
2011-09-02 07:46:23 +00:00
|
|
|
Name: python-Fabric
|
2017-10-06 13:56:56 +00:00
|
|
|
Version: 1.14.0
|
2011-09-02 07:46:23 +00:00
|
|
|
Release: 0
|
2017-10-06 14:49:51 +00:00
|
|
|
Summary: A Pythonic tool for remote execution and deployment
|
2011-11-10 10:50:13 +00:00
|
|
|
License: BSD-2-Clause
|
2011-06-07 23:19:53 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-02-20 22:17:34 +00:00
|
|
|
Url: http://fabfile.org
|
2017-10-06 13:56:56 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Fabric/Fabric-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Jinja2}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildRequires: %{python_module fudge}
|
|
|
|
BuildRequires: %{python_module nose}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: %{python_module paramiko >= 1.10}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-05-06 23:29:06 +00:00
|
|
|
Requires: python-paramiko >= 1.10
|
2013-10-24 11:05:36 +00:00
|
|
|
Requires: python-setuptools
|
2012-02-20 22:17:34 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%description
|
2017-10-06 14:49:51 +00:00
|
|
|
Fabric is a Python library and command-line tool for
|
2011-06-07 23:19:53 +00:00
|
|
|
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
|
2011-09-02 07:46:23 +00:00
|
|
|
commands (normally or via sudo) and uploading/downloading files, as well as
|
2011-06-07 23:19:53 +00:00
|
|
|
auxiliary functionality such as prompting the running user for input, or
|
|
|
|
aborting execution.
|
2011-09-02 07:46:23 +00:00
|
|
|
|
2017-10-06 14:49:51 +00:00
|
|
|
In addition to being used via the fab tool, Fabric's components may be imported
|
2011-06-07 23:19:53 +00:00
|
|
|
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
|
2017-10-06 14:49:51 +00:00
|
|
|
Fabric itself leverages).
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%prep
|
2011-09-02 07:46:23 +00:00
|
|
|
%setup -q -n Fabric-%{version}
|
2018-01-22 11:18:13 +00:00
|
|
|
sed -i 's/paramiko>=1.10,<2.0/paramiko>=1.10/g' setup.py # new paramiko is okay
|
2017-10-06 13:56:56 +00:00
|
|
|
sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%build
|
2017-10-06 13:56:56 +00:00
|
|
|
%python_build
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%install
|
2017-10-06 13:56:56 +00:00
|
|
|
%python_install
|
2018-01-22 11:18:13 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-06-07 23:19:53 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%check
|
2018-01-22 11:18:13 +00:00
|
|
|
# Breaks on the raise tests completely even in git
|
|
|
|
#%%python_exec setup.py test
|
2012-02-20 22:17:34 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%files %{python_files}
|
2018-01-22 11:18:13 +00:00
|
|
|
%doc AUTHORS LICENSE README.rst
|
|
|
|
%python2_only %{_bindir}/fab
|
2011-06-07 23:23:10 +00:00
|
|
|
%{python_sitelib}/*
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%changelog
|