From 77783e0912cffdc74f8decfa6f8304dfa6931d767341c526ffe7e54191b212e8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 14 Dec 2022 10:12:55 +0000 Subject: [PATCH] Accepting request 1042838 from home:aginies target: ALP and SLE OBS-URL: https://build.opensuse.org/request/show/1042838 OBS-URL: https://build.opensuse.org/package/show/Virtualization/pvirsh?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + pvirsh-2.1.tar.gz | 3 +++ pvirsh.changes | 15 +++++++++++ pvirsh.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pvirsh-2.1.tar.gz create mode 100644 pvirsh.changes create mode 100644 pvirsh.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pvirsh-2.1.tar.gz b/pvirsh-2.1.tar.gz new file mode 100644 index 0000000..0793c77 --- /dev/null +++ b/pvirsh-2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6a1d14984d99de0a3bf61c916e187dbb251607c7beea6089fdf7d681024aede +size 27061 diff --git a/pvirsh.changes b/pvirsh.changes new file mode 100644 index 0000000..84c97c2 --- /dev/null +++ b/pvirsh.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Thu Nov 3 14:43:05 UTC 2022 - Antoine Ginies + +- version 2.1: + * various lint fixes + * improve help usage + * add select_vm to choose VM on connected hypervisor + * improve prompt + * add some more xml files + * remove unwanted import sys + +------------------------------------------------------------------- +Fri Oct 14 11:55:09 UTC 2022 - Antoine Ginies + +- first package release diff --git a/pvirsh.spec b/pvirsh.spec new file mode 100644 index 0000000..d37c63a --- /dev/null +++ b/pvirsh.spec @@ -0,0 +1,68 @@ +# +# spec file for package pvirsh +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?!python_module:%define python_module() python3-%{**}} +%define pythons python3 + +Name: pvirsh +Version: 2.1 +Release: 0 +Summary: Parallel virsh command +License: GPL-3.0-or-later +Group: System/Management +URL: https://github.com/aginies/pvirsh +Source: %{name}-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module libvirt-python} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module PyYAML} +BuildRequires: fdupes +Requires: python3-libvirt-python +Requires: python3-PyYAML +BuildArch: noarch +%python_subpackages + +%description +Parallel virsh command to manage a selected group of Virtual Machine. +This provides an easy way to execute the same command on a selected +group of Virtual Machine. + +%prep +%setup -q + +%build +%python_build + +%install +%python_install +# move group yaml file to /etc/pvirsh +mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ +mv %{buildroot}%{_datadir}/%{name}/*.yaml %{buildroot}%{_sysconfdir}/%{name}/ +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root) +%license LICENSE +%doc ChangeLog README.md AUTHORS +%{_bindir}/%{name} +%{python_sitelib}/%{name} +%{python_sitelib}/%{name}-*.egg-info +%attr(0755,root,root) %{_datadir}/%{name}/ +%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/%{name} +%{_mandir}/man1/%{name}.1%{ext_man} + +%changelog