14
0

Accepting request 594019 from home:mnhauke

- Upgrade to version 0.3.0
  * Added support for message encryption over HTTP when using NTLM/Kerberos/CredSSP
  * Added parameter to disable TLSv1.2 when using CredSSP for Server 2008 support
  * Error detail from SOAP fault (if present) is now included with HTTP 500 errors
  * Fixed CA path override (incl envvar)
  * Fixed Kerberos service override
  * Try harder to suppress urllib3 InsecureRequestWarnings on various OSs
  * Fixed timeout values to parse correctly if passed as strings
  * Various updates to CI/tests
- Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/594019
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pywinrm?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2018-04-06 14:39:01 +00:00
committed by Git OBS Bridge
parent 9fbb7996c3
commit 111c7ae085
5 changed files with 69 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pywinrm
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -13,29 +13,36 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pywinrm
# version in master branch is not updated and original 0.0.2dev is year old...
Version: 0.2.2
Version: 0.3.0
Release: 0
Summary: Python library for Windows Remote Management
License: MIT
Group: Development/Languages/Python
Url: http://github.com/diyan/pywinrm/
Source0: https://pypi.io/packages/source/p/pywinrm/pywinrm-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-isodate
URL: http://github.com/diyan/pywinrm/
Source: https://files.pythonhosted.org/packages/source/p/pywinrm/pywinrm-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/diyan/pywinrm/master/LICENSE
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.9.1}
BuildRequires: %{python_module requests_ntlm >= 0.3.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module xmltodict}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-requests >= 2.9.1
Requires: python-requests_ntlm >= 0.3.0
Requires: python-six
Requires: python-xmltodict
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
Suggests: python-requests-credssp >= 0.0.1
Suggests: python-requests-kerberos >= 0.10.0
BuildArch: noarch
%endif
%python_subpackages
%description
pywinrm is a Python client for Windows Remote Management (WinRM). This
@@ -47,18 +54,24 @@ is not limited to, running batch scripts, powershell scripts and
fetching WMI variables. For more information on WinRM, please visit
Microsoft's WinRM http://msdn.microsoft.com/en-us/library/aa384426.aspx
%prep
%setup -q -n pywinrm-%{version}
# FIXME - License should be included in the pypi tarball
cp %{SOURCE1} .
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%defattr(-,root,root,-)
%check
%python_exec setup.py test
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*
%changelog