SHA256
1
0
forked from pool/python-efl
Files
python-efl/python-efl.spec

192 lines
5.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-efl
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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.1
Release: 0
Summary: Python bindings of evas
License: GPL-3.0-only AND LGPL-3.0-only
Group: Development/Libraries/Python
Accepting request 800863 from X11:Enlightenment:Testing - Update to 1.24.0 * As always new features of EFL have been ported and the usual has been done in fixing bugs, optimizing speed and improve documentation. (see **ChangeLog** in the tarball for the full list of changes) - Explicitly require python3-Sphinx due to the module way being now unresolvable. - Update to 1.23.0 in line with efl - Fix a Group: line. - In descriptions, EFL needs to be camel cased because it is a proper noun (a name). - Update to 1.22.0 with efl - Update to 1.21.0 in line with efl - Build with Python2 on Fedora and Mageia - Build on ix86 (add the -O0 optimization to flags) - Fix build on Fedora and Mageia - Use a single spec file (build with Python2 and Python3) - Spec file cleanup - i586 builds are working again, reenable them - update the efl version requirement to be correct - Sync with efl 1.20 - Exclude x86, cc1 uses too much memory atm - Add a _constraints file to fix out of mem issues - Update to 1.19.0 * changes in line with 1.19.X changes in efl - Another attempt at python3 - Removes python2 support - 1.16.0 pre release will add full changes with release - Add COPYING.* AUTHORS to package - Bindings update to efl 1.15.x Fixes: elm.Entry: Fixed name of the callback_rejected_del function Fixed build on OSX Fixed build when ecore-x is not available Fixed module init from embedded interpreter Changes: Elm: Unify modules into a monolithic module Additions: elm.Configuration.transition_duration_factor elm.Window.autohide elm.ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN elm.Entry.callback_context_open_add/del elm.ELM_FOCUS_MOVE_POLICY_KEY_ONLY elm.Object.focus_move_policy elm.Scrollable.wheel_disabled evas.Textblock.obstacle_add evas.Textblock.obstacle_del evas.Textblock.obstacles_update evas.EVAS_CALLBACK_CANVA_VIEWPORT_RESIZE - Bindings updated to efl 1.14.X - Bindings updated to match efl 1.13.x - Bindings updated to match efl 1.12.x - bump to 1.11.0 ** Re enabled cython building ** No new features upstream just following efl changes - Disabled Cython with env var for this release as the upstream tar was broken. It was missing .pxd files this has been fixed for the next release. - bump to 1.10.0 (but missing any short changelog) - correct all provides and obsoletes - version 1.9.0 Release Notes: No major changes have been made since the last 1.8 release. All the new features of efl and elementary 1.9 has been ported and the usual has been done in fixing bugs and optimizing speed. (see **changes.html** in the tarball for the full list of changes) - change to use pkgconfig dependencies - beutify spec a bit - let there by python-efl! OBS-URL: https://build.opensuse.org/request/show/800863 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=12
2020-05-07 05:36:56 +00:00
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}
%endif
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: dbus-1-python3-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(emotion)
BuildRequires: pkgconfig(eo)
BuildRequires: pkgconfig(evas)
# cc1 uses too much memory on x86
#ExcludeArch: %ix86
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# pre-unification mess
%if "%{python_flavor}" == "python2"
Obsoletes: python-evas < %{version}
Provides: python-evas = %{version}
Obsoletes: python-ecore < %{version}
Provides: python-ecore = %{version}
Obsoletes: python-edje < %{version}
Provides: python-edje = %{version}
Obsoletes: python-emotion < %{version}
Provides: python-emotion = %{version}
Obsoletes: python-e_dbus < %{version}
Provides: python-e_dbus = %{version}
Obsoletes: python-elementary < %{version}
Provides: python-elementary = %{version}
%endif
%endif
%if 0%{?suse_version}
%python_subpackages
%else
%package -n python3-efl
Summary: Python bindings of evas
Group: Development/Languages/Python
%description -n python3-efl
Python bindings of the Enlightenment Foundation Libraries (efl).
%endif
%description
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
BuildRequires: %{python_module Sphinx}
Provides: python3-efl-doc
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
Provides: python3-efl-examples
Conflicts: otherproviders(python3-efl-examples)
%description -n python-efl-examples
Some examples of usage of python-efl.
%endif
%prep
%setup -q
%if 0%{?suse_version} > 1599
%patch -P 0 -p1
%endif
# 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}
%if %{build_doc}
python3 -m sphinx.cmd.build doc build/sphinx/html
%endif
%else
%py2_build
%py3_build
%endif
%install
export DISABLE_CYTHON=1
# module itself
%{?suse_version:%python_install}
%{!?suse_version:%py2_install}
%{!?suse_version:%py3_install}
# 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"
rm -r "%{buildroot}/%{_docdir}/$_name"/html/.{buildinfo,doctrees}
done
%python_expand %fdupes %{buildroot}%{_docdir}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%endif
# examples
for _name in python-efl python3-efl; do
install -m 0755 -d "%{buildroot}/%{_datadir}/$_name"
cp -R examples/ "%{buildroot}/%{_datadir}/$_name/"
mkdir -p %{buildroot}/%{_docdir}/$_name
done
Accepting request 800863 from X11:Enlightenment:Testing - Update to 1.24.0 * As always new features of EFL have been ported and the usual has been done in fixing bugs, optimizing speed and improve documentation. (see **ChangeLog** in the tarball for the full list of changes) - Explicitly require python3-Sphinx due to the module way being now unresolvable. - Update to 1.23.0 in line with efl - Fix a Group: line. - In descriptions, EFL needs to be camel cased because it is a proper noun (a name). - Update to 1.22.0 with efl - Update to 1.21.0 in line with efl - Build with Python2 on Fedora and Mageia - Build on ix86 (add the -O0 optimization to flags) - Fix build on Fedora and Mageia - Use a single spec file (build with Python2 and Python3) - Spec file cleanup - i586 builds are working again, reenable them - update the efl version requirement to be correct - Sync with efl 1.20 - Exclude x86, cc1 uses too much memory atm - Add a _constraints file to fix out of mem issues - Update to 1.19.0 * changes in line with 1.19.X changes in efl - Another attempt at python3 - Removes python2 support - 1.16.0 pre release will add full changes with release - Add COPYING.* AUTHORS to package - Bindings update to efl 1.15.x Fixes: elm.Entry: Fixed name of the callback_rejected_del function Fixed build on OSX Fixed build when ecore-x is not available Fixed module init from embedded interpreter Changes: Elm: Unify modules into a monolithic module Additions: elm.Configuration.transition_duration_factor elm.Window.autohide elm.ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN elm.Entry.callback_context_open_add/del elm.ELM_FOCUS_MOVE_POLICY_KEY_ONLY elm.Object.focus_move_policy elm.Scrollable.wheel_disabled evas.Textblock.obstacle_add evas.Textblock.obstacle_del evas.Textblock.obstacles_update evas.EVAS_CALLBACK_CANVA_VIEWPORT_RESIZE - Bindings updated to efl 1.14.X - Bindings updated to match efl 1.13.x - Bindings updated to match efl 1.12.x - bump to 1.11.0 ** Re enabled cython building ** No new features upstream just following efl changes - Disabled Cython with env var for this release as the upstream tar was broken. It was missing .pxd files this has been fixed for the next release. - bump to 1.10.0 (but missing any short changelog) - correct all provides and obsoletes - version 1.9.0 Release Notes: No major changes have been made since the last 1.8 release. All the new features of efl and elementary 1.9 has been ported and the usual has been done in fixing bugs and optimizing speed. (see **changes.html** in the tarball for the full list of changes) - change to use pkgconfig dependencies - beutify spec a bit - let there by python-efl! OBS-URL: https://build.opensuse.org/request/show/800863 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=12
2020-05-07 05:36:56 +00:00
# Remove examples installed under python-efl namespace
rm -r "%{buildroot}/%{_datadir}/%{name}/examples"
rm -r "%{buildroot}/%{_docdir}/%{name}/"
%endif
%if 0%{?suse_version}
%files %{python_files}
%{python_sitearch}/*
Accepting request 800863 from X11:Enlightenment:Testing - Update to 1.24.0 * As always new features of EFL have been ported and the usual has been done in fixing bugs, optimizing speed and improve documentation. (see **ChangeLog** in the tarball for the full list of changes) - Explicitly require python3-Sphinx due to the module way being now unresolvable. - Update to 1.23.0 in line with efl - Fix a Group: line. - In descriptions, EFL needs to be camel cased because it is a proper noun (a name). - Update to 1.22.0 with efl - Update to 1.21.0 in line with efl - Build with Python2 on Fedora and Mageia - Build on ix86 (add the -O0 optimization to flags) - Fix build on Fedora and Mageia - Use a single spec file (build with Python2 and Python3) - Spec file cleanup - i586 builds are working again, reenable them - update the efl version requirement to be correct - Sync with efl 1.20 - Exclude x86, cc1 uses too much memory atm - Add a _constraints file to fix out of mem issues - Update to 1.19.0 * changes in line with 1.19.X changes in efl - Another attempt at python3 - Removes python2 support - 1.16.0 pre release will add full changes with release - Add COPYING.* AUTHORS to package - Bindings update to efl 1.15.x Fixes: elm.Entry: Fixed name of the callback_rejected_del function Fixed build on OSX Fixed build when ecore-x is not available Fixed module init from embedded interpreter Changes: Elm: Unify modules into a monolithic module Additions: elm.Configuration.transition_duration_factor elm.Window.autohide elm.ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN elm.Entry.callback_context_open_add/del elm.ELM_FOCUS_MOVE_POLICY_KEY_ONLY elm.Object.focus_move_policy elm.Scrollable.wheel_disabled evas.Textblock.obstacle_add evas.Textblock.obstacle_del evas.Textblock.obstacles_update evas.EVAS_CALLBACK_CANVA_VIEWPORT_RESIZE - Bindings updated to efl 1.14.X - Bindings updated to match efl 1.13.x - Bindings updated to match efl 1.12.x - bump to 1.11.0 ** Re enabled cython building ** No new features upstream just following efl changes - Disabled Cython with env var for this release as the upstream tar was broken. It was missing .pxd files this has been fixed for the next release. - bump to 1.10.0 (but missing any short changelog) - correct all provides and obsoletes - version 1.9.0 Release Notes: No major changes have been made since the last 1.8 release. All the new features of efl and elementary 1.9 has been ported and the usual has been done in fixing bugs and optimizing speed. (see **changes.html** in the tarball for the full list of changes) - change to use pkgconfig dependencies - beutify spec a bit - let there by python-efl! OBS-URL: https://build.opensuse.org/request/show/800863 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=12
2020-05-07 05:36:56 +00:00
%exclude %{_docdir}/python3-efl/html/
%if %{build_doc}
%files -n python-efl-doc
%{_docdir}/python3-efl
%endif
%files -n python-efl-examples
Accepting request 800863 from X11:Enlightenment:Testing - Update to 1.24.0 * As always new features of EFL have been ported and the usual has been done in fixing bugs, optimizing speed and improve documentation. (see **ChangeLog** in the tarball for the full list of changes) - Explicitly require python3-Sphinx due to the module way being now unresolvable. - Update to 1.23.0 in line with efl - Fix a Group: line. - In descriptions, EFL needs to be camel cased because it is a proper noun (a name). - Update to 1.22.0 with efl - Update to 1.21.0 in line with efl - Build with Python2 on Fedora and Mageia - Build on ix86 (add the -O0 optimization to flags) - Fix build on Fedora and Mageia - Use a single spec file (build with Python2 and Python3) - Spec file cleanup - i586 builds are working again, reenable them - update the efl version requirement to be correct - Sync with efl 1.20 - Exclude x86, cc1 uses too much memory atm - Add a _constraints file to fix out of mem issues - Update to 1.19.0 * changes in line with 1.19.X changes in efl - Another attempt at python3 - Removes python2 support - 1.16.0 pre release will add full changes with release - Add COPYING.* AUTHORS to package - Bindings update to efl 1.15.x Fixes: elm.Entry: Fixed name of the callback_rejected_del function Fixed build on OSX Fixed build when ecore-x is not available Fixed module init from embedded interpreter Changes: Elm: Unify modules into a monolithic module Additions: elm.Configuration.transition_duration_factor elm.Window.autohide elm.ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN elm.Entry.callback_context_open_add/del elm.ELM_FOCUS_MOVE_POLICY_KEY_ONLY elm.Object.focus_move_policy elm.Scrollable.wheel_disabled evas.Textblock.obstacle_add evas.Textblock.obstacle_del evas.Textblock.obstacles_update evas.EVAS_CALLBACK_CANVA_VIEWPORT_RESIZE - Bindings updated to efl 1.14.X - Bindings updated to match efl 1.13.x - Bindings updated to match efl 1.12.x - bump to 1.11.0 ** Re enabled cython building ** No new features upstream just following efl changes - Disabled Cython with env var for this release as the upstream tar was broken. It was missing .pxd files this has been fixed for the next release. - bump to 1.10.0 (but missing any short changelog) - correct all provides and obsoletes - version 1.9.0 Release Notes: No major changes have been made since the last 1.8 release. All the new features of efl and elementary 1.9 has been ported and the usual has been done in fixing bugs and optimizing speed. (see **changes.html** in the tarball for the full list of changes) - change to use pkgconfig dependencies - beutify spec a bit - let there by python-efl! OBS-URL: https://build.opensuse.org/request/show/800863 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=12
2020-05-07 05:36:56 +00:00
%{_datadir}/python3-efl
%endif
%if !0%{?suse_version}
%files -n python-efl
%license AUTHORS COPYING*
%{python_sitearch}/*
%files -n python3-efl
%license AUTHORS COPYING*
%{python3_sitearch}/*
%endif
%changelog