[packages/libvirt-qpid] - new - build patch fixes build with current qpid-cpp
qboosh
qboosh at pld-linux.org
Sun Sep 2 20:39:32 CEST 2012
commit b44c84cad41a0d9eef6db2f70a34c6ae0b481fdc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 2 20:39:40 2012 +0200
- new
- build patch fixes build with current qpid-cpp
libvirt-qpid-build.patch | 33 ++++++++++++++++++++
libvirt-qpid.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 111 insertions(+)
---
diff --git a/libvirt-qpid.spec b/libvirt-qpid.spec
new file mode 100644
index 0000000..4af007e
--- /dev/null
+++ b/libvirt-qpid.spec
@@ -0,0 +1,78 @@
+# TODO: PLDify init script
+Summary: Interface with libvirt using QMF
+Summary(pl.UTF-8): Interfejs libvirt wykorzystujący QMF
+Name: libvirt-qpid
+Version: 0.2.12
+Release: 1
+License: LGPL v2.1+
+Group: Libraries
+Source0: ftp://libvirt.org/libvirt-qpid/%{name}-%{version}.tar.gz
+# Source0-md5: f42d560c3380e393fa9fee9b5d91011c
+Patch0: %{name}-build.patch
+URL: http://libvirt.org/CIM/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: libvirt-devel
+BuildRequires: libxml2-devel
+BuildRequires: qpid-cpp-devel
+BuildRequires: qpid-cpp-qmfgen
+Requires: libvirt
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libvirt-qpid provides an interface with libvirt using QMF (qpid
+modelling framework) which utilizes the AMQP protocol. The Advanced
+Message Queuing Protocol (AMQP) is an open standard application layer
+protocol providing reliable transport of messages.
+
+QMF provides a modeling framework layer on top of qpid (which
+implements AMQP). This interface allows you to manage hosts, domains,
+pools etc. as a set of objects with properties and methods.
+
+%description -l pl.UTF-8
+libvirt-qpid udostępnia interfejs libvirt wykorzystujący QMF (qpid
+modelling framework - szkielet modelujący qpid), który wykorzystuje
+protokół AMQP. AMQF (Advanced Message Queuing Protocol - zaawansowany
+protokół kolejkowania komunikatów) to otwarty standard protokołu
+warstwy aplikacji zapewniający wiarygodny transport komunikatów.
+
+QMF udostępnia warstwę szkieletu modelującego ponad qpidem (który
+implementuje AMQP). Interfejs ten pozwala na zarządzanie hostami,
+domenami, pulami itp. jako zbiorami obiektów z właściwościami i
+metodami.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README TODO doc/*.html
+%attr(755,root,root) %{_sbindir}/libvirt-qpid
+%attr(754,root,root) /etc/rc.d/init.d/libvirt-qpid
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/libvirt-qpid
+%dir %{_datadir}/libvirt-qpid
+%{_datadir}/libvirt-qpid/libvirt-schema.xml
diff --git a/libvirt-qpid-build.patch b/libvirt-qpid-build.patch
new file mode 100644
index 0000000..49fc4c8
--- /dev/null
+++ b/libvirt-qpid-build.patch
@@ -0,0 +1,33 @@
+--- libvirt-qpid-0.2.12/src/NodeWrap.cpp.orig 2012-09-02 19:14:43.244749698 +0200
++++ libvirt-qpid-0.2.12/src/NodeWrap.cpp 2012-09-02 18:38:45.401461339 +0200
+@@ -595,7 +595,7 @@
+ // to keep this all single threaded. Otherwise a second thread would be
+ // used to implement methods.
+
+- ConnectionSettings settings;
++ qpid::management::ConnectionSettings settings;
+ settings.host = host ? host : "127.0.0.1";
+ settings.port = port;
+
+--- libvirt-qpid-0.2.12/src/PoolWrap.cpp.orig 2009-03-02 22:40:36.000000000 +0100
++++ libvirt-qpid-0.2.12/src/PoolWrap.cpp 2012-09-02 19:06:52.708092842 +0200
+@@ -1,6 +1,7 @@
+-
++#include <cstring>
+ #include <libxml/xmlmemory.h>
+ #include <libxml/parser.h>
++#include <qpid/framing/Buffer.h>
+
+ #include "NodeWrap.h"
+ #include "PoolWrap.h"
+--- libvirt-qpid-0.2.12/src/Makefile.am.orig 2009-03-02 22:12:00.000000000 +0100
++++ libvirt-qpid-0.2.12/src/Makefile.am 2012-09-02 19:12:06.151419639 +0200
+@@ -46,7 +46,7 @@
+ BUILT_SOURCES = $(generated_file_list)
+ CLEANFILES = $(generated_file_list)
+
+-libvirt_qpid_LDADD = -lqpidclient -lqpidcommon -lqmfagent -lvirt $(XML_LIBS)
++libvirt_qpid_LDADD = -lqpidclient -lqpidcommon -lqmf -lvirt $(XML_LIBS)
+
+ dist_pkgdata_DATA = libvirt-schema.xml
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libvirt-qpid.git/commitdiff/b44c84cad41a0d9eef6db2f70a34c6ae0b481fdc
More information about the pld-cvs-commit
mailing list