%define name gsh %define version 0.9.0 %define release 6mdk Name: %{name} Version: %{version} Release: %{release} Summary: Run commands on other hosts through ssh License: GPL Group: Networking/Remote access Url: http://outflux.net/unix/software/gsh/ Source: %{name}-%{version}.tar.bz2 Requires: openssh, openssh-clients, perl BuildRoot: %{_tmppath}/%{name}-%{version} Prefix: %{_prefix} buildArch: noarch %description Run commands on other hosts through ssh %prep %setup -n %{name}-%{version} %install mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/etc mkdir -p %{buildroot}/%{perl_vendorlib}/ cp lib/sysadmin.pl $RPM_BUILD_ROOT/%{perl_vendorlib}/sysadmin.pl cp gsh $RPM_BUILD_ROOT/%{_bindir}/gsh cp ghosts $RPM_BUILD_ROOT/%{_bindir}/ghosts perl -pi -e "s/\#\!\/usr\/local\/bin\/perl.*/\#\!\/usr\/bin\/perl/" $RPM_BUILD_ROOT/%{_bindir}/gsh cat > $RPM_BUILD_ROOT/etc/ghosts <<EOF # Macros #mdkprod=mdk82 # Machines # Name Group Hardware OS #n1 prod intel linux EOF %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc LICENSE MANIFEST README TODO %attr(755,root,root) %{_bindir}/gsh %attr(755,root,root) %{_bindir}/ghosts %attr(755,root,root) %{perl_vendorlib}/sysadmin.pl %config(noreplace) /etc/ghosts %changelog * Mon Feb 07 2005 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.9.0-6mdk - fix sysadmin.pl location - cleanup * Sat Feb 05 2005 Sylvie Terjan <erinmargault@mandrake.org> 0.9.0-5mdk - rebuild for new perl * Mon May 17 2004 Antoine Ginies <aginies@n2.mandrakesoft.com> 0.9.0-4mdk - rebuild - rpmlint fix * Wed Aug 14 2002 Antoine Ginies <aginies@mandrakesoft.com> 0.9.0-3mdk - correct stupid error in perl path..... - correct /etc/ghosts to fit clic configuration * Wed Aug 14 2002 Antoine Ginies <aginies@mandrakesoft.com> 0.9.0-2mdk - correct perl path in gsh script - add require perl - move sysadmin.pl in perl_arch directory * Wed Aug 14 2002 Antoine Ginies <aginies@mandrakesoft.com> 0.9.0-1mdk - first Mandrakesoft release