Accepting request 1108345 from home:fstrba:branches:X11:Enlightenment:Factory
Fix build in Factory OBS-URL: https://build.opensuse.org/request/show/1108345 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=27
This commit is contained in:
1520
cython3.patch
Normal file
1520
cython3.patch
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 31 21:46:49 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Use Cython to regenerate files during the build
|
||||
- Build documentation using sphinx-build since Sphinx 7+ dropped
|
||||
the integration with setuptools
|
||||
- Added patch:
|
||||
* cython3.patch
|
||||
+ Explicite declaration of functions as noexcept:
|
||||
in Cython 3+, default swallowing of Python exception is
|
||||
deprecated and the new default is to propagate them.
|
||||
Generation of files is ending up in error on exception
|
||||
mismatch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 01:10:27 UTC 2023 - Simon Lees <sflees@suse.de>
|
||||
|
||||
|
||||
@@ -25,10 +25,11 @@ License: GPL-3.0-only AND LGPL-3.0-only
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://enlightenment.org
|
||||
Source: https://download.enlightenment.org/rel/bindings/python/%{name}-%{version}.tar.xz
|
||||
Patch0: cython3.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: dbus-1-python3-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-Cython
|
||||
BuildRequires: pkgconfig(ecore)
|
||||
BuildRequires: pkgconfig(edje)
|
||||
BuildRequires: pkgconfig(elementary)
|
||||
@@ -95,17 +96,19 @@ Some examples of usage of python-efl.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
# drop build date from doc to fix build-compare
|
||||
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" ./doc/conf.py
|
||||
|
||||
%build
|
||||
export ENABLE_CYTHON=1
|
||||
export CFLAGS="$CFLAGS -Wno-declaration-after-statement"
|
||||
%ifarch %ix86
|
||||
export CFLAGS="$CFLAGS -O0"
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%{python_expand $python setup.py build -g
|
||||
$python setup.py build_doc}
|
||||
%{python_expand $python setup.py build -g}
|
||||
sphinx-build doc build/sphinx/html
|
||||
%else
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
Reference in New Issue
Block a user