From f289a00ad2dae8f6bad2857dfeeba06b71b092625f5507db1db07494f353f1b4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 24 Sep 2018 16:34:31 +0000 Subject: [PATCH] Accepting request 637730 from home:TheBlackCat:branches:devel:languages:python - Update to 2.19 - PR #277: Fix parsing of floating point literals - PR #254: Add support for parsing empty structs - PR #240: Fix enum formatting in generated C code (also #216) - PR #222: Add support for #pragma in struct declarations - Rebase fix-lexer-build.patch OBS-URL: https://build.opensuse.org/request/show/637730 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycparser?expand=0&rev=20 --- fix-lexer-build.patch | 12 ++++++------ pycparser-2.18.tar.gz | 3 --- pycparser-2.19.tar.gz | 3 +++ python-pycparser.changes | 10 ++++++++++ python-pycparser.spec | 10 +++++----- 5 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 pycparser-2.18.tar.gz create mode 100644 pycparser-2.19.tar.gz diff --git a/fix-lexer-build.patch b/fix-lexer-build.patch index de135ba..13a528d 100644 --- a/fix-lexer-build.patch +++ b/fix-lexer-build.patch @@ -16,8 +16,8 @@ Index: pycparser-release_v2.14/setup.py from distutils.command.sdist import sdist as _sdist -@@ -15,10 +15,10 @@ def _run_build_tables(dir): - cwd=os.path.join(dir, 'pycparser')) +@@ -18,10 +18,10 @@ def _run_build_tables(dir): + cwd=os.path.join(dir, 'pycparser')) -class install(_install): @@ -30,10 +30,10 @@ Index: pycparser-release_v2.14/setup.py msg="Build the lexing/parsing tables") -@@ -49,7 +49,7 @@ setup( - classifiers = [ - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 3',], +@@ -60,7 +60,7 @@ setup( + 'Programming Language :: Python :: 3.6', + ], + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", - packages=['pycparser', 'pycparser.ply'], - package_data={'pycparser': ['*.cfg']}, - cmdclass={'install': install, 'sdist': sdist}, diff --git a/pycparser-2.18.tar.gz b/pycparser-2.18.tar.gz deleted file mode 100644 index c770fe2..0000000 --- a/pycparser-2.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226 -size 245897 diff --git a/pycparser-2.19.tar.gz b/pycparser-2.19.tar.gz new file mode 100644 index 0000000..279431d --- /dev/null +++ b/pycparser-2.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3 +size 158295 diff --git a/python-pycparser.changes b/python-pycparser.changes index 0b98e72..98b76d0 100644 --- a/python-pycparser.changes +++ b/python-pycparser.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Sep 24 16:27:58 UTC 2018 - Todd R + +- Update to 2.19 + - PR #277: Fix parsing of floating point literals + - PR #254: Add support for parsing empty structs + - PR #240: Fix enum formatting in generated C code (also #216) + - PR #222: Add support for #pragma in struct declarations +- Rebase fix-lexer-build.patch + ------------------------------------------------------------------- Wed Jul 12 05:50:39 UTC 2017 - tbechtold@suse.com diff --git a/python-pycparser.spec b/python-pycparser.spec index 16e2e47..1f938d8 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycparser # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pycparser -Version: 2.18 +Version: 2.19 Release: 0 Summary: C parser in Python License: BSD-3-Clause @@ -30,7 +30,6 @@ Patch1: fix-lexer-build.patch BuildRequires: %{python_module devel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -57,8 +56,9 @@ sed -i 's/\r//' LICENSE %python_exec tests/all_tests.py %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst examples +%doc README.rst +%doc examples/ +%license LICENSE %{python_sitelib}/* %changelog