forked from pool/python-pycparser
Accepting request 353984 from devel:languages:python
fixed OBS-URL: https://build.opensuse.org/request/show/353984 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycparser?expand=0&rev=5
This commit is contained in:
commit
14d1a6b7ab
18
0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch
Normal file
18
0002-Add-missing-typedef-sa_family_t-from-sys-socket.h.patch
Normal file
@ -0,0 +1,18 @@
|
||||
commit 2acb22c5606cf151ea31859bd5c3810fc0630150
|
||||
Author: Dubslow <bunslow@gmail.com>
|
||||
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;
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:da24c80aeb3c794ac64fe5503a01f65f13fece3e02513fd2e0761f93c96597b0
|
||||
size 297648
|
2
python-pycparser-rpmlintrc
Normal file
2
python-pycparser-rpmlintrc
Normal file
@ -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/")
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
3
release_v2.14.tar.gz
Normal file
3
release_v2.14.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5d4b70c456d45b64171cf82ebad3a58c71d7e913cad016744ad9a66ae1cc8955
|
||||
size 120956
|
Loading…
x
Reference in New Issue
Block a user