Sync from SUSE:SLFO:Main pvirsh revision 986b7f69e257ad8d78c80963dc42cc68

This commit is contained in:
Adrian Schröter 2024-05-03 19:41:56 +02:00
commit 689f967e04
4 changed files with 120 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
pvirsh-2.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

25
pvirsh.changes Normal file
View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Fri Mar 3 08:59:44 UTC 2023 - Antoine Ginies <aginies@suse.com>
- 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 <aginies@suse.com>
- 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 <aginies@suse.com>
- first package release

69
pvirsh.spec Normal file
View File

@ -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