[decibel-audio-player] decibel-audio-player-pil.patch

lzap lzap at fedoraproject.org
Tue Jan 15 13:22:51 UTC 2013


commit 376d406ac363bc54f14a6fd00de8c5fef0a93e3a
Author: Lukas Zapletal <lzap+git at redhat.com>
Date:   Tue Jan 15 14:22:14 2013 +0100

    decibel-audio-player-pil.patch

 decibel-audio-player-pil.patch |   22 ++++++++++++++++++++++
 decibel-audio-player.spec      |    7 ++++++-
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/decibel-audio-player-pil.patch b/decibel-audio-player-pil.patch
new file mode 100644
index 0000000..3d4ac16
--- /dev/null
+++ b/decibel-audio-player-pil.patch
@@ -0,0 +1,22 @@
+Index: decibel-audio-player-1.08/src/modules/Covers.py
+===================================================================
+--- decibel-audio-player-1.08.orig/src/modules/Covers.py
++++ decibel-audio-player-1.08/src/modules/Covers.py
+@@ -124,7 +124,7 @@ class Covers(modules.ThreadedModule):
+ 
+     def generateFullSizeCover(self, inFile, outFile, format):
+         """ Resize inFile if needed, and write it to outFile (outFile and inFile may be equal) """
+-        import Image
++        from PIL import Image
+ 
+         try:
+             # Open the image
+@@ -144,7 +144,7 @@ class Covers(modules.ThreadedModule):
+ 
+     def generateThumbnail(self, inFile, outFile, format):
+         """ Generate a thumbnail from inFile (e.g., resize it) and write it to outFile (outFile and inFile may be equal) """
+-        import Image
++        from PIL import Image
+ 
+         try:
+             # Open the image
diff --git a/decibel-audio-player.spec b/decibel-audio-player.spec
index 39b3c23..99b1a5b 100644
--- a/decibel-audio-player.spec
+++ b/decibel-audio-player.spec
@@ -1,11 +1,12 @@
 Summary:	Music player for GNOME
 Name:		decibel-audio-player
 Version:	1.08
-Release:	6%{?dist}
+Release:	7%{?dist}
 License:	GPLv2+
 Group:		Applications/Multimedia
 URL:		http://decibel.silent-blade.org/
 Source0:	http://decibel.silent-blade.org/uploads/Main/%{name}-%{version}.tar.gz
+Patch0: %{name}-pil.patch
 
 Requires:	dbus-python
 Requires:	gnome-python2-gnome
@@ -30,6 +31,7 @@ of the GStreamer library to read audio files.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # Suppress rpmlint error.
 sed --in-place --expression '1d' ./src/%{name}.py
@@ -96,6 +98,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/%{name}
 
 %changelog
+* Tue Jan 15 2013 Lukas Zapletal <lzap+rpm[@]redhat.com> - 1.08-7
+- PIL python library patch
+
 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.08-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list