Hello community, here is the log from the commit of package python-pycparser for openSUSE:Factory checked in at 2017-04-19 18:03:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycparser (Old) and /work/SRC/openSUSE:Factory/.python-pycparser.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycparser" Wed Apr 19 18:03:19 2017 rev:6 rq:482557 version:2.17 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycparser/python-pycparser.changes 2016-01-23 01:15:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pycparser.new/python-pycparser.changes 2017-04-19 18:03:25.396668823 +0200 @@ -1,0 +2,31 @@ +Fri Mar 24 17:09:01 UTC 2017 - jmate...@suse.com + +- sort out duplicate rpmlintrc + +------------------------------------------------------------------- +Thu Mar 16 16:15:40 UTC 2017 - jmate...@suse.com + +- update to 2.17 + - PR #121: Update bundled PLY version to 3.8 + - Issue #117: Fix parsing of extra semi-colons inside structure declarations. + - PR #109: Update c_generator to add {} around nested named initializers. + - PR #101: Added support for parsing pragmas into the AST. + - Additional fake headers and typedefs, manifest fixes (#97, #106, #111). + - Testing with Python 3.5 instead of 3.3 now (3.4 and 3.5 are the 3.x versions + tested). + - PR #145: More complete support for offsetof() + - Issue #116: Fix line numbers recorded for empty and compound statements. + - Minor performance improvement to the invalid string literal regex. +- drop upstreamed 0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch +- move source url to pypi + +------------------------------------------------------------------- +Thu Dec 8 16:40:11 UTC 2016 - jmate...@suse.com + +- update for multipython build +- move fake_libc to site-packages, where it can be found by pkg_resources + * this also prevents file conflict between python2 and python3 +- fix-lexer-build.patch: fix build process to better generate parser/lexer + files + +------------------------------------------------------------------- Old: ---- 0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch release_v2.14.tar.gz New: ---- fix-lexer-build.patch pycparser-2.17.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycparser.spec ++++++ --- /var/tmp/diff_new_pack.Jp0FNn/_old 2017-04-19 18:03:27.852321461 +0200 +++ /var/tmp/diff_new_pack.Jp0FNn/_new 2017-04-19 18:03:27.852321461 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pycparser # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,25 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pycparser -Version: 2.14 +Version: 2.17 Release: 0 Summary: C parser in Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/eliben/pycparser -Source0: https://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pycparser/pycparser-%{version}.tar.gz Source99: %{name}-rpmlintrc -#PATCH-FIX-UPSTREAM -Patch0: 0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch +Patch1: fix-lexer-build.patch +BuildRequires: %{python_module devel} BuildRequires: fdupes -BuildRequires: python-devel +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif + +%python_subpackages %description pycparser is a complete parser of the C language, written in pure Python using @@ -42,27 +41,24 @@ front-end for C compilers or analysis tools. %prep -%setup -q -n pycparser-release_v%{version} -%patch0 -p1 +%setup -q -n pycparser-%{version} +%patch1 -p1 # fix end of line sed -i 's/\r//' LICENSE %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mkdir -p %{buildroot}/%{_datadir}/%{name} -cp -r utils/fake_libc_include/ %{buildroot}/%{_datadir}/%{name} -%fdupes -s %{buildroot}/%{_datadir}/%{name}/fake_libc_include/ +%python_install +%{python_expand %fdupes %{buildroot}%{$python_sitelib}} %check -python tests/all_tests.py +%python_exec tests/all_tests.py -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst examples %{python_sitelib}/* -%{_datadir}/%{name} %changelog ++++++ fix-lexer-build.patch ++++++ Index: pycparser-release_v2.14/setup.py =================================================================== --- pycparser-release_v2.14.orig/setup.py +++ pycparser-release_v2.14/setup.py @@ -1,11 +1,11 @@ import os, sys try: from setuptools import setup - from setuptools.command.install import install as _install + from setuptools.command.build import build as _build from setuptools.command.sdist import sdist as _sdist except ImportError: from distutils.core import setup - from distutils.command.install import install as _install + from distutils.command.build import build as _build from distutils.command.sdist import sdist as _sdist @@ -15,10 +15,10 @@ def _run_build_tables(dir): cwd=os.path.join(dir, 'pycparser')) -class install(_install): +class build(_build): def run(self): - _install.run(self) - self.execute(_run_build_tables, (self.install_lib,), + _build.run(self) + self.execute(_run_build_tables, (self.build_lib,), msg="Build the lexing/parsing tables") @@ -49,7 +49,7 @@ setup( classifiers = [ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3',], - packages=['pycparser', 'pycparser.ply'], - package_data={'pycparser': ['*.cfg']}, - cmdclass={'install': install, 'sdist': sdist}, + packages=['pycparser', 'pycparser.ply', 'utils.fake_libc_include'], + package_data={'pycparser': ['*.cfg'], 'utils.fake_libc_include': ['*']}, + cmdclass={'build': build, 'sdist': sdist}, ) ++++++ python-pycparser-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.Jp0FNn/_old 2017-04-19 18:03:27.900314672 +0200 +++ /var/tmp/diff_new_pack.Jp0FNn/_new 2017-04-19 18:03:27.900314672 +0200 @@ -1,2 +1 @@ -# Fake libraries for pycparser allowing it to pretend it can parse libc definitions -addFilter(".*devel-file-in-non-devel-package.*/usr/share/python-pycparser/fake_libc_include/") +addFilter("E: devel-file-in-non-devel-package .*site-packages.*fake_libc_include.*")