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

Update matplotlib to version 1.4.3. Add py2-six py2-pyparsing required. #1862

Merged
1 commit merged into from Oct 2, 2015
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions cmssw-tool-conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Requires: gdb-toolfile
Requires: py2-pytz-toolfile
Requires: file-toolfile
Requires: libxslt-toolfile
Requires: py2-six-toolfile
Requires: py2-pyparsing-toolfile

# Only for Linux platform.
%if %islinux
Expand Down
14 changes: 7 additions & 7 deletions py2-matplotlib.spec
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
### RPM external py2-matplotlib 1.2.1
### RPM external py2-matplotlib 1.4.3
## 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 zlib libpng freetype
Requires: py2-pytz py2-numpy py2-python-dateutil py2-six py2-pyparsing 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:/usr/X11R6/include:/usr/X11R6/include/freetype2
library_dirs = ${FREETYPE_ROOT}/lib:${LIBPNG_ROOT}/lib:${ZLIB_ROOT}/lib:/usr/X11R6/lib
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

[directories]
basedirlist = ${FREETYPE_ROOT}:${FREETYPE_ROOT}:${LIBPNG_ROOT}:${ZLIB_ROOT}:/usr/X11R6
basedirlist = ${FREETYPE_ROOT},${FREETYPE_ROOT},${LIBPNG_ROOT},${ZLIB_ROOT}

[gui_support]
gtk = False
Expand All @@ -30,7 +30,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 +40,7 @@ PATH=$PWD/no-pkg-config:$PATH \
# in a scratch area.
export MPLCONFIGDIR=$PWD/no-pkg-config

python setup.py install --prefix=%i
python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%i
find %i -name '*.egg-info' -exec rm {} \;

# No need for test files
Expand Down
23 changes: 23 additions & 0 deletions py2-pyparsing-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### RPM external py2-pyparsing-toolfile 1.0
Requires: py2-pyparsing
%prep

%build

%install

mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-pyparsing.xml
<tool name="py2-pyparsing" version="@TOOL_VERSION@">
<info url="https://pyparsing.wikispaces.com/"/>
<client>
<environment name="PY2_PYPARSING" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PY2_PYPARSING/lib"/>
<runtime name="PYTHONPATH" value="$PY2_PYPARSING/lib/python@PYTHONV@/site-packages" type="path"/>
</client>
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
17 changes: 17 additions & 0 deletions py2-pyparsing.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### RPM external py2-pyparsing 2.0.3
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES
%define my_name %(echo %n | cut -f2 -d-)
Source: http://downloads.sourceforge.net/project/%{my_name}/%{my_name}/%{my_name}-%{realversion}/%{my_name}-%{realversion}.zip
Requires: python
BuildRequires: py2-setuptools

%prep
%setup -n %{my_name}-%{realversion}

%build
python setup.py build

%install
python -c 'import setuptools; print(setuptools.__file__)'
python setup.py install --skip-build --prefix=%{i}
find %{i}/${PYTHON_LIB_SITE_PACKAGES} -name '*.egg-info' -type d -print0 | xargs -0 rm -rf
23 changes: 23 additions & 0 deletions py2-six-toolfile.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### RPM external py2-six-toolfile 1.0
Requires: py2-six
%prep

%build

%install

mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-six.xml
<tool name="py2-six" version="@TOOL_VERSION@">
<info url="https://pypi.python.org/pypi/six"/>
<client>
<environment name="PY2_SIX" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$PY2_SIX/lib"/>
<runtime name="PYTHONPATH" value="$PY2_SIX/lib/python@PYTHONV@/site-packages" type="path"/>
</client>
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
17 changes: 17 additions & 0 deletions py2-six.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### RPM external py2-six 1.9.0
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES
%define my_name %(echo %n | cut -f2 -d-)
Source: https://pypi.python.org/packages/source/s/six/%{my_name}-%{realversion}.tar.gz
Requires: python
BuildRequires: py2-setuptools

%prep
%setup -n %{my_name}-%{realversion}

%build
python setup.py build

%install
python -c 'import setuptools; print(setuptools.__file__)'
python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%{i}
find %{i}/${PYTHON_LIB_SITE_PACKAGES} -name '*.egg-info' -type d -print0 | xargs -0 rm -rf