Summary: Distributed shell Name: dsh Version: 0.25.10 Release: 1 License: GPL Group: Applications/Internet URL: http://www.netfort.gr.jp/~dancer/software/downloads/list.cgi Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gettext BuildRequires: libdshconfig-devel >= 0.20.13-1 Requires: gettext Requires: libdshconfig >= 0.20.13-1 %description Distributed shell. Runs command through rsh or ssh on a cluster of machines. Requires libdshconfig to be already installed on the system. %prep %setup -q %build ./configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir}/%{name} \ --mandir=%{_mandir} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_bindir}/* || : %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name} %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name} cat %{name}.conf | \ sed 's| remoteshell =rsh|remoteshell = ssh|g' | \ sed 's| showmachinenames = 0|showmachinenames = 1|g' \ > ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/%{name}.conf cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS COPYING ChangeLog README %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %{_bindir}/%{name} %{_mandir}/man1/%{name}.1 %{_datadir}/locale/*/*/* /usr/linux/bin/%{name} %changelog * Tue May 10 2011 Michael Perzl - 0.25.10-1 - first version for AIX V5.1 and higher