]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
python: Fix build.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Oct 2011 12:30:53 +0000 (14:30 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Oct 2011 12:30:53 +0000 (14:30 +0200)
Fixes #235.

python/python.nm

index dd4ea61bfb7ab415072a53d486d1094ced1ca22d..295f6dc8b9abbe4501019b733087ab582e2d30f8 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = python
 version    = 2.7.1
-release    = 3
+release    = 4
 thisapp    = Python-%{version}
 
 groups     = Development/Languages
@@ -44,7 +44,6 @@ build
        end
 
        export CFLAGS  += -D_GNU_SOURCE -fwrapv
-       export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
 
        prepare_cmds
                sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
@@ -59,6 +58,8 @@ build
        end
 
        build
+               export CPPFLAGS=$(pkg-config --cflags-only-I libffi)
+
                OPT="%{CFLAGS}" \
                        ./configure \
                                --prefix=/usr \
@@ -78,12 +79,11 @@ end
 
 packages
        package %{name}
-       end
-       
+
        package %{name}-devel
                template DEVEL
        
-               files =+ \
+               files += \
                        !/usr/lib/python*/config/Makefile \
                        !/usr/include/python*/pyconfig.h
        end