forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
noarch.spec.in
143 lines (116 loc) · 3.99 KB
/
noarch.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
# -*- rpm-spec -*-
Summary: xapi-noarch - xen toolstack for XCP
Name: xapi-noarch
Version: 0.2
Release: @RPM_RELEASE@
Group: System/Hypervisor
License: LGPL+linking exception
URL: http://www.xen.org
Source0: xapi-noarch-%{version}.tar.bz2
Source1: jquery-1.1.3.1.pack.js
Source2: jquery.treeview.zip
Source3: opam-repo-dev.tar.bz2
Patch0: xapi-version.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: pam-devel tetex-latex ocaml ocaml-opam opam-repository opam-system xen-devel zlib-devel
BuildArch: noarch
%description
XCP toolstack.
%package backend-udev
Summary: The udev rules and scripts needed by a network/block driver domain
Group: System/Hypervisor
Requires: util-linux ethtool bridge-utils iproute
# + openvswitch
# + a package with xenstore-{ls,read,write}
%description backend-udev
The udev rules are triggered by blkback/netback and implement part of the disk/network hotplug protocol. All driver domains must install this package (or a similar one)
%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
%setup -a 3 -T -D -c opam-repo-dev
cp $RPM_SOURCE_DIR/jquery* $RPM_BUILD_DIR/xapi-noarch-0.2/ocaml/idl
%patch0 -p0 -b xapi-version.patch
%build
export OPAMROOT=/usr/local/opam
eval `opam config -env`
opam remote add dev opam-repo-dev || true
opam install -y cdrom fd-send-recv forkexecd libvhd nbd netdev oclock ounit rpc ssl stdext syslog tapctl xen-api-libs-transitional xenctrl xenstore
COMPILE_JAVA=no %{__make}
%install
rm -rf %{buildroot}
export OPAMROOT=/usr/local/opam
eval `opam config -env`
DESTDIR=$RPM_BUILD_ROOT %{__make} noarch-install
%clean
rm -rf $RPM_BUILD_ROOT
%files backend-udev
%defattr(-,root,root,-)
/etc/udev/rules.d/xen-backend.rules
/etc/udev/rules.d/xen-frontend.rules
/etc/udev/xen-backend.rules
/etc/udev/xen-frontend.rules
/etc/xensource/scripts/block-frontend
/etc/xensource/scripts/tap
/etc/xensource/scripts/vif
/etc/xensource/scripts/block
@OPTDIR@/libexec/setup-vif-rules
%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