%{!?_unitdir: %global _unitdir /usr/lib/systemd/system} Name: moldyngrid Version: 2 Release: 1%{?dist} Summary: Configuration files, scripts and services for MolDynGrid Group: System Environment/Base License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/moldynsub # The source was created from a svn checkout # svn export http://trac.grid.org.ua/repos/workarea/moldynsub/RPMS/ moldyngrid # tar -z -c -f moldyngrid.tar.gz moldyngrid Source0: moldyngrid.tar.gz BuildArch: noarch %description moldyngrid- family of packages are MolDynGrid dedicated config files, custom scripts and services packaged to automate execution environment provision. %prep %setup -q -n %{name} %build # nothing to build yet %install rm -rf %{buildroot} mkdir -p %{buildroot} # package all cp -a . %{buildroot} cp -a %{buildroot}/usr/libexec/gloria-pilot.py %{buildroot}/usr/libexec/gloria-pilot-gpgpu.py cp -a %{buildroot}/etc/sysconfig/gloria-pilot %{buildroot}/etc/sysconfig/gloria-pilot-gpgpu # except rm %{buildroot}/%{name}.spec %clean rm -rf %{buildroot} # # Repo release # %package release Summary: MolDynGrid repository configuration for YUM Version: 1 Requires: yum %description release MolDynGrid repo coniguration files %files release %config %{_sysconfdir}/yum.repos.d/moldyngrid.repo # # MolDynGrid required trird-party repos # %package epel-release Summary: Install EPEL repo Version: 4 Requires: yum Requires: screen %description epel-release Install ELEL-repo for MolDynGrid %files epel-release %post epel-release screen -d -m "yum -y install https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm" %package nordugrid-release Summary: Install Nordugrid repo Version: 4 Requires: yum Requires: screen %description nordugrid-release Install Nordugrid-repo for MolDynGrid %files nordugrid-release %post nordugrid-release screen -d -m "yum -y install http://download.nordugrid.org/packages/nordugrid-release/releases/15.03/centos/el7/x86_64/nordugrid-release-15.03-1.el7.centos.noarch.rpm" %package cuda-release Summary: Install Nvidia CUDA repo Version: 4 Requires: yum Requires: screen %description cuda-release Install Nvidia CUDA repo for MolDynGrid %files cuda-release %post cuda-release screen -d -m "yum -y install http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-7.5-18.x86_64.rpm" # # Repositories installation meta-packages # %package gpgpu-fedcloud-repos-meta Summary: Repos required to provision EGI GPGPU Federated Cloud VM Version: 2 Requires: yum Requires: epel-release Requires: nordugrid-release Requires: cuda-repo-rhel7 %description gpgpu-fedcloud-repos-meta Repos required to provision EGI GPGPU Federated Cloud VM for MolDynGrid Gloria Pilot %files gpgpu-fedcloud-repos-meta # # Gloria Pilot service for MolDynGrid # %package gloria-pilot Summary: Gloria Pilot service for MolDynGrid Version: 2 Requires: systemd Requires: nordugrid-arc-client Requires: nordugrid-arc-plugins-globus Requires: ca_policy_igtf-classic %description gloria-pilot Gloria Pilot service for MolDynGrid to fecth jobs from MolDynGrid portal and execute it on Cloud VM %files gloria-pilot %config(noreplace) %{_sysconfdir}/sysconfig/gloria-pilot %{_libexecdir}/gloria-pilot.py %{_unitdir}/gloria-pilot.service %post gloria-pilot systemctl daemon-reload systemctl enable gloria-pilot.service # # Gloria Pilot service for MolDynGrid (GPGPU) # %package gloria-pilot-gpgpu Summary: Gloria Pilot service for MolDynGrid (GPGPGU build) Version: 3 Requires: systemd Requires: nordugrid-arc-client Requires: nordugrid-arc-plugins-globus Requires: ca_policy_igtf-classic %description gloria-pilot-gpgpu Gloria Pilot service for MolDynGrid to fecth jobs from MolDynGrid portal and execute it on Cloud VM (GPGPU Build) %files gloria-pilot-gpgpu %config(noreplace) %{_sysconfdir}/sysconfig/gloria-pilot-gpgpu %{_libexecdir}/gloria-pilot-gpgpu.py %{_unitdir}/gloria-pilot-gpgpu.service %post gloria-pilot-gpgpu systemctl daemon-reload systemctl enable gloria-pilot-gpgpu.service # # Fix for nvidia-kmod build # %package nvidia-kmod-fix Summary: Fix nvidia kmod building problem Version: 1 Requires: nvidia-kmod Requires: nvidia-uvm-kmod %description nvidia-kmod-fix Fix nvidia kmod building problem %files nvidia-kmod-fix %post nvidia-kmod-fix cd /var/lib/dkms/nvidia/* rmdir build ln -s source build # # Rebuild Nvidia kmon in runtime # %package nvidia-kmod-rebuild Summary: Rebuild nvidia kmod in runtime Version: 2 Requires: %{name}-nvidia-kmod-fix %description nvidia-kmod-rebuild Rebuild nvidia kmod in runtime %files nvidia-kmod-rebuild %{_libexecdir}/nvidia-kmod-rebuild.sh %{_unitdir}/nvidia-kmod-rebuild.service %post nvidia-kmod-rebuild systemctl daemon-reload systemctl enable nvidia-kmod-rebuild.service # # Reformat /dev/vdb to xfs # %package cloud-vdb2xfs Summary: Reformat /dev/vdb to xfs Version: 2 %description cloud-vdb2xfs Reformat /dev/vdb to xfs in OpenStack Cloud VM %files cloud-vdb2xfs %post cloud-vdb2xfs umount /dev/vdb mkfs.xfs -f /dev/vdb mount /dev/vdb %changelog * Fri Nov 6 2015 Andrii Salnikov - 3-1 - Nvidia kmod building fix for GPGPU FedCloud provision * Thu Nov 5 2015 Andrii Salnikov - 2-1 - Gloria Pilot for MolDynGrid packaged and adopted for GPGPU FedCloud * Mon Nov 2 2015 Andrii Salnikov - 1-1 - MolDynGrid RPMs repo created to automate resources provision