From 0ca9a42eb1c9f2f11811350b00e90ffa24a545bbfdffacbafe615e6ffd601a74 Mon Sep 17 00:00:00 2001 From: Simon Lees Date: Tue, 10 Oct 2017 00:39:43 +0000 Subject: [PATCH] Accepting request 532114 from home:awissu:branches:X11:Enlightenment:Factory - 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 OBS-URL: https://build.opensuse.org/request/show/532114 OBS-URL: https://build.opensuse.org/package/show/X11:Enlightenment:Factory/python-efl?expand=0&rev=1 --- .gitattributes | 24 ++++++ .gitignore | 4 + _constraints | 14 ++++ python-efl-1.20.0.tar.xz | 3 + python-efl.changes | 137 ++++++++++++++++++++++++++++++++ python-efl.spec | 164 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 346 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _constraints create mode 100644 python-efl-1.20.0.tar.xz create mode 100644 python-efl.changes create mode 100644 python-efl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..d1a7e3b --- /dev/null +++ b/_constraints @@ -0,0 +1,14 @@ + + + + + 20 + + + 6 + + + 4 + + + diff --git a/python-efl-1.20.0.tar.xz b/python-efl-1.20.0.tar.xz new file mode 100644 index 0000000..6d5d692 --- /dev/null +++ b/python-efl-1.20.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70de0ee3fabe1e91da5aa0ca09dd908b62dbbeb5fce86ec194b8793967c30ea3 +size 8984492 diff --git a/python-efl.changes b/python-efl.changes new file mode 100644 index 0000000..ba02639 --- /dev/null +++ b/python-efl.changes @@ -0,0 +1,137 @@ +------------------------------------------------------------------- +Wed Oct 4 21:51:44 UTC 2017 - avvissu@yandex.by + +- 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 + +------------------------------------------------------------------- +Tue Sep 5 09:25:42 UTC 2017 - sflees@suse.de + +- i586 builds are working again, reenable them +- update the efl version requirement to be correct + +------------------------------------------------------------------- +Wed Aug 23 00:44:16 UTC 2017 - sflees@suse.de + +- Sync with efl 1.20 + +------------------------------------------------------------------- +Tue Jun 27 13:07:06 UTC 2017 - lnussel@suse.de + +- Exclude x86, cc1 uses too much memory atm + +------------------------------------------------------------------- +Thu Jun 22 08:39:03 UTC 2017 - sflees@suse.de + +- Add a _constraints file to fix out of mem issues + +------------------------------------------------------------------- +Wed May 17 03:15:04 UTC 2017 - sflees@suse.de + +- Update to 1.19.0 + * changes in line with 1.19.X changes in efl + +------------------------------------------------------------------- +Wed Aug 31 05:57:39 UTC 2016 - sflees@suse.de + +- Another attempt at python3 - Removes python2 support + +------------------------------------------------------------------- +Sat Nov 14 20:11:42 UTC 2015 - simon@simotek.net + +- 1.16.0 pre release will add full changes with release + +------------------------------------------------------------------- +Fri Aug 21 11:47:45 UTC 2015 - simon@simotek.net + +- Add COPYING.* AUTHORS to package + +------------------------------------------------------------------- +Sat Aug 15 23:14:25 UTC 2015 - simon@simotek.net + +- 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 + + +------------------------------------------------------------------- +Thu May 7 11:18:59 UTC 2015 - simon@simotek.net + +- Bindings updated to efl 1.14.X + +------------------------------------------------------------------- +Mon Feb 16 01:18:18 UTC 2015 - simon@simotek.net + +- Bindings updated to match efl 1.13.x + +------------------------------------------------------------------- +Fri Jan 9 05:14:00 UTC 2015 - simon@simotek.net + +- Bindings updated to match efl 1.12.x + +------------------------------------------------------------------- +Tue Sep 16 04:47:41 UTC 2014 - simon@simotek.net + +- bump to 1.11.0 + ** Re enabled cython building ** + + No new features upstream just following efl changes + +------------------------------------------------------------------- +Mon Aug 18 06:13:17 UTC 2014 - simon@simotek.net + +- 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. + +------------------------------------------------------------------- +Sun Jun 1 20:42:02 UTC 2014 - sleep_walker@suse.cz + +- bump to 1.10.0 (but missing any short changelog) +- correct all provides and obsoletes + +------------------------------------------------------------------- +Wed Apr 9 02:20:26 UTC 2014 - simon@simotek.net + +- 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) + +------------------------------------------------------------------- +Tue Dec 17 00:23:57 UTC 2013 - sleep_walker@suse.cz + +- change to use pkgconfig dependencies +- beutify spec a bit + +------------------------------------------------------------------- +Mon Dec 9 15:39:20 UTC 2013 - sleep_walker@suse.cz + +- let there by python-efl! + diff --git a/python-efl.spec b/python-efl.spec new file mode 100644 index 0000000..b68fb52 --- /dev/null +++ b/python-efl.spec @@ -0,0 +1,164 @@ +# +# spec file for package python-efl +# +# 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 +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-efl +Version: 1.20.0 +Release: 0 +Summary: Python bindings of evas +License: GPL-3.0 and LGPL-3.0 +Group: Development/Libraries/Python +Url: http://enlightenment.org +Source: https://download.enlightenment.org/rel/bindings/python/%{name}-%{version}.tar.xz +BuildRequires: pkgconfig +BuildRequires: pkgconfig(ecore) +BuildRequires: pkgconfig(edje) +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(emotion) +BuildRequires: pkgconfig(eo) +BuildRequires: pkgconfig(evas) +BuildRequires: dbus-1-python-devel +BuildRequires: dbus-1-python3-devel +BuildRequires: python-cython +BuildRequires: python3-Cython +BuildRequires: %{python_module devel} +# 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/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} +%package doc +Summary: Documentation for python-efl +Group: Documentation/HTML +BuildRequires: %{python_module Sphinx} + +%description doc +HTML formated documentation for python-efl module. + +%package examples +Summary: Examples of python-efl usage +Group: Documentation/Other + +%description examples +Some examples of usage of python-efl. +%endif + +%prep +%setup -q +# drop build date from doc to fix build-compare +sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" ./doc/conf.py + +%build +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} +%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} +for _name in python-efl python3-efl; do + install -m 0755 -d "%{buildroot}/%{_docdir}/$_name" + cp -R build/sphinx/html "%{buildroot}/%{_docdir}/$_name" + rm "%{buildroot}/%{_docdir}/$_name"/html/.buildinfo +done + +%python_expand %fdupes %{buildroot}%{_docdir} +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +# 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 + cp -pr COPYING %{buildroot}/%{_docdir}/$_name/ + cp -pr COPYING.LESSER %{buildroot}/%{_docdir}/$_name/ + cp -pr AUTHORS %{buildroot}/%{_docdir}/$_name/ +done +%endif + +%if 0%{?suse_version} +%files %{python_files} +%{python_sitearch}/* +%{_docdir}/%{name}/ +%exclude %{_docdir}/%{name}/html/ + +%files %{python_files doc} +%{_docdir}/%{name}/html/ + +%files %{python_files examples} +%{_datadir}/%{name} +%endif + +%if !0%{?suse_version} +%files -n python-efl +%doc AUTHORS COPYING* +%{python_sitearch}/* + +%files -n python3-efl +%doc AUTHORS COPYING* +%{python3_sitearch}/* +%endif + +%changelog