commit 689f967e04a87e3ae141d9996ffe9c1c0a12460c6d7e6dc7e61fd6427b34ccfb Author: Adrian Schröter Date: Fri May 3 19:41:56 2024 +0200 Sync from SUSE:SLFO:Main pvirsh revision 986b7f69e257ad8d78c80963dc42cc68 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/pvirsh-2.2.tar.gz b/pvirsh-2.2.tar.gz new file mode 100644 index 0000000..4e65d5b --- /dev/null +++ b/pvirsh-2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10b8b1806b505fcacab8b452656739e376283b348b33d7b1dfe3530ae8ebfff7 +size 27327 diff --git a/pvirsh.changes b/pvirsh.changes new file mode 100644 index 0000000..428541b --- /dev/null +++ b/pvirsh.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Fri Mar 3 08:59:44 UTC 2023 - Antoine Ginies + +- version 2.2: + * again some lint fixes + * remove unwanted shebang + * various typo fixes + * bug fixes + * add requires on python3-curses + +------------------------------------------------------------------- +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..83e95c3 --- /dev/null +++ b/pvirsh.spec @@ -0,0 +1,69 @@ +# +# 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.2 +Release: 0 +Summary: Parallel virsh command to manage a selected group of Virtual Machine +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 +Requires: python3-curses +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