%if %{?rhel}%{!?rhel:0} <= 5 %global _datarootdir %{_datadir} %endif Name: rainbow-WN-CLOUD-VM-CREAM Version: 0.16 Release: 1%{?dist} Summary: Rainbow 'CLOUD/VM' RTE wrapper for CREAM CE 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-WN-CLOUD-VM-CREAM # tar -z -c -f rainbow-WN-CLOUD-VM-CREAM.tar.gz rainbow-WN-CLOUD-VM-CREAM Source0: rainbow-WN-CLOUD-VM-CREAM.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: rainbow-WN-essentials Requires: curl Requires: nc %description Rainbow - "ARC in the Cloud" framework designed to run VMs as a grid jobs. Rainbow originally designed as RTE for Nordugrid ARC. This package provides RTE for Nordugrid ARC along with wrapper to run it from CREAM CE. %prep %setup -q -n rainbow-WN-CLOUD-VM-CREAM %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_datarootdir}/arc/RTE/CLOUD mkdir -p %{buildroot}%{_libexecdir}/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 cream/rainbow-cream-wrapper-rte1.sh \ %{buildroot}%{_libexecdir}/rainbow %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_datarootdir}/arc/RTE/CLOUD/VM %dir %{_libexecdir}/rainbow %{_libexecdir}/rainbow/rainbow-cream-wrapper-rte1.sh %changelog * Mon Apr 21 2014 Andrii Salnikov - 0.16-1 - Initial package for WN CREAM wrapper