Accepting request 1108457 from X11:Enlightenment:Factory
OBS-URL: https://build.opensuse.org/request/show/1108457 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-efl?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 1 12:18:58 UTC 2023 - Simon Lees <sflees@suse.de>
|
||||
|
||||
- Fix Leap build by tweeking dependencies and disabling docs as
|
||||
they require newer tooling then Leap provides.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 31 21:46:49 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
||||
@@ -14,9 +14,14 @@
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
|
||||
%if 0%{?suse_version} > 1599
|
||||
%define build_doc 1
|
||||
%else
|
||||
%define build_doc 0
|
||||
%endif
|
||||
|
||||
Name: python-efl
|
||||
Version: 1.26.0
|
||||
Release: 0
|
||||
@@ -26,7 +31,12 @@ Group: Development/Libraries/Python
|
||||
URL: http://enlightenment.org
|
||||
Source: https://download.enlightenment.org/rel/bindings/python/%{name}-%{version}.tar.xz
|
||||
Patch0: cython3.patch
|
||||
%if 0%{?suse_version} > 1599
|
||||
BuildRequires: %{python_module Cython3}
|
||||
%else
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
%endif
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: dbus-1-python3-devel
|
||||
BuildRequires: pkgconfig
|
||||
@@ -74,6 +84,7 @@ Python bindings of the Enlightenment Foundation Libraries (efl).
|
||||
Python bindings of the Enlightenment Foundation Libraries (efl).
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%if %{build_doc}
|
||||
%package -n python-efl-doc
|
||||
Summary: Documentation for python-efl
|
||||
Group: Documentation/HTML
|
||||
@@ -83,7 +94,7 @@ Conflicts: otherproviders(python3-efl-doc)
|
||||
|
||||
%description -n python-efl-doc
|
||||
HTML formated documentation for python-efl module.
|
||||
|
||||
%endif
|
||||
%package -n python-efl-examples
|
||||
Summary: Examples of python-efl usage
|
||||
Group: Documentation/Other
|
||||
@@ -96,7 +107,9 @@ Some examples of usage of python-efl.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if 0%{?suse_version} > 1599
|
||||
%patch0 -p1
|
||||
%endif
|
||||
# drop build date from doc to fix build-compare
|
||||
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" ./doc/conf.py
|
||||
|
||||
@@ -108,7 +121,9 @@ export CFLAGS="$CFLAGS -O0"
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
%{python_expand $python setup.py build -g}
|
||||
sphinx-build doc build/sphinx/html
|
||||
%if %{build_doc}
|
||||
python3 -m sphinx.cmd.build doc build/sphinx/html
|
||||
%endif
|
||||
%else
|
||||
%py2_build
|
||||
%py3_build
|
||||
@@ -124,6 +139,7 @@ export DISABLE_CYTHON=1
|
||||
|
||||
# documentation
|
||||
%if 0%{?suse_version}
|
||||
%if %{build_doc}
|
||||
for _name in python-efl python3-efl; do
|
||||
install -m 0755 -d "%{buildroot}/%{_docdir}/$_name"
|
||||
cp -R build/sphinx/html "%{buildroot}/%{_docdir}/$_name"
|
||||
@@ -132,6 +148,7 @@ done
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{_docdir}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%endif
|
||||
|
||||
# examples
|
||||
for _name in python-efl python3-efl; do
|
||||
@@ -149,8 +166,10 @@ rm -r "%{buildroot}/%{_docdir}/%{name}/"
|
||||
%{python_sitearch}/*
|
||||
%exclude %{_docdir}/python3-efl/html/
|
||||
|
||||
%if %{build_doc}
|
||||
%files -n python-efl-doc
|
||||
%{_docdir}/python3-efl
|
||||
%endif
|
||||
|
||||
%files -n python-efl-examples
|
||||
%{_datadir}/python3-efl
|
||||
|
||||
Reference in New Issue
Block a user