Name: rainbow-nethelper Version: 0.1 Release: 3%{?dist} Summary: Rainbow (ARC in the Cloud) Networking Helper service Group: System Environment/Daemons License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/rainbow/ Source0: nethelper.xinetd Source1: rainbow-nethelper Source2: rainbow-nethelper-config Source3: README BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: xinetd Requires: nmap Requires: nc Requires: iputils Requires: iproute Requires: dhcp Requires: iptables %description Rainbow (ARC in the Cloud) framework is aimed to run virtual machines as grid jobs in the Nordugrid ARC ennvironment. This package provides Networking Helper service for Rainbow. %prep %setup -qcT cp -p %{SOURCE0} nethelper.xinetd cp -p %{SOURCE1} rainbow-nethelper cp -p %{SOURCE2} rainbow-nethelper-config cp -p %{SOURCE3} README %build # nothing to build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_libexecdir} mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d mkdir -p %{buildroot}%{_localstatedir}/spool/rainbow-nethelper install -p -m 755 rainbow-nethelper-config %{buildroot}%{_sbindir} install -p -m 755 rainbow-nethelper %{buildroot}/%{_libexecdir} sed 's!server =.*!server = %{_libexecdir}/rainbow-nethelper!' \ nethelper.xinetd > %{buildroot}/%{_sysconfdir}/xinetd.d/rainbow-nethelper %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_libexecdir}/rainbow-nethelper %{_sbindir}/rainbow-nethelper-config %config %{_sysconfdir}/xinetd.d/rainbow-nethelper %dir %{_localstatedir}/spool/rainbow-nethelper %doc README %changelog * Wed Oct 30 2013 Andrii Salnikov 0.1-3 - SL5 spec fixes * Wed Oct 2 2013 Andrii Salnikov 0.1-2 - First packaged Rainbow Networking Helper service