diff --git a/0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch b/0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch new file mode 100644 index 0000000..b3268da --- /dev/null +++ b/0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch @@ -0,0 +1,18 @@ +commit 2acb22c5606cf151ea31859bd5c3810fc0630150 +Author: Dubslow +Date: Thu Sep 10 18:02:30 2015 -0500 + + Add missing typedef sa_family_t from sys/socket.h + +diff --git a/utils/fake_libc_include/_fake_typedefs.h b/utils/fake_libc_include/_fake_typedefs.h +index 6201cf7..8c8d463 100644 +--- a/utils/fake_libc_include/_fake_typedefs.h ++++ b/utils/fake_libc_include/_fake_typedefs.h +@@ -95,6 +95,7 @@ typedef int pthread_barrier_t; + typedef int pthread_barrierattr_t; + typedef int jmp_buf; + typedef int rlim_t; ++typedef int sa_family_t; + typedef int sigjmp_buf; + typedef int stack_t; + typedef int siginfo_t; diff --git a/pycparser-2.12.tar.gz b/pycparser-2.12.tar.gz deleted file mode 100644 index bb9212d..0000000 --- a/pycparser-2.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da24c80aeb3c794ac64fe5503a01f65f13fece3e02513fd2e0761f93c96597b0 -size 297648 diff --git a/python-pycparser-rpmlintrc b/python-pycparser-rpmlintrc new file mode 100644 index 0000000..2031259 --- /dev/null +++ b/python-pycparser-rpmlintrc @@ -0,0 +1,2 @@ +# 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/") diff --git a/python-pycparser.changes b/python-pycparser.changes index 2503e07..7a79004 100644 --- a/python-pycparser.changes +++ b/python-pycparser.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Sat Jan 16 14:31:31 UTC 2016 - p.drouand@gmail.com + +- Add python-pycparser-rpmlintrc to sources + +------------------------------------------------------------------- +Thu Jan 7 20:52:41 UTC 2016 - mvyskocil@opensuse.org + +- Tag added patch better + +------------------------------------------------------------------- +Mon Nov 30 12:56:14 UTC 2015 - mvyskocil@opensuse.org + +- Update to version 2.14 + * Added CParser parameter to specify output directory for generated parsing + tables (#84). + * Removed lcc's cpp and its license from the distribution. Using lcc's cpp + is no longer recommended, now that Clang has binary builds available for + Windows. + 2.13: + * Added support for offsetof() the way gcc implements it (special builtin + that takes a type as an argument). + * Added faked va_* macros (these are expected to come from stdarg.h) + * Added a bunch more fake headers and typedefs to support parsing C projects + like Git and SQLite without modifications to pycparser. + * Added support for empty initializer lists (#79). +- Package fake_libc_include + * switch to github release as pypi tarball don't contains all files +- Add 0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch + * upstream patch enhancing the fake_libc_include + ------------------------------------------------------------------- Mon May 11 14:59:40 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-pycparser.spec b/python-pycparser.spec index dab35c6..5a8fdb9 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycparser # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,13 +17,17 @@ Name: python-pycparser -Version: 2.12 +Version: 2.14 Release: 0 Summary: C parser in Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/eliben/pycparser -Source: http://pypi.python.org/packages/source/p/pycparser/pycparser-%{version}.tar.gz +Source0: https://github.com/eliben/pycparser/archive/release_v%{version}.tar.gz +Source99: %{name}-rpmlintrc +#PATCH-FIX-UPSTREAM +Patch0: 0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch +BuildRequires: fdupes BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 @@ -38,7 +42,8 @@ the PLY parsing library. It parses C code into an AST and can serve as a front-end for C compilers or analysis tools. %prep -%setup -q -n pycparser-%{version} +%setup -q -n pycparser-release_v%{version} +%patch0 -p1 # fix end of line sed -i 's/\r//' LICENSE @@ -47,6 +52,9 @@ python setup.py 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/ %check python tests/all_tests.py @@ -55,5 +63,6 @@ python tests/all_tests.py %defattr(-,root,root,-) %doc LICENSE README.rst examples %{python_sitelib}/* +%{_datadir}/%{name} %changelog diff --git a/release_v2.14.tar.gz b/release_v2.14.tar.gz new file mode 100644 index 0000000..c29f63a --- /dev/null +++ b/release_v2.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d4b70c456d45b64171cf82ebad3a58c71d7e913cad016744ad9a66ae1cc8955 +size 120956