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
This commit is contained in:
commit
77783e0912
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
pvirsh-2.1.tar.gz
Normal file
3
pvirsh-2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e6a1d14984d99de0a3bf61c916e187dbb251607c7beea6089fdf7d681024aede
|
||||
size 27061
|
15
pvirsh.changes
Normal file
15
pvirsh.changes
Normal file
@ -0,0 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
68
pvirsh.spec
Normal file
68
pvirsh.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user