Browse Source

virt-manager add a new patch for powerel

Signed-off-by: virtbuilder_pel7ppc64lebuilder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7ppc64lebuilder0 5 years ago
parent
commit
fcb1f40a81
  1. 20
      SOURCES/virt-manager-2.2.1-powerel.patch
  2. 7
      SPECS/virt-manager.spec

20
SOURCES/virt-manager-2.2.1-powerel.patch

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
--- virt-manager-2.2.1/virtinst/install/urldetect.py 2020-06-06 13:58:57.115228664 +0200
+++ virt-manager-2.2.1/virtinst/install/urldetect.py 2020-06-06 14:01:41.629287983 +0200
@@ -466,6 +466,17 @@
return cache.treeinfo_family_regex(famregex)
+class _PowerELDistro(_RHELDistro):
+ PRETTY_NAME = "PowerEL"
+ matching_distros = ["powerel"]
+ _variant_prefix = "powerel"
+
+ @classmethod
+ def is_valid(cls, cache):
+ famregex = ".*(PowerEL|PowerEL7|PowerEL 7).*"
+ return cache.treeinfo_family_regex(famregex)
+
+
class _SuseDistro(_RHELDistro):
PRETTY_NAME = None
_suse_regex = []

7
SPECS/virt-manager.spec

@ -5,15 +5,17 @@ @@ -5,15 +5,17 @@

Name: virt-manager
Version: 2.2.1
Release: 3%{?dist}
Release: 4%{?dist}
%global verrel %{version}-%{release}
Summary: Desktop tool for managing virtual machines via libvirt
License: GPLv2+
BuildArch: noarch
URL: https://virt-manager.org/
Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
# PowerEL patch to recognize as rhel
Patch0: virt-manager-2.2.1-powerel.patch
# Ubuntu 20.04 LTS image relocation
Patch0: virt-manager-ubuntu-2004lts-location.patch
Patch1: virt-manager-ubuntu-2004lts-location.patch
Requires: virt-manager-common = %{verrel}
Requires: python3-gobject
Requires: gtk3
@ -81,6 +83,7 @@ machine). @@ -81,6 +83,7 @@ machine).
%prep
%setup -q
%patch0 -p1
%patch1 -p1
sed 's/--owner=+0:+0/--owner=0:0/' -i virtinst/install/installerinject.py



Loading…
Cancel
Save