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
|
|
|
#
|
2019-04-11 09:50:09 +00:00
|
|
|
# Copyright (c) 2019 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
|
|
|
|
2019-04-11 09:50:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
|
|
|
|
2012-02-14 11:57:06 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-02 07:46:23 +00:00
|
|
|
Name: python-Fabric
|
2019-04-11 09:50:09 +00:00
|
|
|
Version: 2.4.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
|
2018-08-11 14:56:07 +00:00
|
|
|
URL: http://fabfile.org
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/fabric/fabric-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module cryptography >= 1.1}
|
|
|
|
BuildRequires: %{python_module decorator}
|
|
|
|
BuildRequires: %{python_module invoke >= 1.1}
|
|
|
|
BuildRequires: %{python_module mock >= 2.0.0}
|
|
|
|
BuildRequires: %{python_module paramiko >= 2.4}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.2.5}
|
|
|
|
BuildRequires: %{python_module pytest-relaxed}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-08-11 14:56:07 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-11 14:56:07 +00:00
|
|
|
Requires: python-cryptography >= 1.1
|
|
|
|
Requires: python-decorator
|
|
|
|
Requires: python-invoke >= 1.1
|
|
|
|
Requires: python-paramiko >= 2.4
|
2013-10-24 11:05:36 +00:00
|
|
|
Requires: python-setuptools
|
2018-08-11 14:56:07 +00:00
|
|
|
Requires: python-six
|
2018-08-11 15:02:09 +00:00
|
|
|
Conflicts: python-Fabric3
|
2018-08-11 14:56:07 +00:00
|
|
|
Provides: python-Fabric2 = %{version}
|
|
|
|
Provides: python-fabric = %{version}
|
|
|
|
Provides: python-fabric2 = %{version}
|
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
|
2018-08-11 14:56:07 +00:00
|
|
|
%setup -q -n fabric-%{version}
|
2019-04-11 09:50:09 +00:00
|
|
|
# fix all imports:
|
|
|
|
sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py integration/concurrency.py tests/config.py tests/transfer.py tests/_util.py tests/connection.py tests/runners.py
|
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}
|
2018-08-11 14:56:07 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/fab
|
2011-06-07 23:19:53 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%check
|
2019-04-11 09:50:09 +00:00
|
|
|
%pytest tests/
|
2018-08-11 14:56:07 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative fab
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative fab
|
2012-02-20 22:17:34 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%files %{python_files}
|
2018-08-11 14:56:07 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%python_alternative %{_bindir}/fab
|
2011-06-07 23:23:10 +00:00
|
|
|
%{python_sitelib}/*
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%changelog
|