[packages/python3-efl] - 1.26.1

baggins baggins at pld-linux.org
Tue Oct 15 02:25:27 CEST 2024


commit af8312e5e280176306c46c2a517a0aebb32506bf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Oct 15 00:32:10 2024 +0200

    - 1.26.1

 python-efl-cython.patch |  39 ------
 python-efl.spec         | 321 ------------------------------------------------
 python3-efl.spec        | 114 +++++++++++++++++
 3 files changed, 114 insertions(+), 360 deletions(-)
---
diff --git a/python-efl.spec b/python-efl.spec
deleted file mode 100644
index 8636041..0000000
--- a/python-efl.spec
+++ /dev/null
@@ -1,321 +0,0 @@
-%define		efl_ver		1.10.0
-%define		ecore_ver	%{efl_ver}
-%define		edje_ver	%{efl_ver}
-%define		eina_ver	%{efl_ver}
-%define		emotion_ver	%{efl_ver}
-%define		eo_ver		%{efl_ver}
-%define		ethumb_ver	%{efl_ver}
-%define		evas_ver	%{efl_ver}
-%define		elementary_ver	1.10.0
-%define		py_dbus_ver	0.83.0
-
-Summary:	Python bindings for Enlightenment Foundation Libraries
-Summary(pl.UTF-8):	Wiązania Pythona do bibliotek EFL (Enlightenment Foundation Libraries)
-Name:		python-efl
-Version:	1.10.1
-Release:	4
-License:	LGPL v3+
-Group:		Development/Languages/Python
-Source0:	http://download.enlightenment.org/rel/bindings/python/%{name}-%{version}.tar.bz2
-# Source0-md5:	5f95d3ee5c4bb2a1a616d44d0cc5f0d0
-Patch0:		%{name}-cython.patch
-URL:		http://trac.enlightenment.org/e/wiki/Python
-BuildRequires:	python-dbus-devel >= %{py_dbus_ver}
-BuildRequires:	ecore-devel >= %{ecore_ver}
-BuildRequires:	ecore-file-devel >= %{ecore_ver}
-BuildRequires:	ecore-input-devel >= %{ecore_ver}
-BuildRequires:	ecore-x-devel >= %{ecore_ver}
-BuildRequires:	edje-devel >= %{edje_ver}
-BuildRequires:	eina-devel >= %{eina_ver}
-BuildRequires:	elementary-devel >= %{elementary_ver}
-BuildRequires:	emotion-devel >= %{emotion_ver}
-BuildRequires:	eo-devel >= %{eo_ver}
-BuildRequires:	ethumb-devel >= %{ethumb_ver}
-BuildRequires:	evas-devel >= %{evas_ver}
-BuildRequires:	pkgconfig
-# when using *.pyx sources, not pregenerated *.c
-#BuildRequires:	python-Cython >= 0.19
-BuildRequires:	python-Sphinx
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-EFL is a collection of libraries for handling many common tasks a
-developer man have such as data structures, communication, rendering,
-widgets and more. PYTHON-EFL are the Python bindings for EFL and
-Elementary.
-
-%description -l pl.UTF-8
-EFL to zbiór bibliotek do obsługi wielu częstych zadań programisty,
-takich jak struktury danych, komunikacja, renderowanie, widgety itp.
-PYTHON-EFL to wiązania Pythona do bibliotek EFL i Elementary.
-
-%package base
-Summary:	Python bindings for Enlightenment Foundation Libraries - base common part
-Summary(pl.UTF-8):	Wiązania Pythona do bibliotek EFL - wspólna część podstawowa
-Group:		Development/Languages/Python
-Requires:	eina >= %{eina_ver}
-Requires:	eo >= %{eina_ver}
-
-%description base
-Python bindings for Enlightenment Foundation Libraries - base common
-part:
-- Eo library binding
-- efl.utils modules
-
-%description base
-Wiązania Pythona do bibliotek EFL (Enlightenment Foundation Libraries)
-- wspólna część podstawowa:
-- wiązanie do biblioteki Eo
-- moduły efl.utils
-
-%package examples
-Summary:	Examples for PYTHON-EFL bindings
-Summary(pl.UTF-8):	Przykłady do wiązań PYTHON-EFL
-Group:		Development/Libraries
-Requires:	python-dbus >= %{py_dbus_ver}
-Requires:	python-e_dbus = %{version}-%{release}
-Requires:	python-ecore = %{version}-%{release}
-Requires:	python-ecore-x = %{version}-%{release}
-Requires:	python-edje = %{version}-%{release}
-Requires:	python-elementary = %{version}-%{release}
-Requires:	python-emotion = %{version}-%{release}
-Requires:	python-evas = %{version}-%{release}
-
-%description examples
-Examples for PYTHON-EFL bindings.
-
-%description examples -l pl.UTF-8
-Przykłady do wiązań PYTHON-EFL.
-
-%package -n python-e_dbus
-Summary:	D-Bus Python integration for Ecore main loop
-Summary(pl.UTF-8):	Integracja Python i DBus z główną pętlą Ecore
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	ecore >= %{ecore_ver}
-Obsoletes:	python-e_dbus < 1.8.0
-Obsoletes:	python-e_dbus-devel < 1.8.0
-
-%description -n python-e_dbus
-D-Bus Python integration for Ecore main loop. There is also e_dbus
-API provided for compatibility with EFL 1.7.0 bindings.
-
-%description -n python-e_dbus -l pl.UTF-8
-Integracja Python i DBus z główną pętlą Ecore. Dołączone jest także
-API e_dbus dla kompatybilności z wiązaniami EFL 1.7.0.
-
-%package -n python-ecore
-Summary:	Python bindings for Ecore library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Ecore
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	ecore >= %{ecore_ver}
-Requires:	ecore-file >= %{ecore_ver}
-Obsoletes:	python-ecore-devel < 1.8.0
-Obsoletes:	python-ecore-evas < 1.8.0
-Obsoletes:	python-ecore-evas-devel < 1.8.0
-Obsoletes:	python-ecore-file < 1.8.0
-Obsoletes:	python-ecore-file-devel < 1.8.0
-Obsoletes:	python-ecore-imf < 1.8.0
-Obsoletes:	python-ecore-imf-devel < 1.8.0
-
-%description -n python-ecore
-Python bindings for Ecore library.
-
-%description -n python-ecore -l pl.UTF-8
-Wiązania Pythona do biblioteki Ecore.
-
-%package -n python-ecore-x
-Summary:	Python bindings for Ecore X library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Ecore X
-Group:		Development/Languages/Python
-Requires:	python-ecore = %{version}-%{release}
-Requires:	ecore-input >= %{ecore_ver}
-Requires:	ecore-x >= %{ecore_ver}
-Obsoletes:	python-ecore-x-devel < 1.8.0
-
-%description -n python-ecore-x
-Python bindings for Ecore X library.
-
-%description -n python-ecore-x -l pl.UTF-8
-Wiązania Pythona do biblioteki Ecore X.
-
-%package -n python-edje
-Summary:	Python bindings for Edje library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Edje
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	edje-libs >= %{edje_ver}
-Requires:	eina >= %{eina_ver}
-Obsoletes:	python-edje-devel < 1.8.0
-
-%description -n python-edje
-Python bindings for Edje library.
-
-%description -n python-edje -l pl.UTF-8
-Wiązania Pythona do biblioteki Edje.
-
-%package -n python-elementary
-Summary:	Python bindings for Elementary library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Elementary
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	eina >= %{eina_ver}
-Requires:	elementary-libs >= %{elementary_ver}
-Requires:	evas >= %{evas_ver}
-Obsoletes:	python-elementary-devel < 1.8.0
-
-%description -n python-elementary
-Python bindings for Elementary library.
-
-%description -n python-elementary -l pl.UTF-8
-Wiązania Pythona do biblioteki Elementary.
-
-%package -n python-emotion
-Summary:	Python bindings for Emotion library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Emotion
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	emotion >= %{emotion_ver}
-Requires:	evas >= %{evas_ver}
-Obsoletes:	python-emotion-devel < 1.8.0
-
-%description -n python-emotion
-Python bindings for Emotion library.
-
-%description -n python-emotion -l pl.UTF-8
-Wiązania Pythona do biblioteki Emotion.
-
-%package -n python-ethumb
-Summary:	Python bindings for Ethumb library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Ethumb
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	ethumb-libs >= %{ethumb_ver}
-Obsoletes:	python-ethumb-devel < 1.8.0
-
-%description -n python-ethumb
-Python bindings for Ethumb library.
-
-%description -n python-ethumb -l pl.UTF-8
-Wiązania Pythona do biblioteki Ethumb.
-
-%package -n python-evas
-Summary:	Python bindings for Evas library
-Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Evas
-Group:		Development/Languages/Python
-Requires:	%{name}-base = %{version}-%{release}
-Requires:	eina >= %{eina_ver}
-Requires:	evas >= %{evas_ver}
-Obsoletes:	python-evas-devel < 1.8.0
-
-%description -n python-evas
-Python bindings for Evas library.
-
-%description -n python-evas -l pl.UTF-8
-Wiązania Pythona do biblioteki Evas.
-
-%prep
-%setup -q
-%patch0 -p1
-
-%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' \
-	examples/dbus/*.py \
-	examples/elementary/*.py \
-	examples/emotion/*.py \
-
-%build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-DISABLE_CYTHON=1 \
-%py_build
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-DISABLE_CYTHON=1 \
-%py_install
-
-%py_postclean
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files base
-%defattr(644,root,root,755)
-%doc AUTHORS README.rst changes.html
-%dir %{py_sitedir}/efl
-%{py_sitedir}/efl/__init__.py[co]
-%attr(755,root,root) %{py_sitedir}/efl/eo.so
-%dir %{py_sitedir}/efl/utils
-%{py_sitedir}/efl/utils/__init__.py[co]
-%attr(755,root,root) %{py_sitedir}/efl/utils/*.so
-%{py_sitedir}/python_efl-%{version}-py*.egg-info
-
-%files examples
-%defattr(644,root,root,755)
-%dir %{_examplesdir}/%{name}-%{version}
-%dir %{_examplesdir}/%{name}-%{version}/dbus
-%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/dbus/*.py
-%dir %{_examplesdir}/%{name}-%{version}/ecore
-%dir %{_examplesdir}/%{name}-%{version}/ecore/x
-%{_examplesdir}/%{name}-%{version}/ecore/x/*.py
-%dir %{_examplesdir}/%{name}-%{version}/elementary
-%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/elementary/test.py
-%{_examplesdir}/%{name}-%{version}/elementary/test_*.py
-%{_examplesdir}/%{name}-%{version}/elementary/*.edc
-%{_examplesdir}/%{name}-%{version}/elementary/*.edj
-%{_examplesdir}/%{name}-%{version}/elementary/images
-%dir %{_examplesdir}/%{name}-%{version}/emotion
-%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/emotion/test_emotion.py
-%{_examplesdir}/%{name}-%{version}/emotion/theme.edj
-
-%files -n python-e_dbus
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/dbus_mainloop.so
-%{py_sitedir}/e_dbus
-
-%files -n python-ecore
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/efl/ecore
-%attr(755,root,root) %{py_sitedir}/efl/ecore/__init__.so
-%{py_sitedir}/efl/ecore/__init__.py[co]
-%{py_sitedir}/ecore
-
-%files -n python-ecore-x
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/ecore/x.so
-
-%files -n python-edje
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/edje.so
-%attr(755,root,root) %{py_sitedir}/efl/edje_edit.so
-%{py_sitedir}/edje
-
-%files -n python-elementary
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/efl/elementary
-%{py_sitedir}/efl/elementary/__init__.py[co]
-%attr(755,root,root) %{py_sitedir}/efl/elementary/*.so
-%{py_sitedir}/elementary
-
-%files -n python-emotion
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/emotion.so
-%{py_sitedir}/emotion
-
-%files -n python-ethumb
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/ethumb.so
-%attr(755,root,root) %{py_sitedir}/efl/ethumb_client.so
-
-%files -n python-evas
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/efl/evas.so
-%{py_sitedir}/evas
diff --git a/python3-efl.spec b/python3-efl.spec
new file mode 100644
index 0000000..aa40a89
--- /dev/null
+++ b/python3-efl.spec
@@ -0,0 +1,114 @@
+%define		py_dbus_ver	0.83.0
+
+Summary:	Python bindings for Enlightenment Foundation Libraries
+Summary(pl.UTF-8):	Wiązania Pythona do bibliotek EFL (Enlightenment Foundation Libraries)
+Name:		python3-efl
+Version:	1.26.1
+Release:	0.1
+License:	LGPL v3+
+Group:		Development/Languages/Python
+Source0:	http://download.enlightenment.org/rel/bindings/python/python-efl-%{version}.tar.xz
+# Source0-md5:	7305bf32704d478330d2571bac5bdccd
+URL:		http://trac.enlightenment.org/e/wiki/Python
+BuildRequires:	python-dbus-devel >= %{py_dbus_ver}
+BuildRequires:	efl-devel >= 1.27.0
+BuildRequires:	pkgconfig
+BuildRequires:	python3-Cython >= 0.19
+BuildRequires:	python3-Sphinx
+BuildRequires:	python3-devel >= 1:2.7
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.710
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+EFL is a collection of libraries for handling many common tasks a
+developer man have such as data structures, communication, rendering,
+widgets and more. PYTHON-EFL are the Python bindings for EFL and
+Elementary.
+
+%description -l pl.UTF-8
+EFL to zbiór bibliotek do obsługi wielu częstych zadań programisty,
+takich jak struktury danych, komunikacja, renderowanie, widgety itp.
+PYTHON-EFL to wiązania Pythona do bibliotek EFL i Elementary.
+
+%package examples
+Summary:	Examples for PYTHON-EFL bindings
+Summary(pl.UTF-8):	Przykłady do wiązań PYTHON-EFL
+Group:		Development/Libraries
+Requires:	python-dbus >= %{py_dbus_ver}
+Requires:	python3-efl = %{version}-%{release}
+
+%description examples
+Examples for PYTHON-EFL bindings.
+
+%description examples -l pl.UTF-8
+Przykłady do wiązań PYTHON-EFL.
+
+%prep
+%setup -q -n python-efl-%{version}
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\1,' \
+      examples/dbus/*.py \
+      examples/ecore/con/*.py \
+      examples/ecore/input/*.py \
+      examples/ecore/x/*.py \
+      examples/elementary/*.py \
+      examples/emotion/*.py \
+      examples/ethumb/*.py
+
+%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog
+%dir %{py3_sitedir}/efl
+%{py3_sitedir}/efl/*.py
+%{py3_sitedir}/efl/__pycache__
+%attr(755,root,root) %{py3_sitedir}/efl/*.so
+%dir %{py3_sitedir}/efl/utils
+%{py3_sitedir}/efl/utils/*.py
+%{py3_sitedir}/efl/utils/__pycache__
+%attr(755,root,root) %{py3_sitedir}/efl/utils/*.so
+%{py3_sitedir}/python_efl-%{version}-py*.egg-info
+%dir %{py3_sitedir}/efl/elementary
+%{py3_sitedir}/efl/elementary/*.py
+%{py3_sitedir}/efl/elementary/__pycache__
+%attr(755,root,root) %{py3_sitedir}/efl/elementary/*.so
+
+%files examples
+%defattr(644,root,root,755)
+%dir %{_examplesdir}/%{name}-%{version}
+%dir %{_examplesdir}/%{name}-%{version}/dbus
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/dbus/*.py
+%dir %{_examplesdir}/%{name}-%{version}/ecore
+%dir %{_examplesdir}/%{name}-%{version}/ecore/con
+%{_examplesdir}/%{name}-%{version}/ecore/con/*.py
+%dir %{_examplesdir}/%{name}-%{version}/ecore/input
+%{_examplesdir}/%{name}-%{version}/ecore/input/*.py
+%dir %{_examplesdir}/%{name}-%{version}/ecore/x
+%{_examplesdir}/%{name}-%{version}/ecore/x/*.py
+%dir %{_examplesdir}/%{name}-%{version}/elementary
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/elementary/test.py
+%{_examplesdir}/%{name}-%{version}/elementary/test_*.py
+%{_examplesdir}/%{name}-%{version}/elementary/*.edc
+%{_examplesdir}/%{name}-%{version}/elementary/*.edj
+%{_examplesdir}/%{name}-%{version}/elementary/images
+%dir %{_examplesdir}/%{name}-%{version}/emotion
+%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/emotion/test_emotion.py
+%{_examplesdir}/%{name}-%{version}/emotion/theme.edj
+%dir %{_examplesdir}/%{name}-%{version}/ethumb
+%{_examplesdir}/%{name}-%{version}/ethumb/*.py
diff --git a/python-efl-cython.patch b/python-efl-cython.patch
deleted file mode 100644
index 6fa646d..0000000
--- a/python-efl-cython.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- python-efl-1.10.1/efl/ecore/efl.ecore_events.pxi.orig	2014-05-20 21:50:41.000000000 +0200
-+++ python-efl-1.10.1/efl/ecore/efl.ecore_events.pxi	2015-10-18 16:42:20.015506777 +0200
-@@ -301,7 +301,7 @@
- 
- 
- cdef class CustomEvent(Event):
--    cdef int _set_obj(self, void *obj):
-+    cdef int _set_obj(self, void *obj) except 0:
-         self.obj = <object>obj
-         return 1
- 
-@@ -328,14 +328,14 @@
-         self._set_obj(ecore_event_add(type, <void *>self.args, _event_free_cb,
-                       <void*>self))
- 
--    cdef int _set_obj(self, Ecore_Event *ev):
-+    cdef int _set_obj(self, Ecore_Event *ev) except 0:
-         assert self.obj == NULL, "Object must be clean"
-         assert ev != NULL, "Cannot set NULL as object"
-         self.obj = ev
-         Py_INCREF(self)
-         return 1
- 
--    cdef int _unset_obj(self):
-+    cdef int _unset_obj(self) except 0:
-         if self.obj != NULL:
-             self.obj = NULL
-             self.args = None
---- python-efl-1.10.1/efl/ecore/x.pxd.orig	2014-08-18 08:18:36.000000000 +0200
-+++ python-efl-1.10.1/efl/ecore/x.pxd	2015-10-18 17:04:57.242145154 +0200
-@@ -1310,7 +1310,7 @@
- cdef class Window:
-     cdef readonly Ecore_X_Window xid
- 
--    cdef int _set_xid(self, Ecore_X_Window xid)
-+    cdef int _set_xid(self, Ecore_X_Window xid) except 0
- 
- 
- cdef class EventKey(Event):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-efl.git/commitdiff/af8312e5e280176306c46c2a517a0aebb32506bf



More information about the pld-cvs-commit mailing list