Update patch to fix python module for use with Python 3.9
This commit is contained in:
parent
945efa8166
commit
8aaec9dbf5
@ -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):
|
||||
|
||||
|
||||
@ -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 <besser82@fedoraproject.org> - 1.13-13
|
||||
- Update patch to fix python module for use with Python 3.9
|
||||
|
||||
* Sat May 30 2020 Björn Esser <besser82@fedoraproject.org> - 1.13-12
|
||||
- Add patch to fix python module for use with Python 3.9
|
||||
- Modernize spec file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user