diff --git a/xcb-proto-1.13-python39.patch b/xcb-proto-1.13-python39.patch index a3813ec..a9e9e07 100644 --- a/xcb-proto-1.13-python39.patch +++ b/xcb-proto-1.13-python39.patch @@ -24,3 +24,16 @@ Index: xcb-proto-1.13/xcbgen/state.py from xcbgen import matcher from xcbgen.error import * +Index: xcb-proto-1.13/xcbgen/align.py +=================================================================== +--- xcb-proto-1.13.orig/xcbgen/align.py ++++ xcb-proto-1.13/xcbgen/align.py +@@ -2,7 +2,7 @@ + This module contains helper classes for alignment arithmetic and checks + ''' + +-from fractions import gcd ++from math import gcd + + class Alignment(object): + diff --git a/xcb-proto.spec b/xcb-proto.spec index 084bbcc..a7b038b 100644 --- a/xcb-proto.spec +++ b/xcb-proto.spec @@ -2,7 +2,7 @@ Name: xcb-proto Version: 1.13 -Release: 12%{?dist} +Release: 13%{?dist} Summary: XCB protocol descriptions License: MIT @@ -10,6 +10,7 @@ URL: https://xcb.freedesktop.org/ Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 # cElementTree no longer exists in Python 3.9 +# fractions.gcd has been replaced by math.gcd Patch0001: xcb-proto-1.13-python39.patch BuildArch: noarch @@ -44,6 +45,9 @@ the protocol. %{python3_sitelib}/xcbgen %changelog +* Sat May 30 2020 Björn Esser - 1.13-13 +- Update patch to fix python module for use with Python 3.9 + * Sat May 30 2020 Björn Esser - 1.13-12 - Add patch to fix python module for use with Python 3.9 - Modernize spec file