File pssh.spec of Package pssh

#
# spec file for package pssh
#
# 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:           pssh
Version:        2.3.1
Release:        0
Summary:        Parallel SSH to control large numbers of Machines simultaneously
License:        BSD-3-Clause
Group:          Productivity/Clustering/Computing
Source:         http://parallel-ssh.googlecode.com/files/pssh-%{version}.tar.gz
Patch1:         pssh-remove_shebangs.patch
Patch2:         pssh-man_dir.patch
Patch3:         pssh_quiet.patch
Patch4:         pssh_pcmk_nodes.patch
Patch5:         pssh_askpass_dir.patch
Url:            http://code.google.com/p/parallel-ssh/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-pssh = %{version}-%{release}
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif
%py_requires

%description
pssh provides parallel versions of the OpenSSH tools that are useful for
controlling large numbers of machines simultaneously. It includes parallel
versions of ssh, scp, and rsync, as well as a parallel kill command.



Authors:
--------
    Andrew McNabb
    Brent N. Chun

%package -n python-pssh
Summary:        Python Module for Parallel SSH
Group:          Development/Libraries/Python
Requires:       rsync
Requires:       openssh
%py_requires

%description -n python-pssh
pssh provides parallel versions of the OpenSSH tools that are useful for
controlling large numbers of machines simultaneously. It includes parallel
versions of ssh, scp, and rsync, as well as a parallel kill command.

This package contains the pssh Python module.

%prep
%setup -q
%patch1
%patch2
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
	 --prefix="%{_prefix}" \
	 --root="%{buildroot}" \
	 --record-rpm=files.lst

# remove files under bin/ and man/ from rpmfiles.lst to include them in the main package
%__sed -i '/.*\/bin\/.*/d;/.*\/man\/.*/d' files.lst

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%doc %{_mandir}/man1/pssh.1.gz
%doc %{_mandir}/man1/pnuke.1.gz
%doc %{_mandir}/man1/pscp.1.gz
%doc %{_mandir}/man1/pslurp.1.gz
%doc %{_mandir}/man1/prsync.1.gz
%{_bindir}/pnuke
%{_bindir}/prsync
%{_bindir}/pscp
%{_bindir}/pslurp
%{_bindir}/pssh
%{_bindir}/pssh-askpass

%files -n python-pssh -f files.lst
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:

%changelog
openSUSE Build Service is sponsored by