Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert version of matplotlib pending investigations. #1878

Merged
1 commit merged into from Oct 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions py2-matplotlib.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down