diff --git a/py2-matplotlib.spec b/py2-matplotlib.spec index 20ffa315dad..80a4861595a 100644 --- a/py2-matplotlib.spec +++ b/py2-matplotlib.spec @@ -1,19 +1,20 @@ -### RPM external py2-matplotlib 1.4.3 +### RPM external py2-matplotlib 1.2.1 ## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES %define realname matplotlib Source: https://downloads.sourceforge.net/project/%{realname}/%{realname}/%{realname}-%{realversion}/%{realname}-%{realversion}.tar.gz -Requires: py2-pytz py2-numpy py2-python-dateutil py2-six py2-pyparsing zlib libpng freetype +Requires: py2-pytz py2-numpy py2-python-dateutil zlib libpng freetype + %prep %setup -n %{realname}-%{realversion} cat >> setup.cfg <<- EOF [build_ext] -include_dirs = ${FREETYPE_ROOT}/include/freetype2,${FREETYPE_ROOT}/include,${LIBPNG_ROOT}/include,${ZLIB_ROOT}/include -library_dirs = ${FREETYPE_ROOT}/lib,${LIBPNG_ROOT}/lib,${ZLIB_ROOT}/lib +include_dirs = ${FREETYPE_ROOT}/include/freetype2:${FREETYPE_ROOT}/include:${LIBPNG_ROOT}/include:${ZLIB_ROOT}/include:/usr/X11R6/include:/usr/X11R6/include/freetype2 +library_dirs = ${FREETYPE_ROOT}/lib:${LIBPNG_ROOT}/lib:${ZLIB_ROOT}/lib:/usr/X11R6/lib [directories] -basedirlist = ${FREETYPE_ROOT},${FREETYPE_ROOT},${LIBPNG_ROOT},${ZLIB_ROOT} +basedirlist = ${FREETYPE_ROOT}:${FREETYPE_ROOT}:${LIBPNG_ROOT}:${ZLIB_ROOT}:/usr/X11R6 [gui_support] gtk = False @@ -30,7 +31,7 @@ chmod +x no-pkg-config/pkg-config %build export MPLCONFIGDIR=$PWD/no-pkg-config PATH=$PWD/no-pkg-config:$PATH \ -python setup.py build +python setup.py build %install python -c 'import numpy' @@ -40,7 +41,7 @@ PATH=$PWD/no-pkg-config:$PATH \ # in a scratch area. export MPLCONFIGDIR=$PWD/no-pkg-config -python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%i +python setup.py install --prefix=%i find %i -name '*.egg-info' -exec rm {} \; # No need for test files