forked from pool/python-Fabric
- Drop the Sphinx dep as we can't generate the deps because of py3 incompatibility - Run fdupes on install OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=53
80 lines
2.7 KiB
RPMSpec
80 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-Fabric
|
|
#
|
|
# Copyright (c) 2018 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python3 1
|
|
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
|
|
BuildRequires: %{python_module Jinja2}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module fudge}
|
|
BuildRequires: %{python_module nose}
|
|
BuildRequires: %{python_module paramiko >= 1.10}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
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/paramiko>=1.10,<2.0/paramiko>=1.10/g' setup.py # new paramiko is okay
|
|
sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Breaks on the raise tests completely even in git
|
|
#%%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%doc AUTHORS LICENSE README.rst
|
|
%python2_only %{_bindir}/fab
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|