rpms/python-imaging/devel python-imaging-giftrans.patch, 1.2, 1.3 python-imaging.spec, 1.8, 1.9

José Abílio Oliveira Matos (jamatos) fedora-extras-commits at redhat.com
Tue Apr 4 10:33:30 UTC 2006


Author: jamatos

Update of /cvs/extras/rpms/python-imaging/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3105

Modified Files:
	python-imaging.spec 
Added Files:
	python-imaging-giftrans.patch 
Log Message:
* Tue Apr  4 2006 José Matos <jamatos at fc.up.pt> - 1.1.5-4
- Rebuild


python-imaging-giftrans.patch:

Index: python-imaging-giftrans.patch
===================================================================
RCS file: python-imaging-giftrans.patch
diff -N python-imaging-giftrans.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ python-imaging-giftrans.patch	4 Apr 2006 10:33:30 -0000	1.3
@@ -0,0 +1,17 @@
+See http://bugs.debian.org/159693
+
+diff -Naru Imaging-1.1.4.orig/PIL/GifImagePlugin.py Imaging-1.1.4/PIL/GifImagePlugin.py
+--- Imaging-1.1.4.orig/PIL/GifImagePlugin.py	2003-05-06 23:44:16.000000000 +0300
++++ Imaging-1.1.4/PIL/GifImagePlugin.py	2004-10-09 21:12:12.635957206 +0300
+@@ -346,6 +346,11 @@
+         for i in range(maxcolor):
+             s.append(chr(i) * 3)
+ 
++    if im.info.has_key('transparency'):
++        transparentIndex = im.info['transparency']
++        s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) +
++                 chr(transparentIndex) + chr(0))
++
+     return s
+ 
+ def getdata(im, offset = (0, 0), **params):


Index: python-imaging.spec
===================================================================
RCS file: /cvs/extras/rpms/python-imaging/devel/python-imaging.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- python-imaging.spec	2 Apr 2006 21:44:44 -0000	1.8
+++ python-imaging.spec	4 Apr 2006 10:33:30 -0000	1.9
@@ -5,13 +5,14 @@
 Summary: Python's own image processing library
 Name: python-imaging
 Version: 1.1.5
-Release: 2%{?dist}
+Release: 4%{?dist}
 
 License: Distributable
 Group: Development/Languages
 Source0: http://effbot.org/downloads/Imaging-%{version}.tar.gz
 Patch0: %{name}-no-xv.patch
 Patch1: %{name}-lib64.patch
+Patch2: %{name}-giftrans.patch
 URL: http://www.pythonware.com/products/pil/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -50,6 +51,7 @@
 %setup -q -n Imaging-%{version}
 %patch0 -p1
 %patch1 -p0
+%patch2 -p1
 
 # fix the interpreter path for Scripts/*.py
 cd Scripts
@@ -104,6 +106,12 @@
 
 
 %changelog
+* Tue Apr  4 2006 José Matos <jamatos at fc.up.pt> - 1.1.5-4
+- Rebuild
+
+* Tue Apr  4 2006 José Matos <jamatos at fc.up.pt> - 1.1.5-3
+- Restore gif transparency patch. (bug #187875)
+
 * Sun Apr  2 2006 José Matos <jamatos at fc.up.pt> - 1.1.5-2
 - Fix bug #185203 (Thanks to Rick L Vinyard Jr)
 




More information about the fedora-extras-commits mailing list