!3 Bump version to 0.6.1
From: @crrs666 Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
4465b50b1c
Binary file not shown.
BIN
mom-0.6.1.tar.gz
Normal file
BIN
mom-0.6.1.tar.gz
Normal file
Binary file not shown.
47
mom.spec
47
mom.spec
@ -1,24 +1,21 @@
|
|||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
%{!?with_check: %global with_check 0}
|
%{!?with_check: %global with_check 1}
|
||||||
|
|
||||||
%global package_version 0.5.12
|
%global package_version 0.6.1
|
||||||
%global package_name mom
|
%global package_name mom
|
||||||
|
|
||||||
Name: %{package_name}
|
Name: %{package_name}
|
||||||
Version: 0.5.12
|
Version: 0.6.1
|
||||||
Release: 1%{?release_suffix}%{?dist}
|
Release: 1
|
||||||
Summary: Dynamically manage system resources on virtualization hosts
|
Summary: Dynamically manage system resources on virtualization hosts
|
||||||
|
|
||||||
Group: Applications/System
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://www.ovirt.org
|
URL: http://www.ovirt.org
|
||||||
Source: %{package_name}-%{package_version}.tar.gz
|
Source: https://resources.ovirt.org/pub/src/%{name}/%{package_name}-%{package_version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python-nose
|
BuildRequires: python3-nose
|
||||||
BuildRequires: python-mock
|
BuildRequires: python3-six
|
||||||
|
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@ -27,12 +24,9 @@ BuildRequires: systemd
|
|||||||
|
|
||||||
# MOM makes use of libvirt by way of the python bindings to monitor and
|
# MOM makes use of libvirt by way of the python bindings to monitor and
|
||||||
# interact with virtual machines.
|
# interact with virtual machines.
|
||||||
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
|
||||||
Requires: libvirt-daemon-driver-qemu
|
Requires: libvirt-daemon-driver-qemu
|
||||||
%else
|
Requires: python3-libvirt
|
||||||
Requires: libvirt
|
Requires: python3-six
|
||||||
%endif
|
|
||||||
Requires: libvirt-python
|
|
||||||
Requires: procps
|
Requires: procps
|
||||||
|
|
||||||
|
|
||||||
@ -53,15 +47,16 @@ designed to accommodate new mechanisms such as cgroups.
|
|||||||
%setup -q -n %{package_name}-%{package_version}
|
%setup -q -n %{package_name}-%{package_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --docdir="%{_pkgdocdir}"
|
%configure \
|
||||||
|
PYTHON="/usr/bin/python3" \
|
||||||
|
--docdir="%{_pkgdocdir}"
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf "%{buildroot}"
|
|
||||||
make DESTDIR="%{buildroot}" install
|
make DESTDIR="%{buildroot}" install
|
||||||
|
|
||||||
install -dm 755 %{buildroot}%{_unitdir}
|
install -dm 755 %{buildroot}%{_unitdir}
|
||||||
mv contrib/momd.service %{buildroot}%{_unitdir}
|
install contrib/momd.service %{buildroot}%{_unitdir}
|
||||||
install -d -m 0755 "%{buildroot}/%{_sysconfdir}"
|
install -d -m 0755 "%{buildroot}/%{_sysconfdir}"
|
||||||
install -m 0644 doc/mom-balloon+ksm.conf "%{buildroot}/%{_sysconfdir}/momd.conf"
|
install -m 0644 doc/mom-balloon+ksm.conf "%{buildroot}/%{_sysconfdir}/momd.conf"
|
||||||
|
|
||||||
@ -81,11 +76,21 @@ make check %{?_smp_mflags}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%config(noreplace) %{_sysconfdir}/momd.conf
|
%config(noreplace) %{_sysconfdir}/momd.conf
|
||||||
|
%license COPYING
|
||||||
|
%doc README
|
||||||
|
|
||||||
|
%dir %{_pkgdocdir}/examples
|
||||||
|
%{_pkgdocdir}/examples/*
|
||||||
|
# COPYING is handled by license macro, avoid to ship duplicates
|
||||||
|
%exclude %{_pkgdocdir}/COPYING
|
||||||
|
|
||||||
%{_unitdir}/momd.service
|
%{_unitdir}/momd.service
|
||||||
%{_sbindir}/momd
|
%{_sbindir}/momd
|
||||||
%{python_sitelib}/mom/
|
%{python3_sitelib}/mom/
|
||||||
%{_pkgdocdir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 06 2021 wangdi <wangdi@kylinos.cn> - 0.6.1-1
|
||||||
|
- Bump version to 0.6.1
|
||||||
|
|
||||||
* Wed Mar 04 2020 Huihui Fu <huihui.fu@cs2c.com.cn> - 0.5.12-1
|
* Wed Mar 04 2020 Huihui Fu <huihui.fu@cs2c.com.cn> - 0.5.12-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user