WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 3 of 3] Add RPM .spec file for xapi and associated tool

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 3 of 3] Add RPM .spec file for xapi and associated tools
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 13 May 2010 23:27:29 +0100
Delivery-date: Thu, 13 May 2010 15:28:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1273789646@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1273789408 -3600
# Node ID 6f791a2f860bceacc9c2d59288d9bd21e3e6707f
# Parent  c5f17a73162e266683f7a8c53e88a5dbdd2d1c6c
Add RPM .spec file for xapi and associated tools.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r c5f17a73162e -r 6f791a2f860b mk/Makefile
--- a/mk/Makefile       Thu May 13 23:23:27 2010 +0100
+++ b/mk/Makefile       Thu May 13 23:23:28 2010 +0100
@@ -35,6 +35,18 @@
 build: $(OUTPUT_XAPI) $(OUTPUT_XAPI_DEVEL) $(OUTPUT_CLI_RT) $(OUTPUT_SDK) 
$(MY_OBJ_DIR)/.rpmbuild.cli.stamp $(MY_SOURCES)/MANIFEST
        $(call mkdir_clean,$(MY_LINUX_CDFILES)/client_install)
        install -m 755 -o root -g root $(RPM_RPMSDIR)/i386/xe-cli-*.rpm 
$(MY_LINUX_CDFILES)/client_install/
+
+RPM_SOURCEDIR=/usr/src/redhat/SOURCES
+
+$(RPM_SOURCEDIR)/xapi-0.2.tar.bz2:
+       hg archive -t tbz2 $@
+
+.PHONY: rpm
+rpm: $(RPM_SOURCEDIR)/xapi-0.2.tar.bz2
+       $(MAKE) -C $(REPO) version
+       rm -f $(RPM_SOURCEDIR)/xapi-version.patch
+       (cd $(REPO); diff -u /dev/null ocaml/util/version.ml > 
$(RPM_SOURCEDIR)/xapi-version.patch) || true
+       rpmbuild -ba xapi.spec
 
 $(MY_SOURCES)/MANIFEST: $(MY_SOURCES_DIRSTAMP) $(OUTPUT_XAPI_SRC)
        echo api gpl+lgpl-with-linking-exception file $(OUTPUT_XAPI_SRC) > $@
