14
0
forked from pool/python-Fabric
Files
python-Fabric/python-Fabric.spec
Alexandre Rogoski 1b09de27fd - Update to 1.6.0:
- [Bug] #844: Account for SSH config overhaul in Paramiko 1.10
    by e.g. updating treatment of IdentityFile to handle multiple
    values. This and related SSH config parsing changes are
    backwards incompatible; we are including them in this release
    because they do fix incorrect, off-spec behavior.
  - [Bug] #843: Ensure string pool_size values get run through
    int() before deriving final result (stdlib min() has odd
    behavior here...). Thanks to Chris Kastorff for the catch.
  - [Bug] #839: Fix bug in rsync_project where IPv6 address were
    not always correctly detected. Thanks to Antonio Barrero for
    catch & patch.
  - [Bug] #587: Warn instead of aborting when env.use_ssh_config
    is True but the configured SSH conf file doesn’t exist. This
    allows multi-user fabfiles to enable SSH config without causing
    hard stops for users lacking SSH configs. Thanks to Rodrigo
    Pimentel for the report.
  - [Feature] #821: Add remote_tunnel to allow reverse SSH
    tunneling (exposing locally-visible network ports to the
    remote end). Thanks to Giovanni Bajo for the patch.
  - [Feature] #823: Add env.remote_interrupt which controls
    whether Ctrl-C is forwarded to the remote end or is captured
    locally (previously, only the latter behavior was
    implemented). Thanks to Geert Jansen for the patch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=38
2013-03-02 18:18:18 +00:00

102 lines
3.3 KiB
RPMSpec

#
# spec file for package python-Fabric
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
Name: python-Fabric
Version: 1.6.0
Release: 0
Summary: Fabric is a simple, Pythonic tool for remote execution and deployment
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://fabfile.org
Source: Fabric-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-distribute
# Test requirements:
#TODO: Disabled due to errors / fudge requirement
#BuildRequires: python-fudge
#BuildRequires: python-nose
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: python-paramiko >= 1.9.0
Requires: python-distribute
Requires: python-paramiko >= 1.9.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Fabric is a Python (2.5 or higher) 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.
Typical use involves creating a Python module containing one or more functions,
then executing them via the fab command-line tool. Below is a small but
complete "fabfile" containing a single task:
from fabric.api import run
def host_type():
run('uname -s')
Once a task is defined, it may be run on one or more servers, like so:
$ fab -H localhost,linuxbox host_type
[localhost] run: uname -s
[localhost] out: Darwin
[linuxbox] run: uname -s
[linuxbox] out: Linux
Done.
Disconnecting from localhost... done.
Disconnecting from linuxbox... done.
In addition to use 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 setup.py build
python setup.py build_sphinx && rm -r build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#%%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst build/sphinx/html
%{_bindir}/fab
%{python_sitelib}/*
%changelog