-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1862 from degano/matplotlib_updt_76X
Update matplotlib to version 1.4.3. Add py2-six py2-pyparsing required.
- Loading branch information
Showing
6 changed files
with
89 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |