forked from projectvacuum/vcycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vcycle.spec
85 lines (67 loc) · 1.78 KB
/
vcycle.spec
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Name: vcycle
Version: %(echo ${VCYCLE_VERSION:-0.0})
Release: 1
BuildArch: noarch
Summary: Vcycle daemon and tools
License: BSD
Group: System Environment/Daemons
Source: vcycle.tgz
URL: http://www.gridpp.ac.uk/vac/
Vendor: GridPP
Packager: Andrew McNab <[email protected]>
Requires: httpd,mod_ssl,python-pycurl,m2crypto,python-requests,openssl
%description
VM lifecycle manager daemon for OpenStack, EC2 etc
%package azure
Summary: Azure plugin for Vcycle
Requires: vcycle
%description azure
Azure plugin for Vcycle, contributed by CERN/IT
%package occi
Summary: OCCI plugin for Vcycle
Requires: vcycle
%description occi
OCCI plugin for Vcycle, contributed by CERN/IT
%package dbce
Summary: DBCE plugin for Vcycle
Requires: vcycle
%description dbce
DBCE plugin for Vcycle, contributed by CERN/IT
%prep
%setup -n vcycle
%build
%install
make install
%preun
if [ "$1" = "0" ] ; then
# if uninstallation rather than upgrade then stop
service vcycled stop
fi
%post
service vcycled status
if [ $? = 0 ] ; then
# if already running then restart with new version
service vcycled restart
fi
%files
/usr/sbin
/usr/share/doc/vcycle-%{version}
/usr/lib64/python2.6/site-packages/vcycle/__init__.py*
/usr/lib64/python2.6/site-packages/vcycle/shared.py*
/usr/lib64/python2.6/site-packages/vcycle/vacutils.py*
/usr/lib64/python2.6/site-packages/vcycle/openstack_api.py*
/usr/lib64/python2.6/site-packages/vcycle/ec2_api.py*
/var/lib/vcycle
/etc/rc.d/init.d/vcycled
/etc/logrotate.d/vcycled
/etc/vcycle.d
/usr/share/man/man5/*
/usr/share/man/man8/*
%post azure
pip install azure-servicemanagement-legacy
%files azure
/usr/lib64/python2.6/site-packages/vcycle/azure_api.py*
%files occi
/usr/lib64/python2.6/site-packages/vcycle/occi_api.py*
%files dbce
/usr/lib64/python2.6/site-packages/vcycle/dbce_api.py*