forked from xapi-project/xen-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Make a separate noarch.spec.in for noarch RPMs
Unfortunately old versions of RPM don't seem to like having noarch subpackages. Work around this with a whole new spec file. Unfortunately this means compiling the code twice. Signed-off-by: David Scott <dave.scott@eu.citrix.com>
- Loading branch information
David Scott
committed
Jun 12, 2012
1 parent
cddf779
commit 06be7e4
Showing
8 changed files
with
170 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# -*- 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 | ||
Patch0: xapi-version.patch | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-root | ||
BuildRequires: pam-devel tetex-latex xapi-libs-devel ocaml omake ocaml-findlib ocaml-xmlm ocaml-type-conv ocaml-xmlm-devel 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 | ||
cp $RPM_SOURCE_DIR/jquery* $RPM_BUILD_DIR/xapi-noarch-0.2/ocaml/idl | ||
%patch0 -p0 -b xapi-version.patch | ||
|
||
%build | ||
COMPILE_JAVA=no %{__make} | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
|
||
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 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.