forked from zaneb/libvirt-qmf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibvirt-qmf.spec
205 lines (149 loc) · 6.05 KB
/
libvirt-qmf.spec
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
Summary: QPid QMF interface to Libvirt
Name: libvirt-qmf
Version: 0.3.0
Release: 1%{?dist}
Source: https://github.com/matahari/libvirt-qmf/downloads/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
License: LGPLv2+
Group: Applications/System
Obsoletes: libvirt-qpid < 0.3.0
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): initscripts
BuildRequires: qpid-cpp-client-devel >= 0.10
BuildRequires: libxml2-devel >= 2.7.1
BuildRequires: libvirt-devel >= 0.5.0
BuildRequires: qpid-qmf-devel >= 0.8
BuildRequires: matahari-devel >= 0.4.2
Url: http://libvirt.org/qpid
%description
libvirt-qmf provides an interface with libvirt using QMF (Qpid Management
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 management 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.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%makeinstall
%post
/sbin/chkconfig --add libvirt-qmf --level -
/sbin/service libvirt-qmf condrestart
%preun
if [ $1 = 0 ]; then
/sbin/service libvirt-qmf stop >/dev/null 2>&1 || :
chkconfig --del libvirt-qmf
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service libvirt-qmf condrestart >/dev/null 2>&1 || :
fi
%clean
test "x%{buildroot}" != "x" && rm -rf %{buildroot}
%files
%defattr(644, root, root, 755)
%dir %{_datadir}/libvirt-qmf/
%{_datadir}/libvirt-qmf/libvirt-schema.xml
%attr(755, root, root) %{_sbindir}/libvirt-qmf
%attr(755, root, root) %{_sysconfdir}/rc.d/init.d/libvirt-qmf
%doc AUTHORS COPYING
%changelog
* Thu Jul 21 2011 Zane Bitter <zbitter@redhat.com> - 0.3.0-1
- Change package name from libvirt-qpid to libvirt-qmf
- Convert to QMFv2 API
- Make libvirt-qmf a matahari agent
* Thu May 5 2011 Daniel P. Berrange <berrange@redhat.com> - 0.2.22-3
- Add fix for parallel make race condition
- Add missing qpidtypes link flag
* Thu May 5 2011 Daniel P. Berrange <berrange@redhat.com>
- Rebuild for QPid soname change
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Jul 6 2010 Ian Main <imain@redhat.com> - 0.2.22-1
- Init script fixes.
* Mon Jun 28 2010 Ian Main <imain@redhat.com> - 0.2.21-1
- Add indexes to various attributes so they are unique in qpidd etc.
* Tue May 26 2010 Ian Main <imain@redhat.com> - 0.2.20-1
- #include <string.h> in PoolWrap.cpp.
* Tue May 25 2010 Ian Main <imain@redhat.com> - 0.2.19-1
- Update for changed QMF connection API.
* Mon Feb 22 2010 Ian Main <imain@redhat.com> - 0.2.18-1
- Update for changed qpid pkg names.
* Thu Dec 10 2009 Ian Main <imain@redhat.com> - 0.2.17-3
- Woops, don't need -lqmfengine.
* Thu Nov 05 2009 Ian Main <imain@redhat.com> - 0.2.17-2
- Fix libraries for new qpidc in src.
* Fri Oct 02 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.17-1
- Rebuild for new qpidc.
* Mon Jul 27 2009 Arjun Roy <arroy@redhat.com> - 0.2.17.0
- Fixed a bug related to updating of cached pool sources.
* Fri Jun 05 2009 Ian Main <imain@redhat.com> - 0.2.16-5
- Bump for new build.
* Fri Jun 05 2009 Ian Main <imain@redhat.com> - 0.2.16-2
- Spec fixes.
* Fri Jun 05 2009 Ian Main <imain@redhat.com> - 0.2.16-1
- Cache calls to get storage XML as they take a LONG time. This
greatly speeds up volume enumeration.
* Thu May 28 2009 Ian Main <imain@redhat.com> - 0.2.16-1
- Cache calls to get storage XML as they take a LONG time. This
greatly speeds up volume enumeration.
* Thu May 28 2009 Ian Main <imain@redhat.com> - 0.2.15-1
- Fix migration bug.
* Thu May 07 2009 Ian Main <imain@redhat.com> - 0.2.14-4
- Bump release for F11.
* Thu May 07 2009 Ian Main <imain@redhat.com> - 0.2.14-3
- Update requires for latest version of qpid.
* Thu May 07 2009 Ian Main <imain@redhat.com> - 0.2.14-2
- Rebuild for new qpid.
* Thu May 07 2009 Ian Main <imain@redhat.com> - 0.2.14-1
- Rebuild for new qpid.
* Thu Mar 26 2009 Ian Main <imain@redhat.com> - 0.2.14-0
- Added refresh method to storage pools.
* Thu Mar 26 2009 Ian Main <imain@redhat.com> - 0.2.13-1
- Add throws to constructors in case one of the libvirt calls
fails. Pretty sure this was the cause of some segfaults.
* Thu Mar 26 2009 Ian Main <imain@redhat.com> - 0.2.12-3
- Added dist to release version.
* Wed Feb 25 2009 Ian Main <imain@redhat.com> - 0.2.12-2
- Fixed permissions in specfile.
* Wed Feb 25 2009 Ian Main <imain@redhat.com> - 0.2.12-1
- Fixed various specfile issues.
* Tue Feb 03 2009 Ian Main <imain@redhat.com> - 0.2.12-0
- Added parentVolume to support LVM parent recognition.
* Fri Jan 23 2009 Ian Main <imain@redhat.com> - 0.2.10-0
- Added support for gssapi.
* Fri Dec 12 2008 Ian Main <imain@redhat.com> - 0.2.4-0
- Added 'findStoragePoolSources' method.
* Thu Dec 4 2008 Ian Main <imain@redhat.com> - 0.2.3-0
- Added 'build' method to storage pool.
- Build against newer libvirt and qpid.
* Wed Nov 20 2008 Ian Main <imain@redhat.com> - 0.2.2-0
- Change update interval to 3 seconds, update version.
* Wed Nov 19 2008 Ian Main <imain@redhat.com> - 0.2.2-0
- Rebase to newer qpid.
* Thu Oct 30 2008 Ian Main <imain@redhat.com> - 0.2.1-0
- Use lstr for xml descriptions. This lets you have greater than
255 characters in the string.
- Fix bug in calling of getXMLDesc.
* Wed Oct 15 2008 Ian Main <imain@redhat.com> - 0.2.0-0
- API changed to camel case.
- Return libvirt error codes.
- Reconnect on libvirt disconnect.
- Implement node info.
- New release.
* Wed Oct 1 2008 Ian Main <imain@redhat.com> - 0.1.3-0
- Bugfixes, memory leaks fixed etc.
* Tue Sep 30 2008 Ian Main <imain@redhat.com> - 0.1.2-0
- Updated spec to remove qpidd requirement.
- Added libvirt-qpid sysconfig file.
* Fri Sep 26 2008 Ian Main <imain@redhat.com> - 0.1.2-0
- Setup daemonization and init scripts.
- Added getopt for command line parsing.
* Fri Sep 19 2008 Ian Main <imain@redhat.com> - 0.1.1-0
- Initial packaging.