Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
oVirt
:
3.3.2
>
mom
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
mom-SLE_11_SP3.spec
@@ -0,0 +1,158 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%define docdir %{_datadir}/doc +Name: mom +Version: 0.3.2 +Release: 3%{?dist} +Summary: Dynamically manage system resources on virtualization hosts + +Group: Applications/System +License: GPLv2 +URL: http://wiki.github.com/aglitke/mom +Source0: http://github.com/downloads/aglitke/mom/%{name}-%{version}.tar.gz +Patch0: mom-lsb-init.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if 0%{!?suse_version} +BuildArch: noarch +%endif +BuildRequires: python-devel +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: python-nose + +# MOM makes use of libvirt by way of the python bindings to monitor and +# interact with virtual machines. +Requires: libvirt, libvirt-python + +%if 0%{?suse_version} +Requires(post): aaa_base +Requires(postun): aaa_base +Requires(preun): aaa_base +%else +Requires(post): chkconfig +Requires(postun): initscripts +Requires(preun): chkconfig +Requires(preun): initscripts +%endif + +%description +MOM is a policy-driven tool that can be used to manage overcommitment on KVM +hosts. Using libvirt, MOM keeps track of active virtual machines on a host. At +a regular collection interval, data is gathered about the host and guests. Data +can come from multiple sources (eg. the /proc interface, libvirt API calls, a +client program connected to a guest, etc). Once collected, the data is +organized for use by the policy evaluation engine. When started, MOM accepts a +user-supplied overcommitment policy. This policy is regularly evaluated using +the latest collected data. In response to certain conditions, the policy may +trigger reconfiguration of the system’s overcommitment mechanisms. Currently +MOM supports control of memory ballooning and KSM but the architecture is +designed to accommodate new mechanisms such as cgroups. + + + +%prep +%setup -q +%patch0 + +%build +echo "v%{version}-%{release}" > VERSION +autoreconf -if +%configure +make +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix} +install -Dp contrib/momd.init $RPM_BUILD_ROOT/%{_initrddir}/momd +cp $RPM_BUILD_ROOT/%{docdir}/%{name}/examples/mom-balloon+ksm.conf \ + $RPM_BUILD_ROOT/%{_sysconfdir}/momd.conf + +# Correct the installed location of documentation files +mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir} +mv $RPM_BUILD_ROOT/%{docdir}/%{name} \ + $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version} +cp COPYING README $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/chkconfig --add momd || : + + +%preun +if [ $1 = 0 ] ; then + /sbin/service momd stop >/dev/null 2>&1 || : + /sbin/chkconfig --del momd || : +fi + + +%postun +if [ "$1" -ge "1" ] ; then + /sbin/service momd condrestart >/dev/null 2>&1 || : +fi + + +%files +%defattr(-,root,root,-) +%{_sbindir}/momd +%{_initrddir}/momd +%{python_sitelib}/* +%config(noreplace) %{_sysconfdir}/momd.conf + +# The use of '_defaultdocdir' conflicts with 'doc'. Therefore, 'doc' MUST NOT +# be used to include additional documentation files so long as this is in use. +%{_defaultdocdir}/%{name}-%{version}/ + + +%changelog +* Tue Jul 30 2013 Adam Litke <agl@us.ibm.com> - 0.3.2-3 +- Fix a typo in the HostMemory Collector +- Convert strings to int when using the vdsm API + +* Thu Jul 18 2013 Adam Litke <agl@us.ibm.com> - 0.3.2-2 +- Pushed an additional patch for oVirt policy + +* Tue Jul 16 2013 Adam Litke <agl@us.ibm.com> - 0.3.2-1 +- Upgrade to version 0.3.2 +- Policy updates to support oVirt + +* Mon Jul 8 2013 Adam Litke <agl@us.ibm.com> - 0.3.1-1 +- Upgrade to version 0.3.1 +- MOM now uses an autotools build process +- Multiple policy support + +* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Oct 05 2012 Adam Litke <agl@us.ibm.com> - 0.3.0-1 +- Upgrade to version 0.3.0 +- Upstream fixes CVE-2012-4480 + +* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2011 Adam Litke <agl@us.ibm.com> - 0.2.2-1 +- Upgrade to version 0.2.2 +- Packaging related changes merged upstream so patches dropped + +* Fri Jan 7 2011 Adam Litke <agl@us.ibm.com> - 0.2.1-5 +- Address review comments by Michael Schwendt +- Fix use of _defaultdocdir macro +- Add some comments to the spec file + +* Tue Oct 26 2010 Adam Litke <agl@us.ibm.com> - 0.2.1-4 +- Third round of package review comments +- Remove useless shebang on non-executable python script + +* Tue Oct 26 2010 Adam Litke <agl@us.ibm.com> - 0.2.1-3 +- Second round of package review comments +- Add a default config file: /etc/momd.conf + +* Wed Oct 13 2010 Adam Litke <agl@us.ibm.com> - 0.2.1-2 +- Address initial package review comments + +* Mon Sep 27 2010 Adam Litke <agl@us.ibm.com> - 0.2.1-1 +- Initial package