2024-01-05 21:25:43 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
2024-01-05 21:25:43 +01:00
|
|
|
#% define pkgver %(echo $(echo %version | cut -d. -f1,2)_$(echo %version | cut -d. -f3))
|
2024-01-05 21:25:43 +01:00
|
|
|
|
|
|
|
Name: clusterssh
|
2024-01-05 21:25:43 +01:00
|
|
|
Version: 4.05
|
2024-01-05 21:25:43 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Cluster Admin Via SSH
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://www.cpan.org
|
2024-01-05 21:25:43 +01:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DU/DUNCS/App-ClusterSSH-%{version}.tar.gz
|
2024-01-05 21:25:43 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 21:25:43 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-05 21:25:43 +01:00
|
|
|
BuildRequires: perl-Exception-Class
|
|
|
|
BuildRequires: perl-Tk
|
|
|
|
BuildRequires: perl-Try-Tiny
|
|
|
|
BuildRequires: perl-X11-Protocol
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 21:25:43 +01:00
|
|
|
BuildRequires: perl-Test-Trap
|
|
|
|
BuildRequires: perl-Test-PerlTidy
|
|
|
|
BuildRequires: perl-CPAN-Changes
|
2024-01-05 21:25:43 +01:00
|
|
|
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
|
2024-01-05 21:25:43 +01:00
|
|
|
%setup -q -n App-ClusterSSH-%{version}
|
2024-01-05 21:25:43 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 21:25:43 +01:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
./Build test
|
2024-01-05 21:25:43 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 21:25:43 +01:00
|
|
|
./Build install \
|
|
|
|
destdir="%{buildroot}" \
|
|
|
|
--install_path bindoc="%{_mandir}/man1" \
|
|
|
|
--install_path libdoc="%{_mandir}/man3"
|
2024-01-05 21:25:43 +01:00
|
|
|
|
|
|
|
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)
|
2024-01-05 21:25:43 +01:00
|
|
|
%doc AUTHORS THANKS
|
|
|
|
#Changes
|
2024-01-05 21:25:43 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:25:43 +01:00
|
|
|
* Sun Nov 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.05-1mamba
|
|
|
|
- update to 4.05
|
|
|
|
|
2024-01-05 21:25:43 +01:00
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 4.02.04-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:25:43 +01:00
|
|
|
* Wed Feb 19 2014 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.02.03-1mamba
|
|
|
|
- package created using the webbuild interface
|