%{!?_unitdir: %global _unitdir /usr/lib/systemd/system} Name: rainbow-VM Version: 1 Release: 1%{?dist} Summary: Rainbow helpers to run inside guest VM Group: System Environment/Base License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/rainbow/vm # The source was created from a svn checkout # svn export http://trac.grid.org.ua/repos/workarea/rainbow/vm rainbow-VM # tar -z -c -f rainbow-VM.tar.gz rainbow-VM Source0: rainbow-VM.tar.gz BuildArch: noarch %description rainbow-VM- family of packages are Rainbow helpers to automate deployment of guest VMs %prep %setup -q -n %{name} %build # nothing to build yet %install rm -rf %{buildroot} mkdir -p %{buildroot} # package all cp -a . %{buildroot} # except rm %{buildroot}/%{name}.spec %clean rm -rf %{buildroot} # # jobwrap scripts # %package jobwrap Summary: Rainbow VM jobwrap service Version: 1 Requires: systemd %description jobwrap Rainbow VM jobwrap service %files jobwrap %{_libexecdir}/rainbow_jobwrap.sh %{_unitdir}/rainbow-vm-jobwrap.service %post jobwrap systemctl daemon-reload systemctl enable rainbow-vm-jobwrap.service %changelog * Sat Nov 7 2015 Andrii Salnikov - 1-1 - Rainbow VM jobwrap service packaged