xcb-proto: Upgrade version to 1.16 (#7270)

This commit is contained in:
Rohit Rawat 2024-01-19 16:38:24 +05:30 коммит произвёл GitHub
Родитель d2b9b9d802
Коммит 8205965d71
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 10 добавлений и 50 удалений

Просмотреть файл

@ -1,39 +0,0 @@
Index: xcb-proto-1.13/xcbgen/matcher.py
===================================================================
--- xcb-proto-1.13.orig/xcbgen/matcher.py
+++ xcb-proto-1.13/xcbgen/matcher.py
@@ -7,7 +7,7 @@ we do not create a new type object, we j
'''
from os.path import join
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
from xcbgen.xtypes import *
Index: xcb-proto-1.13/xcbgen/state.py
===================================================================
--- xcb-proto-1.13.orig/xcbgen/state.py
+++ xcb-proto-1.13/xcbgen/state.py
@@ -2,7 +2,7 @@
This module contains the namespace class and the singleton module class.
'''
from os.path import dirname, basename
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
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):

Просмотреть файл

@ -1,5 +1,5 @@
{
"Signatures": {
"xcb-proto-1.13.tar.bz2": "7b98721e669be80284e9bbfeab02d2d0d54cd11172b72271e47a2fe875e2bde1"
"xcb-proto-1.16.0.tar.gz": "d9c7f010b1105fc3858bf07b5169b2dd8e7493c6652b1fe45f3321d874f291d7"
}
}

Просмотреть файл

@ -2,20 +2,16 @@
%define debug_package %{nil}
Summary: XCB protocol descriptions
Name: xcb-proto
Version: 1.13
Release: 16%{?dist}
Version: 1.16.0
Release: 1%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://xcb.freedesktop.org/
Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
Source0: https://xorg.freedesktop.org/archive/individual/proto/%{name}-%{version}.tar.gz
BuildArch: noarch
# cElementTree no longer exists in Python 3.9
# fractions.gcd has been replaced by math.gcd
Patch0001: xcb-proto-1.13-python39.patch
BuildRequires: python3-devel
Requires: pkg-config
@ -40,7 +36,7 @@ the protocol.
%files
%license COPYING
%doc NEWS README TODO doc/xml-xcb.txt
%doc NEWS README.md TODO doc/xml-xcb.txt
%{_datadir}/pkgconfig/xcb-proto.pc
%dir %{_datadir}/xcb/
%{_datadir}/xcb/*.xsd
@ -48,6 +44,9 @@ the protocol.
%{python3_sitelib}/xcbgen
%changelog
* Wed Jan 17 2024 Rohit Rawat <rohitrawat@microsoft.com> - 1.16.0-1
- Upgrade version to 1.16.0 and remove python patch(not required for 1.16.0)
* Fri Apr 22 2022 Olivia Crain <oliviacrain@microsoft.com> - 1.13-16
- Remove explicit pkgconfig provides that are now automatically generated by RPM

Просмотреть файл

@ -29598,8 +29598,8 @@
"type": "other",
"other": {
"name": "xcb-proto",
"version": "1.13",
"downloadUrl": "https://xcb.freedesktop.org/dist/xcb-proto-1.13.tar.bz2"
"version": "1.16.0",
"downloadUrl": "https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-1.16.0.tar.gz"
}
}
},