%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) #% define pkgver %(echo $(echo %version | cut -d. -f1,2)_$(echo %version | cut -d. -f3)) Name: clusterssh Version: 4.09 Release: 1mamba Summary: Cluster Admin Via SSH Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/D/DU/DUNCS/App-ClusterSSH-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-Exception-Class BuildRequires: perl-Tk BuildRequires: perl-Try-Tiny BuildRequires: perl-X11-Protocol BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl-Test-Trap BuildRequires: perl-Test-PerlTidy BuildRequires: perl-CPAN-Changes BuildRequires: perl-X11-Protocol-Other Requires: perl >= %perl_major_ver Requires: perl-Exception-Class Requires: perl-Tk Requires: perl-Try-Tiny Requires: perl-X11-Protocol BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch %description ClusterSSH is a tool for making the same change on multiple servers at the same time. The 'cssh' command opens an administration console and an xterm to all specified hosts. Any text typed into the administration console is replicated to all windows. All windows may also be typed into directly. %prep %setup -q -n App-ClusterSSH-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build ./Build test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" ./Build install \ destdir="%{buildroot}" \ --install_path bindoc="%{_mandir}/man1" \ --install_path libdoc="%{_mandir}/man3" packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm -f $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %doc AUTHORS THANKS #Changes %changelog * Tue Mar 21 2017 Automatic Build System 4.09-1mamba - automatic version update by autodist * Tue Dec 20 2016 Automatic Build System 4.08-1mamba - automatic version update by autodist * Sun Nov 29 2015 Silvan Calarco 4.05-1mamba - update to 4.05 * Sun May 25 2014 Automatic Build System 4.02.04-1mamba - automatic version update by autodist * Wed Feb 19 2014 Stefano Cotta Ramusino 4.02.03-1mamba - package created using the webbuild interface