Update to 2.23 (rhbz#2394085)

This commit is contained in:
Lumir Balhar 2025-11-20 12:14:18 +01:00
commit b7d477ce09
4 changed files with 3 additions and 63 deletions

View file

@ -2,20 +2,13 @@
Name: python-pycparser
Summary: C parser and AST generator written in Python
Version: 2.22
Version: 2.23
Release: %autorelease
License: BSD-3-Clause
URL: http://github.com/eliben/pycparser
Source0: %{url}/archive/release_v%{version}.tar.gz
Source1: pycparser-0.91.1-remove-relative-sys-path.py
# This is Fedora-specific; I don't think we should request upstream to
# remove embedded libraries from their distribution, when we can remove
# them during packaging.
# It also ensures that pycparser uses the same YACC __tabversion__ as ply
# package to prevent "yacc table file version is out of date" problem.
Patch100: pycparser-unbundle-ply.patch
BuildArch: noarch
BuildRequires: python3-devel
@ -42,9 +35,6 @@ need to parse C source code.
%prep
%autosetup -p1 -n pycparser-release_v%{version}
# remove embedded copy of ply
rm -r pycparser/ply
# Remove relative sys.path from the examples
%{python3} %{SOURCE1} examples