packages: python-ethumb/python-ethumb-update.patch (NEW), python-ethumb/pyt...

qboosh qboosh at pld-linux.org
Sun Jan 22 07:54:48 CET 2012


Author: qboosh                       Date: Sun Jan 22 06:54:48 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new; -update patch is only partial (disables one function which API changed)

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

---- Diffs:

================================================================
Index: packages/python-ethumb/python-ethumb-update.patch
diff -u /dev/null packages/python-ethumb/python-ethumb-update.patch:1.1
--- /dev/null	Sun Jan 22 07:54:48 2012
+++ packages/python-ethumb/python-ethumb-update.patch	Sun Jan 22 07:54:43 2012
@@ -0,0 +1,48 @@
+--- python-ethumb-0.7.3/include/ethumb/client.pxd.orig	2010-10-01 01:03:28.000000000 +0200
++++ python-ethumb-0.7.3/include/ethumb/client.pxd	2012-01-22 07:10:02.956174216 +0100
+@@ -23,9 +23,11 @@
+ 
+ cdef extern from "Ethumb_Client.h":
+     ctypedef struct Ethumb_Client
++    ctypedef struct Ethumb_Exists
+     ctypedef void (*Ethumb_Client_Connect_Cb)(void *data, Ethumb_Client *client, Eina_Bool success)
+     ctypedef void (*Ethumb_Client_Die_Cb)(void *data, Ethumb_Client *client)
+     ctypedef void (*Ethumb_Client_Generate_Cb)(void *data, Ethumb_Client *client, int id, char *file, char *key, char *thumb_path, char *thumb_key, Eina_Bool success)
++    ctypedef void (*Ethumb_Client_Thumb_Exists_Cb)(Ethumb_Client *client, Ethumb_Exists *thread, Eina_Bool exists, void *data)
+     ctypedef void (*Ethumb_Client_Generate_Cancel_Cb)(void *data, Eina_Bool success)
+     ctypedef void (*Eina_Free_Cb)(void *data)
+ 
+@@ -68,7 +70,9 @@
+ 
+     void ethumb_client_thumb_path_set(Ethumb_Client *client, char *path, char *key)
+     void ethumb_client_thumb_path_get(Ethumb_Client *client, char **path, char **key)
+-    Eina_Bool ethumb_client_thumb_exists(Ethumb_Client *client)
++    Ethumb_Exists *ethumb_client_thumb_exists(Ethumb_Client *client, Ethumb_Client_Thumb_Exists_Cb exists_cb, void *data)
++    void ethumb_client_thumb_exists_cancel(Ethumb_Exists *exists, Ethumb_Client_Thumb_Exists_Cb exists_cb, void *data)
++    Eina_Bool ethumb_client_thumb_exists_check(Ethumb_Exists *exists)
+     int ethumb_client_generate(Ethumb_Client *client, Ethumb_Client_Generate_Cb generated_cb, void *data, Eina_Free_Cb free_data)
+     void ethumb_client_generate_cancel(Ethumb_Client *client, int id, Ethumb_Client_Generate_Cancel_Cb cancel_cb, void *data, Eina_Free_Cb free_data)
+     void ethumb_client_generate_cancel_all(Ethumb_Client *client)
+--- python-ethumb-0.7.3/ethumb/ethumb.client.pyx.orig	2012-01-22 07:25:59.802872920 +0100
++++ python-ethumb-0.7.3/ethumb/ethumb.client.pyx	2012-01-22 07:36:52.716228115 +0100
+@@ -544,13 +544,14 @@
+     def document_page_set(self, int page):
+         ethumb_client_document_page_set(self.obj, page)
+ 
+-    def exists(self):
+-        """Checks if thumbnail already exists.
++    # XXX: now it's to be done in async way
++    #def exists(self):
++    #    """Checks if thumbnail already exists.
+ 
+-        If you want to avoid regenerating thumbnails, check if they
+-        already exist with this function.
+-        """
+-        return bool(ethumb_client_thumb_exists(self.obj))
++    #    If you want to avoid regenerating thumbnails, check if they
++    #    already exist with this function.
++    #    """
++    #    return bool(ethumb_client_thumb_exists(self.obj))
+ 
+     def generate(self, func, *args, **kargs):
+         """Ask EThumb server to generate the specified thumbnail.

================================================================
Index: packages/python-ethumb/python-ethumb.spec
diff -u /dev/null packages/python-ethumb/python-ethumb.spec:1.1
--- /dev/null	Sun Jan 22 07:54:48 2012
+++ packages/python-ethumb/python-ethumb.spec	Sun Jan 22 07:54:43 2012
@@ -0,0 +1,88 @@
+# $Revision$, $Date$
+Summary:	Python bindings for Ethumb library
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Ethumb
+Name:		python-ethumb
+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:	d5739237396d5cec434d5b4a9f39ce80
+Patch0:		%{name}-update.patch
+URL:		http://trac.enlightenment.org/e/wiki/Python
+BuildRequires:	ethumb-devel >= 0.1.1
+BuildRequires:	epydoc
+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:	ethumb-libs >= 0.1.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python bindings for Ethumb library.
+
+%description -l pl.UTF-8
+Wiązania Pythona do biblioteki Ethumb.
+
+%package devel
+Summary:	Python bindings for Ethumb library - development files
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki Ethumb - pliki programistyczne
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	ethumb-devel >= 0.1.0
+
+%description devel
+Python bindings for Ethumb library - development files.
+
+%description devel -l pl.UTF-8
+Wiązania Pythona do biblioteki Ethumb - 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}/ethumb/*.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}/ethumb
+%attr(755,root,root) %{py_sitedir}/ethumb/c_ethumb.so
+%attr(755,root,root) %{py_sitedir}/ethumb/client.so
+%{py_sitescriptdir}/ethumb
+%{_examplesdir}/%{name}-%{version}
+
+%files devel
+%defattr(644,root,root,755)
+%{_pkgconfigdir}/python-ethumb.pc
+%{_pkgconfigdir}/python-ethumb_client.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  2012/01/22 06:54:43  qboosh
+- new; -update patch is only partial (disables one function which API changed)
================================================================


More information about the pld-cvs-commit mailing list