%if %{?rhel}%{!?rhel:0} <= 5 %global _datarootdir %{_datadir} %endif Name: rainbow-RTE-CLOUD-VM-CREAM Version: 0.16 Release: 1%{?dist} Summary: Rainbow 'CLOUD/VM' RTE for CREAM CE host Group: Applications/System License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/rainbow # The source was created from a svn checkout # svn export http://trac.grid.org.ua/repos/workarea/rainbow rainbow-RTE-CLOUD-VM-CREAM # tar -z -c -f rainbow-RTE-CLOUD-VM-CREAM.tar.gz rainbow-RTE-CLOUD-VM-CREAM Source0: rainbow-RTE-CLOUD-VM-CREAM.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: curl Requires: nc %description Rainbow - "ARC in the Cloud" framework designed to run VMs as a grid jobs. Package provides Nordugrid ARC 'CLOUD/VM' RTE for Rainbow operation and includes necessary wrappers and indication files to makes possible Rainbow usage from CREAM. Package should be installed on CREAM CE host. %prep %setup -q -n rainbow-RTE-CLOUD-VM-CREAM %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_datarootdir}/arc/RTE/CLOUD mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_libexecdir}/rainbow mkdir -p %{buildroot}/opt/edg/var/info/rainbow sed '/^RAINBOW_CONFIG_LOCATION=/s!=.*!=%{_sysconfdir}/rainbow.conf!' \ runtime/CLOUD/VM > %{buildroot}%{_datarootdir}/arc/RTE/CLOUD/VM chmod 755 %{buildroot}%{_datarootdir}/arc/RTE/CLOUD/VM install -pm 755 libexec/push_info_gh.sh \ libexec/nethelper-client.sh \ %{buildroot}%{_libexecdir}/rainbow install -pm 755 cream/rainbow-cream-wrapper-rte0.sh \ cream/rainbow-cream-install-wrapper.sh \ %{buildroot}%{_libexecdir}/rainbow install -pm 644 cream/rainbow.list \ %{buildroot}/opt/edg/var/info/rainbow sed '/CLOUD_LIBEXEC_LOCATION=/s!=.*!=%{_libexecdir}/rainbow!' \ etc/rainbow.conf > %{buildroot}%{_sysconfdir}/rainbow.conf %post %{_libexecdir}/rainbow/rainbow-cream-install-wrapper.sh %preun %{_libexecdir}/rainbow/rainbow-cream-install-wrapper.sh uninstall %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_datarootdir}/arc/RTE/CLOUD/VM %config %{_sysconfdir}/rainbow.conf %dir %{_libexecdir}/rainbow %{_libexecdir}/rainbow/push_info_gh.sh %{_libexecdir}/rainbow/nethelper-client.sh %{_libexecdir}/rainbow/rainbow-cream-wrapper-rte0.sh %{_libexecdir}/rainbow/rainbow-cream-install-wrapper.sh /opt/edg/var/info/rainbow/rainbow.list %changelog * Thu Jul 3 2014 Andrii Salnikov - 0.16-1 - Initial Package for RTE CREAM wrapper