Skip to content
This repository
Newer
Older
100644 134 lines (108 sloc) 3.756 kb
06be7e43 »
2012-05-31 [build] Make a separate noarch.spec.in for noarch RPMs
1 # -*- rpm-spec -*-
2
3 Summary: xapi-noarch - xen toolstack for XCP
4 Name: xapi-noarch
5 Version: 0.2
6 Release: @RPM_RELEASE@
7 Group: System/Hypervisor
8 License: LGPL+linking exception
9 URL: http://www.xen.org
10 Source0: xapi-noarch-%{version}.tar.bz2
11 Source1: jquery-1.1.3.1.pack.js
12 Source2: jquery.treeview.zip
13 Patch0: xapi-version.patch
14 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15 BuildRequires: pam-devel tetex-latex xapi-libs-devel ocaml omake ocaml-findlib ocaml-xmlm ocaml-type-conv ocaml-xmlm-devel xen-devel zlib-devel
16 BuildArch: noarch
17
18 %description
19 XCP toolstack.
20
21 %package backend-udev
22 Summary: The udev rules and scripts needed by a network/block driver domain
23 Group: System/Hypervisor
24 Requires: util-linux ethtool bridge-utils iproute
25 # + openvswitch
26 # + a package with xenstore-{ls,read,write}
27
28 %description backend-udev
29 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)
30
31 %package www
32 Summary: The XenAPI www interface
33 Group: System/Hypervisor
34
35 %description www
36 This package contains the XenAPI www interface
37
38 %package docs
39 Summary: Xen-API documentation and examples
40 Group: Development/Documentation
41
42 %description docs
43 This package contains Xen-API documentation and examples in several programming languages.
44
45 %prep
46 %setup -q
47 cp $RPM_SOURCE_DIR/jquery* $RPM_BUILD_DIR/xapi-noarch-0.2/ocaml/idl
48 %patch0 -p0 -b xapi-version.patch
49
50 %build
51 COMPILE_JAVA=no %{__make}
52
53 %install
54 rm -rf %{buildroot}
55
56 DESTDIR=$RPM_BUILD_ROOT %{__make} noarch-install
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files backend-udev
62 %defattr(-,root,root,-)
63 /etc/udev/rules.d/xen-backend.rules
64 /etc/udev/rules.d/xen-frontend.rules
65 /etc/udev/xen-backend.rules
66 /etc/udev/xen-frontend.rules
67 /etc/xensource/scripts/block-frontend
68 /etc/xensource/scripts/tap
69 /etc/xensource/scripts/vif
70 /etc/xensource/scripts/block
71 @OPTDIR@/libexec/setup-vif-rules
72
73 %files www
74 %defattr(-,root,root,-)
75 #@OPTDIR@/debug/www/XenServerConsole.jar
76 @OPTDIR@/debug/www/api.js
77 @OPTDIR@/debug/www/apicall.css
78 @OPTDIR@/debug/www/apicall.js
79 @OPTDIR@/debug/www/construct_tree.js
80 @OPTDIR@/debug/www/devweb.css
81 @OPTDIR@/debug/www/devweb.js
82 @OPTDIR@/debug/www/editables.js
83 @OPTDIR@/debug/www/graphs.js
84 @OPTDIR@/debug/www/haplan.css
85 @OPTDIR@/debug/www/haplan.js
86 @OPTDIR@/debug/www/images/xen_logo.gif
87 @OPTDIR@/debug/www/index.html
88 @OPTDIR@/debug/www/jquery/jqDnR.css
89 @OPTDIR@/debug/www/jquery/jqDnR.js
90 @OPTDIR@/debug/www/jquery/jqModal.css
91 @OPTDIR@/debug/www/jquery/jqModal.js
92 @OPTDIR@/debug/www/jquery/jquery-1.3.2.js
93 @OPTDIR@/debug/www/jquery/jquery-dom.js
94 @OPTDIR@/debug/www/jquery/jquery.autocomplete.css
95 @OPTDIR@/debug/www/jquery/jquery.autocomplete.js
96 @OPTDIR@/debug/www/jquery/jquery.bgiframe.js
97 @OPTDIR@/debug/www/jquery/jquery.color.js
98 @OPTDIR@/debug/www/jquery/jquery.cookie.js
99 @OPTDIR@/debug/www/jquery/jquery.jeditable.js
100 @OPTDIR@/debug/www/jquery/jquery.rpc.js
101 @OPTDIR@/debug/www/jquery/jquery.treeview.js
102 @OPTDIR@/debug/www/main.js
103 @OPTDIR@/debug/www/messages.js
104 @OPTDIR@/debug/www/networks.css
105 @OPTDIR@/debug/www/networks.js
106 @OPTDIR@/debug/www/objectviewoverrides.js
107 @OPTDIR@/debug/www/offline.js
108 @OPTDIR@/debug/www/process_rrd.js
109 @OPTDIR@/debug/www/tree.css
110 @OPTDIR@/debug/www/vmsearch.js
111 @OPTDIR@/debug/www/xenapi.js
112
113 %files docs
114 %defattr(-,root,root,-)
115 /usr/share/doc/xapi/*
116 #/usr/share/doc/xapi/client-examples/*/*
117 #/usr/share/doc/xapi/docs/html/API/Classes/*/index.html
118 #/usr/share/doc/xapi/docs/html/API/Classes/*/Explicit/*
119 #/usr/share/doc/xapi/docs/html/API/Classes/*/Implicit/*
120 #/usr/share/doc/xapi/docs/html/API/Classes/*/Fields/*
121 #/usr/share/doc/xapi/docs/html/*
122 #/usr/share/doc/xapi/docs/html/images/*
123 #/usr/share/doc/xapi/docs/pdf/xenenterpriseapi.pdf
124
125 %changelog
126
127
128
129
130
131
132
133
Something went wrong with that request. Please try again.