File pdsh.spec of Package pdsh

#
# spec file for package pdsh (Version 2.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           pdsh
BuildRequires:  dejagnu openssh readline-devel rsh
Url:            http://sourceforge.net/projects/pdsh
Version:        2.16
Release:        1
Summary:        Parallel remote shell program
License:        GPL v2 or later
Group:          Productivity/Clustering/Computing
Source:         %{name}-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch:          pdsh-2.16-glibc28.patch
# Prereq: 
# Set this to 1 to build with genders support and framework for
# running Elan jobs.
%define chaos 0

%description
Pdsh is a multithreaded remote shell client which executes commands on
multiple remote hosts in parallel.  Pdsh can use several different
remote shell services, including standard "rsh", Kerberos IV, and ssh.



Authors:
--------
    Jim Garlick <garlick@llnl.gov>

%prep
%setup -q 
%patch

%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure \
        --with-readline \
	    --with-machines=/etc/pdsh/machines \
	    --with-ssh \
		--disable-static \
		--with-pic
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

%files
%defattr(-,root,root)
%doc README ChangeLog DISCLAIMER README.KRB4
%attr(755, root, root) /usr/bin/pdsh
%attr(755, root, root) /usr/bin/pdcp 
/usr/bin/dshbak
/usr/bin/rpdcp
%{_mandir}/man1/pdsh.1.gz
%{_mandir}/man1/pdcp.1.gz
%{_mandir}/man1/dshbak.1.gz
%{_mandir}/man1/rpdcp.1.gz
%_libdir/pdsh

%changelog
* Fri Apr 11 2008 crrodriguez@suse.de
- fix build with glibc 28, ARG_MAX no longer defined
- update to version 2.16
- Rewrite of the ssh module using the same framework as the existing "exec" module.
- Ability to specify an ssh connect timeout.
- Small improvements for the dshbak script.
- Other minor fixes to the pdsh interface.
- See the NEWS file distributed with pdsh for further information.
* Thu Apr 03 2008 hvogel@suse.de
- update to 2.14
  * some build fixes
  * Enable "exec" rcmd module by default
  * Ignore blank and comment lines in WCOLL file
  * Add new "pipecmd" API for executing arbitrary commands
  * Add "-N" option to disable hostname
  * Block SIGCHLD in pdsh threads
  * Undocumented -K option to explicitly keep
  domain names in output labels
* Mon Apr 30 2007 ro@suse.de
- added rpdcp to filelist (binary and manpage)
* Wed Apr 25 2007 mskibbe@suse.de
- update to version 2.12 which includes:
  o pdsh-2.10.patch
  o fix build warnings
  o fix bugs
* Thu Aug 31 2006 mskibbe@suse.de
- update to version 2.10 which
  o allow rcmd modules to set rcmd-specific options
  o Add test for "," in host range. Increase version number
  o Add COPYING to docs. Remove -n from %%setup
  o Add support for command history in interactive mode when using
  readline (History file is placed in ~/.pdsh/history)
  o Change mini shell script so -S hack will work
* Thu Jul 13 2006 mskibbe@suse.de
- update to version 2.9 which
  o Remove unneeded .la and .a files in packages
  o Use io session file instead of stdout and stdin session files
  o Remove code which only loaded pdsh modules via *.la files
  o Add xcpu module support
  o Do not install pdsh/pdcp setuid root by default anymore
  o Update documentation
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 hvogel@suse.de
- disable make check for now
* Fri Jan 13 2006 hvogel@suse.de
- update to version 2.8
* Wed Jun 08 2005 meissner@suse.de
- use RPM_OPT_FLAGS -fno-strict-aliasing
* Tue Jun 07 2005 hvogel@suse.de
- update to version 2.3
* Thu Feb 26 2004 hmacht@suse.de
- building as non-root
* Sun Jun 15 2003 nashif@suse.de
- Initial release (1.7-6)