14
0
forked from pool/python-Fabric
Files
python-Fabric/python-Fabric.spec
Alexandre Rogoski 67e5702af5 - Update to 1.4.3:
* [Bug] #671 reject-unknown-hosts sometimes resulted in a password
  prompt instead of an abort. This has been fixed. Thanks to Roy Smith for the
  report.
* [Bug] #659 Update docs to reflect that fabric.operations.local currently
  honors 'env.path <env-path>'. Thanks to @floledermann for the catch.
* [Bug] #652 Show available commands when aborting on invalid command names.
* [Support] #651 Added note about nesting 'with' statements on Python 2.6+.
  Thanks to Jens Rantil for the patch.
* [Bug] #649 Don't swallow non-`abort`-driven exceptions in parallel mode.
  Fabric correctly printed such exceptions, and returned them from
  fabric.tasks.execute, but did not actually cause the child or parent
  processes to halt with a nonzero status. This has been fixed.
  fabric.tasks.execute now also honors env.warn_only <warn-only> so
  users may still opt to call it by hand and inspect the returned exceptions,
  instead of encountering a hard stop. Thanks to Matt Robenolt for the catch.
* [Support] #645 Update Sphinx docs to work well when run out of a source
  tarball as opposed to a Git checkout. Thanks again to @Arfrever for the
  catch.
* [Support] #640 (also #644) Update packaging manifest so sdist
  tarballs include all necessary test & doc files. Thanks to Mike Gilbert and
  @Arfrever for catch & patch.
* [Support] #634 Clarified that fabric.context_managers.lcd does no special
  handling re: the user's current working directory, and thus relative paths
  given to it will be relative to os.getcwd(). Thanks to @techtonik
  for the catch.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=26
2012-07-07 02:04:57 +00:00

95 lines
3.0 KiB
RPMSpec

#
# spec file for package python-Fabric
#
# Copyright (c) 2012 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.4.3
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
#BuildRequires: python-fudge
#BuildRequires: python-ssh
Requires: python-distribute
Requires: python-ssh
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}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#%%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README
%{_bindir}/fab
%{python_sitelib}/*
%changelog