File pssh.spec of Package pssh

# norootforbuild

Name:				 pssh
Version:			 2.3.1
Release:			 0
Summary:			 Parallel SSH to control large numbers of Machines simultaneously
Source:			 http://parallel-ssh.googlecode.com/files/pssh-%{version}.tar.gz
Patch1:			 pssh-remove_shebangs.patch
Patch2:			 pssh-man_dir.patch
URL:				 http://code.google.com/p/parallel-ssh/
Group:			 Productivity/Clustering/Computing
License:		 BSD-3-Clause
BuildRoot:		 %{_tmppath}/build-%{name}-%{version}
BuildRequires:	 python-devel 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

%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
%{_mandir}/man1/pslurp.1*
%{_mandir}/man1/pssh.1*
%{_mandir}/man1/pscp.1*
%{_mandir}/man1/prsync.1*
%{_mandir}/man1/pnuke.1*
%{_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

%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by