packages: python-evas/python-evas-cython.patch (NEW), python-evas/python-ev...

qboosh qboosh at pld-linux.org
Fri Dec 16 21:16:07 CET 2011


Author: qboosh                       Date: Fri Dec 16 20:16:07 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-evas:
   python-evas-cython.patch (NONE -> 1.1)  (NEW), python-evas.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-evas/python-evas-cython.patch
diff -u /dev/null packages/python-evas/python-evas-cython.patch:1.1
--- /dev/null	Fri Dec 16 21:16:07 2011
+++ packages/python-evas/python-evas-cython.patch	Fri Dec 16 21:16:02 2011
@@ -0,0 +1,42 @@
+--- python-evas-0.7.3/evas.orig/evas.c_evas_canvas.pxi	2010-10-01 01:03:46.000000000 +0200
++++ python-evas-0.7.3/evas/evas.c_evas_canvas.pxi	2011-12-16 20:42:13.254098609 +0100
+@@ -117,7 +117,7 @@
+            obscured_clear, render_updates, render, norender, freeze_get,
+            output_method_set, output_method_get, output_method
+     """
+-    def __new__(self, *a, **ka):
++    def __cinit__(self, *a, **ka):
+         self.obj = NULL
+         self._callbacks = [None] * evas_canvas_event_callbacks_len
+ 
+--- python-evas-0.7.3/evas.orig/evas.c_evas_object.pxi	2010-10-01 01:03:46.000000000 +0200
++++ python-evas-0.7.3/evas/evas.c_evas_object.pxi	2011-12-16 20:42:25.217432342 +0100
+@@ -217,7 +217,7 @@
+        anti_alias_set, anti_alias_get, anti_alias, pointer_mode_set,
+        pointer_mode_get, pointer_mode
+     """
+-    def __new__(self, *a, **ka):
++    def __cinit__(self, *a, **ka):
+         self.obj = NULL
+         self.evas = None
+         self.data = dict()
+--- python-evas-0.7.3/evas.orig/evas.c_evas_object_smart.pxi	2010-10-01 01:03:46.000000000 +0200
++++ python-evas-0.7.3/evas/evas.c_evas_object_smart.pxi	2011-12-16 20:45:23.880771658 +0100
+@@ -359,7 +359,7 @@
+ 
+     @see: L{ClippedSmartObject}
+     """
+-    def __new__(self, *a, **ka):
++    def __cinit__(self, *a, **ka):
+         self._smart_callbacks = dict()
+         cls = self.__class__
+         self._m_delete = _smart_class_get_impl_method(cls, "delete")
+@@ -501,7 +501,7 @@
+                 break
+         else:
+             raise ValueError("Callback %s was not registered with event %r" %
+-                             (func, e))
++                             (func, event))
+ 
+         lst.pop(i)
+         if lst:

================================================================
Index: packages/python-evas/python-evas.spec
diff -u /dev/null packages/python-evas/python-evas.spec:1.1
--- /dev/null	Fri Dec 16 21:16:07 2011
+++ packages/python-evas/python-evas.spec	Fri Dec 16 21:16:02 2011
@@ -0,0 +1,90 @@
+# $Revision$, $Date$
+Summary:	Python bindings for Evas library
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Evas
+Name:		python-evas
+Version:	0.7.3
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Languages/Python
+Source0:	http://download.enlightenment.org/releases/BINDINGS/python/%{name}-%{version}.tar.bz2
+# Source0-md5:	5dc6ef5a1b5cd3ece27e6f6f96f46f42
+Patch0:		%{name}-cython.patch
+URL:		http://trac.enlightenment.org/e/wiki/Python
+BuildRequires:	eina-devel >= 1.0.0
+BuildRequires:	epydoc
+BuildRequires:	evas-devel >= 1.0.0
+BuildRequires:	python-Cython >= 0.13
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	pkgconfig >= 1:0.22
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	eina >= 1.0.0
+Requires:	evas >= 1.0.0
+Requires:	python-libs
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for Evas library.
+
+%description -l pl.UTF-8
+Wiązania Pythona do biblioteki Evas.
+
+%package devel
+Summary:	Python bindings for Evas library - development files
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Evas - pliki programistyczne
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	evas-devel >= 1.0.0
+
+%description devel
+Python bindings for Evas library - development files.
+
+%description devel -l pl.UTF-8
+Wiązania Pythona do biblioteki Evas - pliki programistyczne.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+	--disable-silent-rules
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%py_postclean
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/evas/c_evas.la
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+mv $RPM_BUILD_ROOT%{_datadir}/%{name}/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%dir %{py_sitedir}/evas
+%attr(755,root,root) %{py_sitedir}/evas/c_evas.so
+%{py_sitescriptdir}/evas
+%{_examplesdir}/%{name}-%{version}
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/python-evas
+%{_pkgconfigdir}/python-evas.pc
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/16 20:16:02  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list