diff --git a/0001-add-version.patch b/0001-add-version.patch new file mode 100644 index 0000000..ffe11b2 --- /dev/null +++ b/0001-add-version.patch @@ -0,0 +1,24 @@ +From 4e337a541ecaf86d4fbc82bc38b6023eab72d538 Mon Sep 17 00:00:00 2001 +From: chen-jan +Date: Thu, 23 Jun 2022 06:57:11 +0000 +Subject: [PATCH] add version + +--- + setup.cfg | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.cfg b/setup.cfg +index 2b13441..af57d4e 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -5,6 +5,7 @@ universal = true + license_files = + LICENSE + name = singledispatch ++version = 3.7.0 + author = Jason R. Coombs + author_email = jaraco@jaraco.com + description = Backport functools.singledispatch from Python 3.4 to Python 2.6-3.3. +-- +2.30.0 + diff --git a/python-singledispatch.spec b/python-singledispatch.spec index 0954405..d953650 100644 --- a/python-singledispatch.spec +++ b/python-singledispatch.spec @@ -1,12 +1,13 @@ Name: python-singledispatch -Version: 3.4.0.3 -Release: 16 +Version: 3.7.0 +Release: 1 Summary: Transform a method into a single-dispatch generic function License: MIT URL: https://pypi.org/project/singledispatch/ Source0: https://pypi.python.org/packages/source/s/singledispatch/singledispatch-%{version}.tar.gz BuildArch: noarch +Patch001: 0001-add-version.patch %description PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 @@ -27,9 +28,6 @@ This library is a backport of this functionality to Python 3.3. %prep %autosetup -n singledispatch-%{version} -p1 -sed -i '1d' singledispatch.py -sed -i '1d' singledispatch_helpers.py - %build %{__python3} setup.py build @@ -42,11 +40,13 @@ sed -i '1d' singledispatch_helpers.py %files -n python3-singledispatch %doc README.rst %{python3_sitelib}/singledispatch-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/singledispatch.py* -%{python3_sitelib}/singledispatch_helpers.py* -%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/singledispatch/*.py +%{python3_sitelib}/singledispatch/__pycache__/* %changelog +* Fri Jun 10 2022 SimpleUpdate Robot - 3.7.0-1 +- Upgrade to version 3.7.0 + * Wed Mar 30 2022 yaoxin - 3.4.0.3-16 - Resolve compilation failures. diff --git a/singledispatch-3.4.0.3.tar.gz b/singledispatch-3.4.0.3.tar.gz deleted file mode 100644 index 18b8e6e..0000000 Binary files a/singledispatch-3.4.0.3.tar.gz and /dev/null differ diff --git a/singledispatch-3.7.0.tar.gz b/singledispatch-3.7.0.tar.gz new file mode 100644 index 0000000..7cbe87b Binary files /dev/null and b/singledispatch-3.7.0.tar.gz differ