Please consider the "gsh" package from http://outflux.net/unix/software/gsh/ for inclusion in RPMforge.

gsh.spec is attached for your consideration.

Thanks,

Phil
# $Id$
# Authority: pdurbin
# Upstream: Kees Cook <kees$outflux,net>

%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo 
$installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo 
$installvendorarch)

%define real_name gsh

Summary: Global Shell run commands in parallel to multiple machines
Name: gsh
Version: 1.0.2
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://outflux.net/unix/software/gsh/

Source: http://outflux.net/unix/software/gsh/download/gsh-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: rpm-macros-rpmforge
Requires: perl

### remove autoreq Perl dependencies
%filter_from_requires /^perl.*/d
%filter_setup

%description
The idea behind this tool originally came from wanting to do something
on each machine in our network.  Existing scripts would serially go to
each machine run the command, wait for it to finish, and continue to
the next machine.  There was no reason why this couldn’t be done in
parallel.

%prep
%setup -n %{real_name}-%{version}

# damn it Dist::Zilla
%{?el5:%{__perl} -pi -e '/.*ExtUtils::MakeMaker.*6\\.31.*/ && s/6\\.3\\d/6.30/' 
Makefile.PL}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
#%{__rm} -rf %{buildroot}%{perl_archlib} %{buildroot}%{perl_vendorarch}

# fix for stupid strip issue
%{__chmod} -R u+w %{buildroot}/*

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

%files
%defattr(-, root, root, 0755)
%doc ChangeLog META.yml README TODO
%doc %{_mandir}/man?/*
/usr/bin/ghosts
/usr/bin/gsh
%{perl_vendorlib}/SystemManagement/Ghosts.pm
%exclude %{perl_vendorarch}/auto/*/.packlist

%changelog
* Thu Mar 31 2011 Philip Durbin <pdur...@hmdc.harvard.edu> 1.0.2-1
- Initial package, based on perl-Google-Search-0.027-1.el6.noarch
_______________________________________________
suggest mailing list
suggest@lists.rpmforge.net
http://lists.rpmforge.net/mailman/listinfo/suggest

Reply via email to