2014-09-12 15:56:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pywinrm
|
|
|
|
#
|
2021-05-28 11:32:28 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-09-12 15:56:01 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:57:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2017-03-13 18:37:40 +00:00
|
|
|
|
2014-09-12 15:56:01 +00:00
|
|
|
|
2018-04-06 14:39:01 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-09-12 15:56:01 +00:00
|
|
|
Name: python-pywinrm
|
2020-02-28 23:03:58 +00:00
|
|
|
Version: 0.4.1
|
2014-09-12 15:56:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python library for Windows Remote Management
|
2017-03-13 18:37:40 +00:00
|
|
|
License: MIT
|
2014-09-12 15:56:01 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-04-06 14:39:01 +00:00
|
|
|
URL: http://github.com/diyan/pywinrm/
|
2019-11-04 08:23:40 +00:00
|
|
|
Source: https://github.com/diyan/pywinrm/archive/v%{version}.tar.gz#/pywinrm-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module kerberos}
|
2018-04-06 14:39:01 +00:00
|
|
|
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
|
2014-09-12 15:56:01 +00:00
|
|
|
Requires: python-xmltodict
|
2018-04-06 14:39:01 +00:00
|
|
|
Suggests: python-requests-credssp >= 0.0.1
|
|
|
|
Suggests: python-requests-kerberos >= 0.10.0
|
2014-09-12 15:56:01 +00:00
|
|
|
BuildArch: noarch
|
2018-04-06 14:39:01 +00:00
|
|
|
%python_subpackages
|
2014-09-12 15:56:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
pywinrm is a Python client for Windows Remote Management (WinRM). This
|
|
|
|
allows you to invoke commands on target Windows machines from any
|
|
|
|
machine that can run Python.
|
|
|
|
|
|
|
|
WinRM allows you to call native objects in Windows. This includes, but
|
|
|
|
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
|
2017-03-13 18:37:40 +00:00
|
|
|
%setup -q -n pywinrm-%{version}
|
2014-09-12 15:56:01 +00:00
|
|
|
|
|
|
|
%build
|
2018-04-06 14:39:01 +00:00
|
|
|
%python_build
|
2014-09-12 15:56:01 +00:00
|
|
|
|
|
|
|
%install
|
2018-04-06 14:39:01 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-05-28 11:32:28 +00:00
|
|
|
%pyunittest discover -v
|
2014-09-12 15:56:01 +00:00
|
|
|
|
2018-04-06 14:39:01 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2014-09-12 15:56:01 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2017-03-13 18:37:40 +00:00
|
|
|
%changelog
|