diff --git a/python-pywinrm.spec b/python-pywinrm.spec index 138d5fa6230909d36264dc43417bad0b196dff6d..53c46ed5b2ff3cfd19c6e3757e4012ab5b39a740 100644 --- a/python-pywinrm.spec +++ b/python-pywinrm.spec @@ -1,17 +1,16 @@ %global _empty_manifest_terminate_build 0 Name: python-pywinrm -Version: 0.4.3 +Version: 0.5.0 Release: 1 Summary: Python library for Windows Remote Management License: MIT URL: http://github.com/diyan/pywinrm/ -Source0: https://files.pythonhosted.org/packages/7c/ba/78329e124138f8edf40a41b4252baf20cafdbea92ea45d50ec712124e99b/pywinrm-0.4.3.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pywinrm/pywinrm-%{version}.tar.gz BuildArch: noarch Requires: python3-xmltodict Requires: python3-requests Requires: python3-requests-ntlm -Requires: python3-six Requires: python3-requests-credssp Requires: python3-pykerberos Requires: python3-winkerberos @@ -24,56 +23,36 @@ Summary: Python library for Windows Remote Management Provides: python-pywinrm BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel %description -n python3-pywinrm pywinrm is a Python client for the Windows Remote Management (WinRM) service. It allows you to invoke commands on target Windows machines from any machine that can run Python. -%package help -Summary: Development documents and examples for pywinrm -Provides: python3-pywinrm-doc -%description help -pywinrm is a Python client for the Windows Remote Management (WinRM) service. It allows you to invoke commands on target Windows machines from any machine that can run Python. - %prep -%autosetup -n pywinrm-0.4.3 +%autosetup -n pywinrm-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . +%pyproject_install -%files -n python3-pywinrm -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-pywinrm +%license LICENSE +%doc README.md +%{python3_sitelib}/pywinrm-%{version}.dist-info/ +%{python3_sitelib}/winrm/ %changelog +* Wed Aug 14 2024 yaoxin - 0.5.0-1 +- Update to 0.5.0: + * Migrate to PEP 517 compliant build. + * Added ignore revs file for tracking commits with bulk sanity changes. + * Add type annotations. + * Add WSManFaultError. + * Add new public APIs for header and command output. + * Fix up subpackages in dist. + * Wed Jun 29 2022 caodongxia - 0.4.3-1 - Update to 0.4.3 diff --git a/python-pywinrm.yaml b/python-pywinrm.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6bef20a752462322d696a707d813c8547ec34d78 --- /dev/null +++ b/python-pywinrm.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: diyan/pywinrm +tag_pattern: "^v" +seperator: "." diff --git a/pywinrm-0.4.3.tar.gz b/pywinrm-0.4.3.tar.gz deleted file mode 100644 index 50be0b778d87733dee4031a4c2176354907f3ff2..0000000000000000000000000000000000000000 Binary files a/pywinrm-0.4.3.tar.gz and /dev/null differ diff --git a/pywinrm-0.5.0.tar.gz b/pywinrm-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6923faf515dd7fed57c8f90a3ca16087f5a2ae3f Binary files /dev/null and b/pywinrm-0.5.0.tar.gz differ