]> git.pld-linux.org Git - packages/crossfire.git/commitdiff
- rel 9; fix python detection auto/th/crossfire-1_9_1-9
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 13 Feb 2011 09:46:54 +0000 (09:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    crossfire-python.patch -> 1.3
    crossfire.spec -> 1.55

crossfire-python.patch [new file with mode: 0644]
crossfire.spec

diff --git a/crossfire-python.patch b/crossfire-python.patch
new file mode 100644 (file)
index 0000000..a446c27
--- /dev/null
@@ -0,0 +1,29 @@
+--- crossfire-1.9.1/acinclude.m4~      2011-02-13 10:39:46.944104327 +0100
++++ crossfire-1.9.1/acinclude.m4       2011-02-13 10:42:41.044603409 +0100
+@@ -6,7 +6,7 @@
+       PY_INCLUDES=""
+       dir=""
+       if test "x$PYTHON_HOME" != "x"; then
+-              for pyver in "" 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
++              for pyver in "" 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
+                       dir=$PYTHON_HOME/include/python${pyver}
+                       AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes])
+                       if test "x$cf_have_python_h" != "x" ; then
+@@ -20,7 +20,7 @@
+                 PY_INCLUDES=""        
+               if test "x$cf_have_python_h" = "x"  ; then
+                       for ldir in  "" /local ; do
+-                      for pyver in  "" 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
++                      for pyver in  "" 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
+                               dir=/usr${ldir}/include/python${pyver}
+                               AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes])
+                               if test "x$cf_have_python_h" != "x" ; then
+@@ -67,7 +67,7 @@
+                       fi
+               else
+-                      for pyver in "" 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
++                      for pyver in "" 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 ; do
+                               AC_CHECK_LIB(python$pyver, PyArg_ParseTuple,[PYTHON_LIB="-lpython$pyver"])
+                               if test "x$PYTHON_LIB" != "x" ; then
+                                       break
index 82d42e5afa998e2d298e5ead8fab4c1640667fd5..9f50ed79e7d17ba5eb47d2d4f77bcfde3d538f7d 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Multiplayer roguelike game server
 Summary(pl.UTF-8):     Serwer gry roguelike dla wielu graczy
 Name:          crossfire
 Version:       1.9.1
-Release:       8
+Release:       9
 License:       GPL
 Group:         X11/Applications/Games
 Source0:       http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
@@ -13,6 +13,7 @@ Source3:      %{name}.logrotate
 Patch0:                %{name}-ac260.patch
 Patch1:                %{name}-check.patch
 Patch2:                %{name}-daemon.patch
+Patch3:                %{name}-python.patch
 URL:           http://crossfire.real-time.com/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -100,6 +101,7 @@ Wtyczka animacji dla serwera Crossfire.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
This page took 0.054932 seconds and 4 git commands to generate.