New usptream version 2.19

This commit is contained in:
Lumir Balhar 2019-11-08 09:13:35 +01:00
parent 61e907b722
commit 7895b807ad
3 changed files with 15 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/release_v2.09.1.tar.gz /release_v2.09.1.tar.gz
/release_v2.10.tar.gz /release_v2.10.tar.gz
/release_v2.14.tar.gz /release_v2.14.tar.gz
/release_v2.19.tar.gz

View File

@ -2,20 +2,17 @@
# package to prevent "yacc table file version is out of date" problem. # package to prevent "yacc table file version is out of date" problem.
%define ply_version %(LC_ALL=C rpm -q --qf '%%{VERSION}' python3-ply | grep -Eo '^[^.]+\.[^.]+') %define ply_version %(LC_ALL=C rpm -q --qf '%%{VERSION}' python3-ply | grep -Eo '^[^.]+\.[^.]+')
%bcond_without tests
Name: python-pycparser Name: python-pycparser
Summary: C parser and AST generator written in Python Summary: C parser and AST generator written in Python
Version: 2.14 Version: 2.19
Release: 23%{?dist} Release: 1%{?dist}
License: BSD License: BSD
URL: http://github.com/eliben/pycparser URL: http://github.com/eliben/pycparser
Source0: http://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz Source0: http://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz
Source1: pycparser-0.91.1-remove-relative-sys-path.py Source1: pycparser-0.91.1-remove-relative-sys-path.py
# Python no longer accepts certain escape sequences, because they get treated as
# unicode escape sequences.
# https://github.com/eliben/pycparser/commit/2129f5fb1ec2d06000f10c96510874c5303d9f8c
Patch0: pycparser-2.14-rstring_fix.patch
Patch100: pycparser-2.10-ply.patch Patch100: pycparser-2.10-ply.patch
# This is Fedora-specific; I don't think we should request upstream to # This is Fedora-specific; I don't think we should request upstream to
# remove embedded libraries from their distribuution, when we can remove # remove embedded libraries from their distribuution, when we can remove
@ -24,11 +21,13 @@ Patch100: pycparser-2.10-ply.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
BuildRequires: dos2unix
BuildRequires: python3-ply
# for unit tests # for unit tests
BuildRequires: dos2unix %if %{with tests}
BuildRequires: cpp BuildRequires: cpp
BuildRequires: python3-ply %endif
%description %description
pycparser is a complete parser for the C language, written in pure Python. pycparser is a complete parser for the C language, written in pure Python.
@ -47,7 +46,6 @@ need to parse C source code.
%prep %prep
%setup -q -n pycparser-release_v%{version} %setup -q -n pycparser-release_v%{version}
%patch0 -p1
%patch100 -p1 -F5 -b .ply %patch100 -p1 -F5 -b .ply
# remove embedded copy of ply # remove embedded copy of ply
@ -67,7 +65,9 @@ popd
%py3_install %py3_install
%check %check
%if %{with tests}
%{__python3} tests/all_tests.py %{__python3} tests/all_tests.py
%endif
%files -n python3-pycparser %files -n python3-pycparser
%license LICENSE %license LICENSE
@ -76,6 +76,9 @@ popd
%{python3_sitelib}/pycparser-*.egg-info/ %{python3_sitelib}/pycparser-*.egg-info/
%changelog %changelog
* Fri Nov 08 2019 Lumír Balhar <lbalhar@redhat.com> - 2.19-1
- New usptream version 2.19
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 2.14-23 * Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 2.14-23
- Subpackage python2-ply has been removed - Subpackage python2-ply has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

View File

@ -1 +1 @@
dfa652c012a97ed0168889797873b73f release_v2.14.tar.gz SHA512 (release_v2.19.tar.gz) = 88fe63c1a7a344c564dfd3b4f99735a4159c8a3f5738bab839943ea7fcbf1f5340f67326550b7e66508ea5862897e5bcdf363c2a8d47eccb50890573a2640a98