root/packaging/centuryegg/build-matplotlib-rpm

Revision 12470, 1.7 KB (checked in by build, 16 months ago)

Move all Python versioning to two evironment variables

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:mime-type set to text/plain
  • Property svn:mimetype set to text/plain
Line 
1#!/bin/bash
2if [ "$BUILD_NEW_PYTHON" != "true" ] && [ "x`yum search python-matplotlib | grep python-matplotlib`" != "x" ]
3then
4    sudo yum -y install python-matplotlib
5    exit
6fi
7if [ "x`rpm -qa numpy$PYTHON_SUFFIX`" == "x" ]
8then
9    sudo rpm -Uvh rpms/numpy$PYTHON_SUFFIX*
10fi
11if [ "x`rpm -qa libglade2-devel`" == "x" ]
12then
13    sudo yum -y install libglade2-devel
14fi
15./find-srpms python-numeric || exit 1
16./find-srpms python-numarray || exit 1
17if [ "x`rpm -qa python$PYTHON_SUFFIX-numeric`" == "x" ]
18then
19    sudo rpm -Uvh rpms/python$PYTHON_SUFFIX-numeric*.rpm
20fi
21if [ "x`rpm -qa python$PYTHON_SUFFIX-numarray`" == "x" ]
22then
23    sudo rpm -Uvh rpms/python$PYTHON_SUFFIX-numarray*.rpm
24fi
25./find-srpms "cairo>=1.4" || exit 1
26if [ "x`rpm -qa cairo-devel | grep 1.4`" == "x" ]
27then
28    sudo rpm -Uvh rpms/cairo-*.rpm
29fi
30./find-srpms "pycairo>=1.4" || exit 1
31if [ "x`rpm -qa pycairo$PYTHON_SUFFIX2-devel`" == "x" ]
32then
33    sudo rpm -Uvh rpms/pycairo$PYTHON_SUFFIX2-*.rpm
34fi
35GLIB2_VERSION=`yum info glib2-devel | grep Version | head -n 1 | sed -e "s/[ \t]\+/ /g" | cut -d ":" -f 2 | cut -d " " -f 2`
36if [ `echo $GLIB2_VERSION | cut -d "." -f 1` == "2" ] && [ `echo $GLIB2_VERSION | cut -d "." -f 2` -ge 8 ]
37then
38    ./find-srpms pygobject2 || exit 1
39    if [ "x`rpm -qa pygobject2$PYTHON_SUFFIX2-devel`" == "x" ]
40    then
41        sudo rpm -Uvh rpms/pygobject2$PYTHON_SUFFIX2*.rpm
42    fi
43fi
44./find-srpms pygtk2 || exit 1
45if [ "x`rpm -qa pygtk2-devel`" != "x" ]
46then
47    rpm -e pygtk2-devel || exit 1
48fi
49if [ "x`rpm -qa pygtk2$PYTHON_SUFFIX2-devel`" == "x" ]
50then
51    sudo rpm -Uvh rpms/pygtk2$PYTHON_SUFFIX2*.rpm
52fi
53./find-srpms "python-matplotlib>=0.91.2" || exit 1
54rm -f rpms/python$PYTHON_SUFFIX-matplotlib-tk*
Note: See TracBrowser for help on using the browser.