15
0
forked from pool/python-cffi

- update to 1.12.3

- drop patches: 3184b0a675fc425b821b528d7fdf744b2f08dadf.patch
                7a76a381534012af4790e815140d1538510b7d93.patch
                e2e324a2f13e3a646de6f6ff03e90ed7d37e2636.patch
 * Direct support for pkg-config.
 * ffi.from_buffer() takes a new optional first argument that gives the array
    type of the result. It also takes an optional keyword argument require_writable
    to refuse read-only Python buffers.
 * ffi.new(), ffi.gc() or ffi.from_buffer() cdata objects can now be released
    at known times, either by using the with keyword or by calling the new ffi.release().
 * Accept an expression like ffi.new("int[4]", p) if p is itself another cdata int[4].
 * CPython 2.x: ffi.dlopen() failed with non-ascii file names on Posix
 * CPython: if a thread is started from C and then runs Python code
    (with callbacks or with the embedding solution), then previous versions of cffi
    would contain possible crashes and/or memory leaks.
 * Support for ffi.cdef(..., pack=N) where N is a power of two.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cffi?expand=0&rev=59
This commit is contained in:
2019-03-02 10:48:08 +00:00
committed by Git OBS Bridge
parent 0c76d6df2a
commit 3bca1778c0
7 changed files with 25 additions and 119 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cffi
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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-cffi
Version: 1.11.5
Version: 1.12.2
Release: 0
Summary: Foreign Function Interface for Python calling C code
License: MIT
@@ -26,12 +26,6 @@ Group: Development/Languages/Python
URL: http://cffi.readthedocs.org
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
Source1: python-cffi-rpmlintrc
# https://bitbucket.org/cffi/cffi/issues/384/
Patch0: e2e324a2f13e3a646de6f6ff03e90ed7d37e2636.patch
# https://bitbucket.org/cffi/cffi/issues/378
Patch1: 3184b0a675fc425b821b528d7fdf744b2f08dadf.patch
# https://bitbucket.org/cffi/cffi/issues/382/test_sin_no_return_value-violates-calling
Patch2: 7a76a381534012af4790e815140d1538510b7d93.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pycparser}
BuildRequires: %{python_module pytest}
@@ -50,7 +44,6 @@ is to provide a convenient and reliable way of calling C code from Python.
%prep
%setup -q -n cffi-%{version}
%autopatch -p1
%build
export CFLAGS="%{optflags}"