diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch index 2bccd72..46e1744 100644 --- a/0001-add-setup.py.patch +++ b/0001-add-setup.py.patch @@ -13,7 +13,7 @@ new file mode 100644 index 0000000..e88d95f --- /dev/null +++ b/setup.py -@@ -0,0 +1,71 @@ +@@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2021 Vinay Sajip. @@ -71,16 +71,14 @@ index 0000000..e88d95f + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ++ 'Programming Language :: Python :: 3.11', + 'Topic :: Software Development', + ], + platforms='any', + packages=[ + 'distlib' + ], -+ package_data={ -+ 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe', -+ 't64-arm.exe', 'w64-arm.exe'], -+ }, ++ include_package_data = True, + cmdclass={ + 'test': TestCommand, + }, diff --git a/distlib-0.3.5.tar.gz b/distlib-0.3.5.tar.gz deleted file mode 100644 index 09e95d8..0000000 Binary files a/distlib-0.3.5.tar.gz and /dev/null differ diff --git a/distlib-0.3.6.tar.gz b/distlib-0.3.6.tar.gz new file mode 100644 index 0000000..bcb44bd Binary files /dev/null and b/distlib-0.3.6.tar.gz differ diff --git a/python-distlib.spec b/python-distlib.spec index 763711b..0a02c8a 100644 --- a/python-distlib.spec +++ b/python-distlib.spec @@ -1,12 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-distlib -Version: 0.3.5 +Version: 0.3.6 Release: 1 Summary: A library of packaging functionality License: Python-2.0 URL: https://github.com/pypa/distlib -Source0: https://files.pythonhosted.org/packages/31/d5/e2aa0aa3918c8d88c4c8e4ebbc50a840e101474b98cd83d3c1712ffe5bb4/distlib-0.3.5.tar.gz -Patch0: 0001-add-setup.py.patch +Source0: https://files.pythonhosted.org/packages/58/07/815476ae605bcc5f95c87a62b95e74a1bce0878bc7a3119bc2bf4178f175/distlib-0.3.6.tar.gz +Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -15,7 +15,7 @@ basis for third-party packaging tools. %package -n python3-distlib Summary: A library of packaging functionality -Provides: python-distlib +Provides: python-distlib = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-distlib @@ -30,8 +30,7 @@ A library of packaging functionality which is intended to be used as the basis for third-party packaging tools. %prep -%autosetup -n distlib-0.3.5 -%patch0 +%autosetup -n distlib-%{version} %build %py3_build @@ -43,6 +42,9 @@ 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 +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst @@ -71,6 +73,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Fri Dec 02 2022 wangjunqi - 0.3.6-1 +- Update package to version 0.3.6 + * Thu Aug 04 2022 liqiuyu - 0.3.5-1 - update to 0.3.5