[memaker] Patch to support Pillow for F19
Ankur Sinha
ankursinha at fedoraproject.org
Wed Jan 30 06:12:41 UTC 2013
commit 362a14a3fd4cb2d5fd45bd49d3e260e80f88f825
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur at gmail.com>
Date: Wed Jan 30 17:11:48 2013 +1100
Patch to support Pillow for F19
https://bugzilla.redhat.com/show_bug.cgi?id=895289
memaker-pillow.patch | 26 ++++++++++++++++++++++++++
memaker.spec | 8 +++++++-
2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/memaker-pillow.patch b/memaker-pillow.patch
new file mode 100644
index 0000000..6711e69
--- /dev/null
+++ b/memaker-pillow.patch
@@ -0,0 +1,26 @@
+Index: memaker/MeMaker/app.py
+===================================================================
+--- memaker.orig/MeMaker/app.py
++++ memaker/MeMaker/app.py
+@@ -47,7 +47,7 @@ from view.libpurple import MeMakerPidgin
+ from version import VERSION
+
+ try:
+- import Image
++ from PIL import Image
+ except ImportError:
+ notifier= pynotify.init("MeMaker Modules")
+ notifier = pynotify.Notification(("Recommended Module Not Found"),
+Index: memaker/MeMaker/utils/image_loader.py
+===================================================================
+--- memaker.orig/MeMaker/utils/image_loader.py
++++ memaker/MeMaker/utils/image_loader.py
+@@ -18,7 +18,7 @@
+ # If not, see <http://www.gnu.org/licenses/>.
+
+ import os
+-import Image
++from PIL import Image
+ import gtk
+ #import StringIO
+ import pickle
diff --git a/memaker.spec b/memaker.spec
index 70c906c..7abf93f 100644
--- a/memaker.spec
+++ b/memaker.spec
@@ -5,7 +5,7 @@
Name: memaker
Version: 20100110
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: An avatar creator
Group: Amusements/Graphics
@@ -16,6 +16,7 @@ URL: https://launchpad.net/memaker
#
# bzr branch lp:memaker && tar -czvf memaker-20100110-bzr.tar.gz memaker
Source0: %{name}-%{version}-bzr.tar.gz
+Patch0: %{name}-pillow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -35,6 +36,7 @@ in the image itself.
%prep
%setup -q -n %{name}
+%patch0 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
@@ -102,6 +104,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Wed Jan 30 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 20100110-5
+- Add patch for Pillow. Thanks Toshio.
+- rhbz #895289
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20100110-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list