diff -r c5f17a73162e -r 6f791a2f860b mk/xapi.spec
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/xapi.spec      Thu May 13 23:23:28 2010 +0100
@@ -0,0 +1,310 @@
+# -*- rpm-spec -*-
+
+Summary: xapi - xen toolstack for XCP
+Name:    xapi
+Version: 0.2
+Release: 0
+Group:   System/Hypervisor
+License: LGPL+linking exception
+URL:  http://www.xen.org
+Source0: xapi-%{version}.tar.bz2
+Patch0: xapi-version.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: pam-devel tetex
+
+%description
+XCP toolstack.
+
+%package xapi
+Summary: The xapi toolstack
+Group: System/Hypervisor
+
+%description xapi
+This package contains the xapi toolstack.
+
+%package squeezed
+Summary: The memory ballooning daemon
+Group: System/Hypervisor
+
+%description squeezed
+This package contains the Xen virtual firmware (hvmloader)
+
+%package xenops
+Summary: Low-level debugging tools
+Group: System/Hypervisor
+
+%description xenops
+This package contains the xenops-based low-level debugging tools.
+
+%package devel
+Summary: xapi Development Headers and Libraries
+Group:   Development/Libraries
+
+%description devel
+This package contains the xapi development libraries and header files
+for building addon tools.
+
+%prep 
+%setup -q
+%patch0 -p0 -b xapi-version.patch
+
+%build
+%{__make}
+
+%install
+rm -rf %{buildroot}
+
+DESTDIR=$RPM_BUILD_ROOT %{__make} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post xapi
+[ ! -x /sbin/chkconfig ] || chkconfig xapi on
+
+%post squeezed
+[ ! -x /sbin/chkconfig ] || chkconfig squeezed on
+
+%files xapi
+%defattr(-,root,root,-)
+/opt/xensource/bin/xapi
+/etc/bash_completion.d/cli
+/etc/logrotate.d/audit
+/etc/logrotate.d/v6d
+/etc/logrotate.d/xapi
+/etc/pam.d/xapi
+/etc/rc.d/init.d/management-interface
+/etc/rc.d/init.d/perfmon
+/etc/rc.d/init.d/v6d
+/etc/rc.d/init.d/xapi
+/etc/rc.d/init.d/xapi-domains
+/etc/rc.d/init.d/xapissl
+/etc/rc.d/init.d/xenservices
+/etc/sysconfig/perfmon
+/etc/sysconfig/xapi
+/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/xapi.d/plugins/DRAC.py
+/etc/xapi.d/plugins/DRAC.pyc
+/etc/xapi.d/plugins/DRAC.pyo
+/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.pyc
+/etc/xapi.d/plugins/extauth-hook-AD.pyo
+/etc/xapi.d/plugins/iLO.py
+/etc/xapi.d/plugins/iLO.pyc
+/etc/xapi.d/plugins/iLO.pyo
+/etc/xapi.d/plugins/iLOPowerON.xml
+/etc/xapi.d/plugins/lvhdrt-helper
+/etc/xapi.d/plugins/lvhdrt-trash-vdi
+/etc/xapi.d/plugins/multipathrt-helper
+/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.pyc
+/etc/xapi.d/plugins/wlan.pyo
+/etc/xensource/db.conf
+/etc/xensource/db.conf.rio
+/etc/xensource/log.conf
+/etc/xensource/master.d/01-example
+/etc/xensource/master.d/03-mpathalert-daemon
+/etc/xensource/pool.conf
+/etc/xensource/scripts/block
+/etc/xensource/scripts/block-frontend
+/etc/xensource/scripts/tap
+/etc/xensource/scripts/vif
+/etc/xensource/xapi-ssl.conf
+/etc/xensource/xapi.conf
+/etc/xensource/xenstored.conf
+/opt/xensource/bin/fix_firewall.sh
+/opt/xensource/bin/list_domains
+/opt/xensource/bin/mpathalert
+/opt/xensource/bin/perfmon
+/opt/xensource/bin/static-vdis
+/opt/xensource/bin/v6d-reopen-logs
+/opt/xensource/bin/xapi-autostart-vms
+/opt/xensource/bin/xapi-db-process
+/opt/xensource/bin/xapi-wait-init-complete
+/opt/xensource/bin/xe
+/opt/xensource/bin/xe-backup-metadata
+/opt/xensource/bin/xe-edit-bootloader
+/opt/xensource/bin/xe-mount-iso-sr
+/opt/xensource/bin/xe-restore-metadata
+/opt/xensource/bin/xe-scsi-dev-map
+/opt/xensource/bin/xe-set-iscsi-iqn
+/opt/xensource/bin/xe-toolstack-restart
+/opt/xensource/bin/xe-xentrace
+/opt/xensource/bin/xenstored
+/opt/xensource/bin/xsh
+/opt/xensource/libexec/InterfaceReconfigure.py
+/opt/xensource/libexec/InterfaceReconfigure.pyc
+/opt/xensource/libexec/InterfaceReconfigure.pyo
+/opt/xensource/libexec/InterfaceReconfigureBridge.py
+/opt/xensource/libexec/InterfaceReconfigureBridge.pyc
+/opt/xensource/libexec/InterfaceReconfigureBridge.pyo
+/opt/xensource/libexec/InterfaceReconfigureVswitch.py
+/opt/xensource/libexec/InterfaceReconfigureVswitch.pyc
+/opt/xensource/libexec/InterfaceReconfigureVswitch.pyo
+/opt/xensource/libexec/backup-metadata-cron
+/opt/xensource/libexec/backup-sr-metadata.py
+/opt/xensource/libexec/backup-sr-metadata.pyc
+/opt/xensource/libexec/backup-sr-metadata.pyo
+/opt/xensource/libexec/block_device_io
+/opt/xensource/libexec/c_rehash
+/opt/xensource/libexec/cdrommon
+/opt/xensource/libexec/dumpcore
+/opt/xensource/libexec/fence
+/opt/xensource/libexec/fence.bin
+/opt/xensource/libexec/generate_ssl_cert
+/opt/xensource/libexec/host-backup
+/opt/xensource/libexec/host-bugreport-upload
+/opt/xensource/libexec/host-restore
+/opt/xensource/libexec/interface-reconfigure
+/opt/xensource/libexec/interface-visualise
+/opt/xensource/libexec/license-check.py
+/opt/xensource/libexec/license-check.pyc
+/opt/xensource/libexec/license-check.pyo
+/opt/xensource/libexec/link-vms-by-sr.py
+/opt/xensource/libexec/link-vms-by-sr.pyc
+/opt/xensource/libexec/link-vms-by-sr.pyo
+/opt/xensource/libexec/logrotate.sh
+/opt/xensource/libexec/logs-download
+/opt/xensource/libexec/lw-force-domain-leave
+/opt/xensource/libexec/mail-alarm
+/opt/xensource/libexec/print-custom-templates
+/opt/xensource/libexec/probe-device-for-file
+/opt/xensource/libexec/qemu-dm-wrapper
+/opt/xensource/libexec/restore-sr-metadata.py
+/opt/xensource/libexec/restore-sr-metadata.pyc
+/opt/xensource/libexec/restore-sr-metadata.pyo
+/opt/xensource/libexec/rewrite-management-interface
+/opt/xensource/libexec/set-dom0-memory-target-from-packs
+/opt/xensource/libexec/set-hostname
+/opt/xensource/libexec/shell.py
+/opt/xensource/libexec/shell.pyc
+/opt/xensource/libexec/shell.pyo
+/opt/xensource/libexec/shutdown
+/opt/xensource/libexec/update-mh-info
+/opt/xensource/libexec/upload-wrapper
+/opt/xensource/libexec/v6d
+/opt/xensource/libexec/vncterm-wrapper
+/opt/xensource/libexec/xapi-health-check
+/opt/xensource/libexec/xapi-rolling-upgrade
+/opt/xensource/libexec/xenguest
+/opt/xensource/libexec/xha-lc
+/opt/xensource/libexec/xiu
+/opt/xensource/packages/post-install-scripts/debian-etch
+/opt/xensource/packages/post-install-scripts/debug
+/usr/bin/xe
+/usr/lib/python2.4/site-packages/XenAPI.py
+/usr/lib/python2.4/site-packages/XenAPI.pyc
+/usr/lib/python2.4/site-packages/XenAPI.pyo
+/usr/lib/python2.4/site-packages/XenAPIPlugin.py
+/usr/lib/python2.4/site-packages/XenAPIPlugin.pyc
+/usr/lib/python2.4/site-packages/XenAPIPlugin.pyo
+/usr/lib/python2.4/site-packages/inventory.py
+/usr/lib/python2.4/site-packages/inventory.pyc
+/usr/lib/python2.4/site-packages/inventory.pyo
+/var/xapi/udhcpd.skel
+
+
+%files squeezed
+%defattr(-,root,root,-)
+/opt/xensource/libexec/squeezed
+/etc/logrotate.d/squeezed
+/etc/rc.d/init.d/squeezed
+/opt/xensource/bin/squeezed_client
+
+
+%files xenops
+%defattr(-,root,root,-)
+/opt/xensource/debug/xenops
+/opt/xensource/debug/add_vbd
+/opt/xensource/debug/add_vif
+/opt/xensource/debug/build_domain
+/opt/xensource/debug/build_hvm
+/opt/xensource/debug/cli-rt-domu-shar.sh
+/opt/xensource/debug/cli_test
+/opt/xensource/debug/create_domain
+/opt/xensource/debug/debug_ha_query_liveset
+/opt/xensource/debug/destroy_domain
+/opt/xensource/debug/event_listen
+/opt/xensource/debug/graph
+/opt/xensource/debug/install-debian-pv-inside.sh
+/opt/xensource/debug/install-debian-pv.sh
+/opt/xensource/debug/lvhdrt
+/opt/xensource/debug/memory_breakdown
+/opt/xensource/debug/memory_summary
+/opt/xensource/debug/multipathrt
+/opt/xensource/debug/myfirstpatch.asc
+/opt/xensource/debug/pause_domain
+/opt/xensource/debug/perftest
+/opt/xensource/debug/quicktest
+/opt/xensource/debug/quicktestbin
+/opt/xensource/debug/restore_domain
+/opt/xensource/debug/rrddump
+/opt/xensource/debug/shutdown_domain
+/opt/xensource/debug/sm_stress
+/opt/xensource/debug/suspend_domain
+/opt/xensource/debug/unpause_domain
+/opt/xensource/debug/vncproxy
+/opt/xensource/debug/watch_test
+/opt/xensource/debug/with-vdi
+/opt/xensource/debug/www/XenServerConsole.jar
+/opt/xensource/debug/www/api.js
+/opt/xensource/debug/www/apicall.css
+/opt/xensource/debug/www/apicall.js
+/opt/xensource/debug/www/construct_tree.js
+/opt/xensource/debug/www/devweb.css
+/opt/xensource/debug/www/devweb.js
+/opt/xensource/debug/www/editables.js
+/opt/xensource/debug/www/graphs.js
+/opt/xensource/debug/www/haplan.css
+/opt/xensource/debug/www/haplan.js
+/opt/xensource/debug/www/images/xen_logo.gif
+/opt/xensource/debug/www/index.html
+/opt/xensource/debug/www/jquery/jqDnR.css
+/opt/xensource/debug/www/jquery/jqDnR.js
+/opt/xensource/debug/www/jquery/jqModal.css
+/opt/xensource/debug/www/jquery/jqModal.js
+/opt/xensource/debug/www/jquery/jquery-1.3.2.js
+/opt/xensource/debug/www/jquery/jquery-dom.js
+/opt/xensource/debug/www/jquery/jquery.autocomplete.css
+/opt/xensource/debug/www/jquery/jquery.autocomplete.js
+/opt/xensource/debug/www/jquery/jquery.bgiframe.js
+/opt/xensource/debug/www/jquery/jquery.color.js
+/opt/xensource/debug/www/jquery/jquery.cookie.js
+/opt/xensource/debug/www/jquery/jquery.jeditable.js
+/opt/xensource/debug/www/jquery/jquery.rpc.js
+/opt/xensource/debug/www/jquery/jquery.treeview.js
+/opt/xensource/debug/www/main.js
+/opt/xensource/debug/www/messages.js
+/opt/xensource/debug/www/networks.css
+/opt/xensource/debug/www/networks.js
+/opt/xensource/debug/www/objectviewoverrides.js
+/opt/xensource/debug/www/offline.js
+/opt/xensource/debug/www/process_rrd.js
+/opt/xensource/debug/www/tree.css
+/opt/xensource/debug/www/vmsearch.js
+/opt/xensource/debug/www/xenapi.js
+/opt/xensource/debug/xal
+/opt/xensource/debug/xs
+
+
+#%files devel
+#%defattr(-,root,root,-)
+#%dir /opt/xensource/lib/site-lib
+
+%changelog
+
+
+
+
+
+
+
+
2 files changed, 322 insertions(+)
mk/Makefile  |   12 ++
mk/xapi.spec |  310 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Attachment: xen-api.hg-3.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api