mjf-gridengine.spec 621 Bytes
Newer Older
Andrew McNab's avatar
Andrew McNab committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Name: mjf-gridengine
Version: %(echo ${MJF_VERSION:-0.0})
Release: 1
BuildArch: noarch
Summary: Machine/Job Features for Grid Engine
License: BSD
Group: System Environment/Daemons
Source: mjf-scripts.tgz
Vendor: GridPP
Packager: Andrew McNab <Andrew.McNab@cern.ch>

%description
MJF implementations following HSF-TN-2016-02

%prep

%setup -n mjf-scripts

%build

%install
make gridengine-install

%post
chkconfig mjf on
service mjf start

%preun
if [ "$1" = "0" ] ; then
  # if uninstallation rather than upgrade then stop
  chkconfig mjf off
  service mjf stop
fi

%files
/etc/rc.d/init.d/*
/etc/profile.d/*
/usr/sbin/*