[packages/python-gd] - fix building on x32 - rel 10

baggins baggins at pld-linux.org
Sat May 7 21:22:50 CEST 2016


commit 0aa205b473af164b0af12d7f7402a2f99b9f468e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:22:37 2016 +0200

    - fix building on x32
    - rel 10

 python-gd-libx32.patch | 13 +++++++++++++
 python-gd.spec         |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/python-gd.spec b/python-gd.spec
index b32c30e..ad01007 100644
--- a/python-gd.spec
+++ b/python-gd.spec
@@ -3,7 +3,7 @@ Summary:	Python interface to GD library
 Summary(pl.UTF-8):	Interfejs do biblioteki GD dla Pythona
 Name:		python-%{module}
 Version:	0.56
-Release:	9
+Release:	10
 Epoch:		1
 License:	BSD-like
 Group:		Development/Languages/Python
@@ -11,6 +11,7 @@ Group:		Development/Languages/Python
 Source0:	http://newcenturycomputers.net/projects/download.cgi/gdmodule-%{version}.tar.gz
 # Source0-md5:	6a6db28a089d4caf5a921cd266a62b3d
 Patch0:		%{name}-lib64.patch
+Patch1:		%{name}-libx32.patch
 URL:		http://newcenturycomputers.net/projects/gdmodule.html
 BuildRequires:	gd-devel >= 2.0.23
 BuildRequires:	python-devel >= 1.5
@@ -51,6 +52,9 @@ oryginalnej biblioteki GD.
 %if "%{_lib}" == "lib64"
 %patch0 -p1
 %endif
+%if "%{_lib}" == "libx32"
+%patch1 -p1
+%endif
 
 %{__mv} Setup.py setup.py
 
diff --git a/python-gd-libx32.patch b/python-gd-libx32.patch
new file mode 100644
index 0000000..03e2101
--- /dev/null
+++ b/python-gd-libx32.patch
@@ -0,0 +1,13 @@
+--- gdmodule-0.53/Setup.py.orig	2004-12-25 13:47:36.031571168 +0000
++++ gdmodule-0.53/Setup.py	2004-12-25 13:48:00.308880456 +0000
+@@ -40,8 +40,8 @@
+ # Unixoid OS's I will just look for the usual suspects.
+ 
+ libdirs = dirtest([
+-    "/usr/local/lib", "/sw/lib", "/usr/lib",
+-    "/usr/lib/X11", "/usr/X11R6/lib",
++    "/usr/local/libx32", "/sw/lib", "/usr/libx32",
++    "/usr/lib/X11", "/usr/X11R6/libx32",
+     "/opt/gnome/lib",
+ ])
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gd.git/commitdiff/0aa205b473af164b0af12d7f7402a2f99b9f468e



More information about the pld-cvs-commit mailing list