msivak pushed to mom (master). "Bump version"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Jun 11 20:11:09 UTC 2015


From 85130bcb52a1ff13e1de495941c704c1b7227e65 Mon Sep 17 00:00:00 2001
From: Martin Sivak <msivak at redhat.com>
Date: Thu, 11 Jun 2015 21:14:14 +0200
Subject: Bump version


diff --git a/.gitignore b/.gitignore
index acd83c2..0026c26 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
 /mom-0.4.2.tar.gz
 /mom-0.4.3.tar.gz
 /mom-0.4.4.tar.gz
+/mom-0.4.5.tar.gz
diff --git a/mom.spec b/mom.spec
index 29ef977..737cc17 100644
--- a/mom.spec
+++ b/mom.spec
@@ -1,11 +1,11 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
 
-%global		package_version 0.4.4
+%global		package_version 0.4.5
 %global		package_name mom
 
 Name:		%{package_name}
-Version:	0.4.4
+Version:	0.4.5
 Release:	1%{?release_suffix}%{?dist}
 Summary:	Dynamically manage system resources on virtualization hosts
 
@@ -17,6 +17,7 @@ BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}
 BuildArch:	noarch
 BuildRequires:	python-devel
 BuildRequires:	python-nose
+BuildRequires:  systemd-units
 
 # MOM makes use of libvirt by way of the python bindings to monitor and
 # interact with virtual machines.
@@ -57,8 +58,8 @@ make %{?_smp_mflags}
 rm -rf "%{buildroot}"
 make DESTDIR="%{buildroot}" install
 
-install -d -m 0755 "%{buildroot}/%{_initrddir}"
-install -m 0755 contrib/momd.init "%{buildroot}/%{_initrddir}/momd"
+install -dm 755 %{buildroot}%{_unitdir}
+mv contrib/momd.service %{buildroot}%{_unitdir}
 install -d -m 0755 "%{buildroot}/%{_sysconfdir}"
 install -m 0644 doc/mom-balloon+ksm.conf "%{buildroot}/%{_sysconfdir}/momd.conf"
 
@@ -66,29 +67,27 @@ install -m 0644 doc/mom-balloon+ksm.conf "%{buildroot}/%{_sysconfdir}/momd.conf"
 #make check %{?_smp_mflags}
 
 %post
-/sbin/chkconfig --add momd
+%systemd_post momd.service
 
 %preun
-if [ $1 = 0 ] ; then
-	/sbin/service momd stop >/dev/null 2>&1 || true
-	/sbin/chkconfig --del momd || true
-fi
+%systemd_preun momd.service
 
 %postun
-if [ "$1" -ge "1" ] ; then
-	/sbin/service momd condrestart >/dev/null 2>&1 || true
-fi
+%systemd_postun_with_restart momd.service
 
 %files
 %config(noreplace) %{_sysconfdir}/momd.conf
 %doc COPYING
 %doc README
-%{_initrddir}/momd
+%{_unitdir}/momd.service
 %{_sbindir}/momd
 %{python_sitelib}/mom/
 
 
 %changelog
+* Thu Jun 11 2015 Martin Sivak <msivak at redhat.com> - 0.4.5-1
+- Upgrade to 0.4.5
+
 * Fri May 15 2015 Adam Litke <alitke at redhat.com> - 0.4.4-1
 - Upgrade to 0.4.4
 
diff --git a/sources b/sources
index f6670a9..4369fe1 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-45bc6d5fdc87cc1b691d6f3066e8776f  mom-0.4.3.tar.gz
-0d953504fc345343e80076b41ee698dc  mom-0.4.4.tar.gz
+5972ae144d3af364af58744d165d407d  mom-0.4.5.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/mom.git/commit/?h=master&id=85130bcb52a1ff13e1de495941c704c1b7227e65


More information about the scm-commits mailing list