%define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") %define python_sitelib64 %(python_64 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") Summary: Parallel SSH tools Name: pssh Version: 2.3 Release: 1 License: BSD Url: http://code.google.com/p/parallel-ssh/ Group: Applications/Productivity Source0: http://parallel-ssh.googlecode.com/files/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python >= 2.6.2 BuildRequires: python-setuptools Requires: python >= 2.6.2 %define _libdir64 %{_prefix}/lib64 %description This package provides various parallel tools based on ssh and scp. Parallell version includes: o ssh : pssh o scp : pscp o nuke : pnuke o rsync : prsync o slurp : pslurp %prep %setup -q mkdir ../32bit mv * ../32bit mv ../32bit . mkdir 64bit cp -r 32bit/* 64bit/ %build cd 64bit python_64 setup.py build cd ../32bit python setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} cd 64bit python_64 setup.py install --skip-build --root ${RPM_BUILD_ROOT} mv ${RPM_BUILD_ROOT}%{_libdir} ${RPM_BUILD_ROOT}%{_libdir64} ( cd ${RPM_BUILD_ROOT}%{_bindir} for f in * ; do mv -f ${f} ${f}_64 done ) cd ../32bit python setup.py install --skip-build --root ${RPM_BUILD_ROOT} cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc 32bit/AUTHORS 32bit/ChangeLog 32bit/COPYING %{_bindir}/* %{_mandir}/man1/* %{python_sitelib}/* %{python_sitelib64}* /usr/bin/* %changelog * Fri Jan 27 2012 Michael Perzl - 2.3-1 - updated to version 2.3 * Fri Feb 11 2011 Michael Perzl - 2.2.2-1 - updated to version 2.2.2 * Tue Jan 25 2011 Michael Perzl - 2.2-1 - first version for AIX V5.1 and higher