diff --git a/71c81741495cdce132b6f45a0f596d70909c1e4d.patch b/71c81741495cdce132b6f45a0f596d70909c1e4d.patch deleted file mode 100644 index c3831f5..0000000 --- a/71c81741495cdce132b6f45a0f596d70909c1e4d.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 71c81741495cdce132b6f45a0f596d70909c1e4d Mon Sep 17 00:00:00 2001 -From: Christoph Reiter -Date: Sat, 15 Jun 2019 16:07:00 +0200 -Subject: [PATCH] enum: explicitely set enum.__str__ - -Python 3.8 has removed the int.__str__ implementation. So we don't fall -back to object.__str__ and thus enum.__repr__ set __str__ to int.__repr__ -instead. This gives us the same behaviour with all python versions. - -See https://github.com/python/cpython/commit/96aeaec64738b730 ---- - cairo/enums.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/cairo/enums.c b/cairo/enums.c -index 08fbaf3..4273232 100644 ---- a/cairo/enums.c -+++ b/cairo/enums.c -@@ -257,6 +257,7 @@ init_enums (PyObject *module) { - PyObject *ev; - - Pycairo_IntEnum_Type.tp_repr = (reprfunc)int_enum_repr; -+ Pycairo_IntEnum_Type.tp_str = PYCAIRO_PyLong_Type.tp_repr; - Pycairo_IntEnum_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE; - Pycairo_IntEnum_Type.tp_methods = int_enum_methods; - Pycairo_IntEnum_Type.tp_base = &PYCAIRO_PyLong_Type; diff --git a/pycairo-1.18.1.tar.gz b/pycairo-1.18.1.tar.gz deleted file mode 100644 index cc8b79f..0000000 Binary files a/pycairo-1.18.1.tar.gz and /dev/null differ diff --git a/pycairo-1.18.2.tar.gz b/pycairo-1.18.2.tar.gz new file mode 100644 index 0000000..4fddb55 Binary files /dev/null and b/pycairo-1.18.2.tar.gz differ diff --git a/pycairo.spec b/pycairo.spec index 236982d..670c5d1 100644 --- a/pycairo.spec +++ b/pycairo.spec @@ -1,11 +1,10 @@ Name: pycairo -Version: 1.18.1 -Release: 2 +Version: 1.18.2 +Release: 1 Summary: A python module providing bindings for the cairo graphics library License: MPLv1.1 or LGPLv2 URL: https://cairographics.org/pycairo Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz -Patch0: 71c81741495cdce132b6f45a0f596d70909c1e4d.patch BuildRequires: cairo-devel gcc pkgconfig python2-devel python2-pytest python3-devel python3-pytest @@ -86,6 +85,9 @@ in order to interoperate with py3cairo. %{_libdir}/pkgconfig/py*.pc %changelog +* Wed Jan 8 2020 openEuler Buildteam - 1.18.2-1 +- update to 1.18.2 + * Mon Oct 14 2019 openEuler Buildteam - 1.18.1-2 - Type:enhancement - Id:NA