forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xapi.spec.in
420 lines (370 loc) · 11.5 KB
/
xapi.spec.in
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# -*- rpm-spec -*-
Summary: xapi - xen toolstack for XCP
Name: xapi
Version: 1.9.57
Release: @RPM_RELEASE@
Group: System/Hypervisor
License: LGPL+linking exception
URL: http://www.xen.org
Source0: xapi-%{version}.tar.bz2
Source1: jquery-1.1.3.1.pack.js
Source2: jquery.treeview.zip
Patch0: xapi-version.patch
Patch1: scripts/0001-Workaround-for-NVIDIA-330.patch
BuildRequires: ocaml
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamldoc
BuildRequires: pam-devel
BuildRequires: tetex-latex
BuildRequires: xen-devel
BuildRequires: libffi-devel
BuildRequires: zlib-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: ocaml-xen-api-libs-transitional-devel
BuildRequires: ocaml-netdev-devel
BuildRequires: ocaml-xen-api-client-devel
BuildRequires: omake
BuildRequires: forkexecd-devel
BuildRequires: ocaml-cdrom-devel
BuildRequires: ocaml-fd-send-recv-devel
BuildRequires: ocaml-nbd-devel
BuildRequires: ocaml-oclock-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-rpc-devel
BuildRequires: ocaml-ssl-devel
BuildRequires: ocaml-stdext-devel
BuildRequires: ocaml-tapctl-devel
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-opasswd-devel
BuildRequires: git
BuildRequires: ocaml-xcp-inventory-devel
BuildRequires: ocaml-xenstore-devel
BuildRequires: libuuid-devel
BuildRequires: make
BuildRequires: message-switch-devel
BuildRequires: ocaml-xenstore-clients-devel
BuildRequires: ocaml-xcp-rrd-devel
BuildRequires: ocaml-tar-devel
BuildRequires: python2-devel
BuildRequires: ocaml-rrdd-plugin-devel
BuildRequires: ocaml-pci-devel >= 0.2.0
Requires: hwdata
Requires: ocaml-xcp-inventory
Requires: redhat-lsb-core
Requires: stunnel
Requires: vhd-tool
Requires: libffi
%description
XCP toolstack.
%package core
Summary: The xapi toolstack
Group: System/Hypervisor
Requires: busybox m2crypto net-tools
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
BuildRequires: systemd
%description core
This package contains the xapi toolstack.
%package xe
Summary: The xapi toolstack CLI
Group: System/Hypervisor
%description xe
The command-line interface for controlling XCP hosts.
%package tests
Summary: Toolstack test programs
Group: System/Hypervisor
Requires: net-tools
%description tests
This package contains a series of simple regression tests.
%package v6d
Summary: The editions and features daemon
Group: System/Hypervisor
%description v6d
This package contains daemon that defines and controls XCP editions and
associated features
%package client-devel
Summary: xapi Development Headers and Libraries
Group: Development/Libraries
%description client-devel
This package contains the xapi development libraries and header files
for building addon tools.
%package datamodel-devel
Summary: xapi Datamodel headers and libraries
Group: Development/Libraries
%description datamodel-devel
This package contains the internal xapi datamodel as a library suitable
for writing additional code generators.
%package www
Summary: The XenAPI www interface
Group: System/Hypervisor
%description www
This package contains the XenAPI www interface
%package docs
Summary: Xen-API documentation and examples
Group: Development/Documentation
%description docs
This package contains Xen-API documentation and examples in several programming languages.
%prep
%setup -q
%patch0 -p0 -b xapi-version.patch
%patch1 -p1
cp $RPM_SOURCE_DIR/jquery* $RPM_BUILD_DIR/xapi-%{version}/ocaml/idl
%build
./configure
COMPILE_JAVA=no %{__make}
%check
COMPILE_JAVA=no %{__make} test
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT %{__make} install
DESTDIR=$RPM_BUILD_ROOT %{__make} noarch-install
SITEDIR=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
for f in XenAPI XenAPIPlugin inventory; do
for e in py pyc pyo; do
echo $SITEDIR/$f.$e
done
done > core-files
ln -s /var/lib/xcp $RPM_BUILD_ROOT/var/xapi
mkdir $RPM_BUILD_ROOT/etc/xapi.conf.d
%clean
rm -rf $RPM_BUILD_ROOT
%post core
[ ! -x /sbin/chkconfig ] || chkconfig --add save-boot-info
[ ! -x /sbin/chkconfig ] || chkconfig --add attach-static-vdis
[ ! -x /sbin/chkconfig ] || chkconfig --add xapi
[ ! -x /sbin/chkconfig ] || chkconfig --add xapi-domains
[ ! -x /sbin/chkconfig ] || chkconfig --add perfmon
[ ! -x /sbin/chkconfig ] || chkconfig --add genptoken
%systemd_post cdrommon@.service
%preun core
%systemd_preun cdrommon@.service
%postun core
%systemd_postun_with_restart cdrommon@.service
%post v6d
[ ! -x /sbin/chkconfig ] || chkconfig --add v6d
%files core -f core-files
%defattr(-,root,root,-)
@OPTDIR@/bin/xapi
%config(noreplace) /etc/xapi.conf
/etc/logrotate.d/audit
/etc/logrotate.d/v6d
/etc/logrotate.d/xapi
/etc/pam.d/xapi
/etc/cron.daily/license-check
/etc/rc.d/init.d/management-interface
/etc/rc.d/init.d/perfmon
/etc/rc.d/init.d/xapi
/etc/rc.d/init.d/xapi-domains
@OPTDIR@/libexec/xapissl
/etc/rc.d/init.d/genptoken
/etc/rc.d/init.d/attach-static-vdis
/etc/rc.d/init.d/save-boot-info
%config(noreplace) /etc/sysconfig/perfmon
%config(noreplace) /etc/sysconfig/xapi
/etc/xapi.conf.d
/etc/xapi.d/base-path
/etc/xapi.d/plugins/DRAC.py
/etc/xapi.d/plugins/DRAC.pyo
/etc/xapi.d/plugins/DRAC.pyc
/etc/xapi.d/plugins/echo
/etc/xapi.d/plugins/extauth-hook
/etc/xapi.d/plugins/extauth-hook-AD.py
/etc/xapi.d/plugins/extauth-hook-AD.pyo
/etc/xapi.d/plugins/extauth-hook-AD.pyc
/etc/xapi.d/plugins/iLO.py
/etc/xapi.d/plugins/iLO.pyo
/etc/xapi.d/plugins/iLO.pyc
/etc/xapi.d/plugins/iLOPowerON.xml
/etc/xapi.d/plugins/perfmon
/etc/xapi.d/plugins/power-on-host
/etc/xapi.d/plugins/wake-on-lan
/etc/xapi.d/plugins/wlan.py
/etc/xapi.d/plugins/wlan.pyo
/etc/xapi.d/plugins/wlan.pyc
/etc/xapi.d/plugins/iovirt
/etc/xapi.d/plugins/install-supp-pack
/etc/xapi.d/plugins/disk-space
/etc/xapi.d/extensions
%config(noreplace) /etc/xensource/db.conf
%config(noreplace) /etc/xensource/db.conf.rio
/etc/xensource/master.d/01-example
/etc/xensource/master.d/03-mpathalert-daemon
%config(noreplace) /etc/xensource/pool.conf
@OPTDIR@/bin/fix_firewall.sh
@OPTDIR@/bin/mpathalert
@OPTDIR@/bin/perfmon
@OPTDIR@/bin/static-vdis
@OPTDIR@/bin/xapi-autostart-vms
@OPTDIR@/bin/xapi-db-process
@OPTDIR@/bin/xapi-wait-init-complete
@OPTDIR@/bin/xe-backup-metadata
@OPTDIR@/bin/xe-edit-bootloader
@OPTDIR@/bin/xe-get-network-backend
@OPTDIR@/bin/xe-mount-iso-sr
@OPTDIR@/bin/xe-restore-metadata
@OPTDIR@/bin/xe-reset-networking
@OPTDIR@/bin/xe-scsi-dev-map
@OPTDIR@/bin/xe-set-iscsi-iqn
@OPTDIR@/bin/xe-toolstack-restart
@OPTDIR@/bin/xe-xentrace
@OPTDIR@/bin/xe-switch-network-backend
@OPTDIR@/bin/xe-enable-all-plugin-metrics
@OPTDIR@/bin/xva-rewrite-scsiid
@OPTDIR@/bin/xe-install-supplemental-pack
@OPTDIR@/bin/hfx_filename
@OPTDIR@/bin/pv2hvm
@OPTDIR@/bin/xe-enable-ipv6
/etc/bash_completion.d/xe-switch-network-backend
@OPTDIR@/bin/xsh
@OPTDIR@/gpg/pubring.gpg
@OPTDIR@/gpg/secring.gpg
@OPTDIR@/gpg/trustdb.gpg
/etc/xensource/bugtool/xapi.xml
/etc/xensource/bugtool/xapi/stuff.xml
/etc/xensource/bugtool/xenopsd.xml
/etc/xensource/bugtool/xenopsd/stuff.xml
@OPTDIR@/libexec/list_plugins
@OPTDIR@/libexec/sm_diagnostics
@OPTDIR@/libexec/xn_diagnostics
@OPTDIR@/libexec/thread_diagnostics
@OPTDIR@/libexec/InterfaceReconfigure.py
@OPTDIR@/libexec/InterfaceReconfigure.pyo
@OPTDIR@/libexec/InterfaceReconfigure.pyc
@OPTDIR@/libexec/InterfaceReconfigureBridge.py
@OPTDIR@/libexec/InterfaceReconfigureBridge.pyo
@OPTDIR@/libexec/InterfaceReconfigureBridge.pyc
@OPTDIR@/libexec/InterfaceReconfigureVswitch.py
@OPTDIR@/libexec/InterfaceReconfigureVswitch.pyo
@OPTDIR@/libexec/InterfaceReconfigureVswitch.pyc
@OPTDIR@/libexec/backup-metadata-cron
@OPTDIR@/libexec/backup-sr-metadata.py
@OPTDIR@/libexec/backup-sr-metadata.pyo
@OPTDIR@/libexec/backup-sr-metadata.pyc
@OPTDIR@/libexec/block_device_io
@OPTDIR@/libexec/cdrommon
@OPTDIR@/libexec/fence
@OPTDIR@/libexec/generate_ssl_cert
@OPTDIR@/libexec/host-backup
@OPTDIR@/libexec/host-bugreport-upload
@OPTDIR@/libexec/host-display
@OPTDIR@/libexec/host-restore
@OPTDIR@/libexec/interface-reconfigure
@OPTDIR@/libexec/interface-visualise
@OPTDIR@/libexec/license-check.py
@OPTDIR@/libexec/license-check.pyo
@OPTDIR@/libexec/license-check.pyc
@OPTDIR@/libexec/link-vms-by-sr.py
@OPTDIR@/libexec/link-vms-by-sr.pyo
@OPTDIR@/libexec/link-vms-by-sr.pyc
@OPTDIR@/libexec/logs-download
@OPTDIR@/libexec/pbis-force-domain-leave
@OPTDIR@/libexec/mail-alarm
@OPTDIR@/libexec/print-custom-templates
@OPTDIR@/libexec/probe-device-for-file
@OPTDIR@/libexec/genptoken
@OPTDIR@/libexec/restore-sr-metadata.py
@OPTDIR@/libexec/restore-sr-metadata.pyo
@OPTDIR@/libexec/restore-sr-metadata.pyc
@OPTDIR@/libexec/set-hostname
@OPTDIR@/libexec/shell.py
@OPTDIR@/libexec/shell.pyo
@OPTDIR@/libexec/shell.pyc
@OPTDIR@/libexec/shutdown
@OPTDIR@/libexec/update-mh-info
@OPTDIR@/libexec/upload-wrapper
@OPTDIR@/libexec/xapi-health-check
@OPTDIR@/libexec/xapi-rolling-upgrade
@OPTDIR@/libexec/xha-lc
@OPTDIR@/libexec/xe-syslog-reconfigure
@OPTDIR@/packages/post-install-scripts/debian-etch
@OPTDIR@/packages/post-install-scripts/debug
/etc/xensource/udhcpd.skel
@OPTDIR@/debug/rbac_static.csv
/etc/xapi.d/host-post-declare-dead/10resetvdis
/var/xapi
@OPTDIR@/debug/debug_ha_query_liveset
@OPTDIR@/debug/event_listen
@OPTDIR@/debug/graph
@OPTDIR@/debug/sm_stress
@OPTDIR@/debug/vncproxy
@OPTDIR@/debug/with-vdi
%{_unitdir}/cdrommon@.service
%files xe
%defattr(-,root,root,-)
@OPTDIR@/bin/xe
/usr/bin/xe
/etc/bash_completion.d/xe
%files v6d
%defattr(-,root,root,-)
@OPTDIR@/libexec/v6d
/etc/rc.d/init.d/v6d
%files tests
%defattr(-,root,root,-)
@OPTDIR@/debug/cli-rt-domu-shar.sh
@OPTDIR@/debug/cli_test
@OPTDIR@/debug/install-debian-pv-inside.sh
@OPTDIR@/debug/install-debian-pv.sh
@OPTDIR@/debug/myfirstpatch.asc
@OPTDIR@/debug/perftest
@OPTDIR@/debug/quicktest
@OPTDIR@/debug/quicktestbin
/cli-rt/*
%files client-devel
%defattr(-,root,root,-)
%{_libdir}/ocaml/xapi-client/*
%files datamodel-devel
%defattr(-,root,root,-)
%{_libdir}/ocaml/xapi-datamodel/*
%files www
%defattr(-,root,root,-)
#@OPTDIR@/debug/www/XenServerConsole.jar
@OPTDIR@/debug/www/api.js
@OPTDIR@/debug/www/apicall.css
@OPTDIR@/debug/www/apicall.js
@OPTDIR@/debug/www/construct_tree.js
@OPTDIR@/debug/www/devweb.css
@OPTDIR@/debug/www/devweb.js
@OPTDIR@/debug/www/editables.js
@OPTDIR@/debug/www/graphs.js
@OPTDIR@/debug/www/haplan.css
@OPTDIR@/debug/www/haplan.js
@OPTDIR@/debug/www/images/xen_logo.gif
@OPTDIR@/debug/www/index.html
@OPTDIR@/debug/www/jquery/jqDnR.css
@OPTDIR@/debug/www/jquery/jqDnR.js
@OPTDIR@/debug/www/jquery/jqModal.css
@OPTDIR@/debug/www/jquery/jqModal.js
@OPTDIR@/debug/www/jquery/jquery-1.3.2.js
@OPTDIR@/debug/www/jquery/jquery-dom.js
@OPTDIR@/debug/www/jquery/jquery.autocomplete.css
@OPTDIR@/debug/www/jquery/jquery.autocomplete.js
@OPTDIR@/debug/www/jquery/jquery.bgiframe.js
@OPTDIR@/debug/www/jquery/jquery.color.js
@OPTDIR@/debug/www/jquery/jquery.cookie.js
@OPTDIR@/debug/www/jquery/jquery.jeditable.js
@OPTDIR@/debug/www/jquery/jquery.rpc.js
@OPTDIR@/debug/www/jquery/jquery.treeview.js
@OPTDIR@/debug/www/main.js
@OPTDIR@/debug/www/messages.js
@OPTDIR@/debug/www/networks.css
@OPTDIR@/debug/www/networks.js
@OPTDIR@/debug/www/objectviewoverrides.js
@OPTDIR@/debug/www/offline.js
@OPTDIR@/debug/www/process_rrd.js
@OPTDIR@/debug/www/tree.css
@OPTDIR@/debug/www/vmsearch.js
@OPTDIR@/debug/www/xenapi.js
%files docs
%defattr(-,root,root,-)
/usr/share/doc/xapi/*
#/usr/share/doc/xapi/client-examples/*/*
#/usr/share/doc/xapi/docs/html/API/Classes/*/index.html
#/usr/share/doc/xapi/docs/html/API/Classes/*/Explicit/*
#/usr/share/doc/xapi/docs/html/API/Classes/*/Implicit/*
#/usr/share/doc/xapi/docs/html/API/Classes/*/Fields/*
#/usr/share/doc/xapi/docs/html/*
#/usr/share/doc/xapi/docs/html/images/*
#/usr/share/doc/xapi/docs/pdf/xenenterpriseapi.pdf
%changelog