forked from pool/python-pywbem
Accepting request 844056 from systemsmanagement:wbem
OBS-URL: https://build.opensuse.org/request/show/844056 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pywbem?expand=0&rev=15
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 13 12:17:03 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to Version 1.1.1
|
||||
* for a full HUGE changelog see
|
||||
https://pywbem.readthedocs.io/en/stable_1.1/changes.html
|
||||
- remove coverage runs
|
||||
- the cli is now in python-pywbemtools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 12:31:48 UTC 2020 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pywbem
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,10 +15,11 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pywbem
|
||||
Version: 0.17.2
|
||||
Version: 1.1.1
|
||||
Release: 0
|
||||
Summary: Python module for making CIM operation calls using the WBEM protocol
|
||||
License: LGPL-2.1-or-later
|
||||
@@ -26,36 +27,38 @@ Group: System/Management
|
||||
URL: https://pywbem.github.io/
|
||||
Source0: https://github.com/pywbem/pywbem/archive/%{version}.tar.gz#/pywbem-%{version}.tar.gz
|
||||
BuildRequires: %{python_module FormEncode}
|
||||
BuildRequires: %{python_module M2Crypto}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module httpretty}
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module nocasedict >= 1.0.1}
|
||||
BuildRequires: %{python_module nocaselist >= 1.0.3}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module ply}
|
||||
BuildRequires: %{python_module ply >= 3.10}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools} >= 38.4.1
|
||||
BuildRequires: %{python_module six} >= 0.12.0
|
||||
BuildRequires: %{python_module requests >= 2.20.0}
|
||||
BuildRequires: %{python_module requests-mock}
|
||||
BuildRequires: %{python_module setuptools >= 38.4.1}
|
||||
BuildRequires: %{python_module six >= 1.14.0}
|
||||
BuildRequires: %{python_module testfixtures}
|
||||
BuildRequires: %{python_module yamlloader}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# For xmllint
|
||||
BuildRequires: libxml2-tools
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python
|
||||
Requires: python-M2Crypto
|
||||
Requires: python-PyYAML
|
||||
Requires: python-pbr
|
||||
Requires: python-ply
|
||||
Requires: python-six
|
||||
Requires: python-nocasedict >= 1.0.1
|
||||
Requires: python-nocaselist >= 1.0.3
|
||||
Requires: python-ply >= 3.10
|
||||
Requires: python-requests >= 2.20.0
|
||||
Requires: python-six >= 1.14.0
|
||||
Requires: python-yamlloader >= 0.5.5
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-pywebmtools
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: pywbem = %{version}
|
||||
@@ -76,38 +79,22 @@ protocol to query and update managed objects.
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}
|
||||
# don't clash with sblim-wbemcli
|
||||
mv %{buildroot}%{_bindir}/wbemcli %{buildroot}%{_bindir}/pywbemcli
|
||||
rm %{buildroot}%{_bindir}/*.bat
|
||||
%python_clone -a %{buildroot}%{_bindir}/pywbemcli
|
||||
%python_clone -a %{buildroot}%{_bindir}/wbemcli.py
|
||||
%python_clone -a %{buildroot}%{_bindir}/mof_compiler
|
||||
|
||||
%check
|
||||
# gh#pywbem/pywbem#2004 for -k
|
||||
%{python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitelib} \
|
||||
py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v \
|
||||
--cov pywbem --cov pywbem_mock --cov-config coveragerc \
|
||||
-W default -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning \
|
||||
-k 'not test_wbemcli' \
|
||||
tests/unittest tests/functiontest -s
|
||||
}
|
||||
%{pytest -W default -W ignore::PendingDeprecationWarning -W ignore::ResourceWarning \
|
||||
tests/unittest tests/functiontest}
|
||||
|
||||
%post
|
||||
%python_install_alternative pywbemcli
|
||||
%python_install_alternative wbemcli.py
|
||||
%python_install_alternative mof_compiler
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pywbemcli
|
||||
%python_uninstall_alternative wbemcli.py
|
||||
%python_uninstall_alternative mof_compiler
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%python_alternative %{_bindir}/pywbemcli
|
||||
%python_alternative %{_bindir}/wbemcli.py
|
||||
%python_alternative %{_bindir}/mof_compiler
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:63ec0bf03a109d3bfa962a05da26830a884144510376ac6f826c5f226a17a3af
|
||||
size 4263282
|
3
pywbem-1.1.1.tar.gz
Normal file
3
pywbem-1.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:378fbd76fd8dde457d84d6983bdc006ebe5ff039537c05094f0a505174e46104
|
||||
size 4407851
|
Reference in New Issue
Block a user