diff --git a/.gitignore b/.gitignore index 9898552..5a7db9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /release_v2.09.1.tar.gz /release_v2.10.tar.gz /release_v2.14.tar.gz +/release_v2.19.tar.gz diff --git a/python-pycparser.spec b/python-pycparser.spec index f8006a8..a2c3f93 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -2,20 +2,17 @@ # 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 '^[^.]+\.[^.]+') +%bcond_without tests + Name: python-pycparser Summary: C parser and AST generator written in Python -Version: 2.14 -Release: 23%{?dist} +Version: 2.19 +Release: 1%{?dist} License: BSD URL: http://github.com/eliben/pycparser Source0: http://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz 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 # This is Fedora-specific; I don't think we should request upstream to # remove embedded libraries from their distribuution, when we can remove @@ -24,11 +21,13 @@ Patch100: pycparser-2.10-ply.patch BuildArch: noarch BuildRequires: python3-devel python3-setuptools +BuildRequires: dos2unix +BuildRequires: python3-ply # for unit tests -BuildRequires: dos2unix +%if %{with tests} BuildRequires: cpp -BuildRequires: python3-ply +%endif %description pycparser is a complete parser for the C language, written in pure Python. @@ -47,7 +46,6 @@ need to parse C source code. %prep %setup -q -n pycparser-release_v%{version} -%patch0 -p1 %patch100 -p1 -F5 -b .ply # remove embedded copy of ply @@ -67,7 +65,9 @@ popd %py3_install %check +%if %{with tests} %{__python3} tests/all_tests.py +%endif %files -n python3-pycparser %license LICENSE @@ -76,6 +76,9 @@ popd %{python3_sitelib}/pycparser-*.egg-info/ %changelog +* Fri Nov 08 2019 Lumír Balhar - 2.19-1 +- New usptream version 2.19 + * Sun Oct 20 2019 Miro Hrončok - 2.14-23 - Subpackage python2-ply has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal diff --git a/sources b/sources index 01a75b8..9e5ebdb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dfa652c012a97ed0168889797873b73f release_v2.14.tar.gz +SHA512 (release_v2.19.tar.gz) = 88fe63c1a7a344c564dfd3b4f99735a4159c8a3f5738bab839943ea7fcbf1f5340f67326550b7e66508ea5862897e5bcdf363c2a8d47eccb50890573a2640a98