diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index 365b9bf14d2..784f997ad9b 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -156,6 +156,7 @@ Requires: libxslt-toolfile Requires: py2-six-toolfile Requires: py2-pyparsing-toolfile Requires: py2-requests-toolfile +Requires: py2-cycler-toolfile Requires: giflib-toolfile Requires: freetype-toolfile Requires: utm-toolfile diff --git a/py2-cycler-toolfile.spec b/py2-cycler-toolfile.spec new file mode 100644 index 00000000000..2c6d547d74f --- /dev/null +++ b/py2-cycler-toolfile.spec @@ -0,0 +1,23 @@ +### RPM external py2-cycler-toolfile 1.0 +Requires: py2-cycler +%prep + +%build + +%install + +mkdir -p %{i}/etc/scram.d +cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-cycler.xml + + + + + + + + +EOF_TOOLFILE + +export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) + +## IMPORT scram-tools-post diff --git a/py2-cycler.spec b/py2-cycler.spec new file mode 100644 index 00000000000..22fa8227a3d --- /dev/null +++ b/py2-cycler.spec @@ -0,0 +1,17 @@ +### RPM external py2-cycler 0.10.0 +## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES +%define my_name %(echo %n | cut -f2 -d-) +Source: https://github.com/matplotlib/%my_name/archive/v%{realversion}.tar.gz + +Requires: python +BuildRequires: py2-setuptools + +%prep +%setup -n %{my_name}-%{realversion} + +%build +python setup.py build + +%install +python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%{i} +find %{i}/${PYTHON_LIB_SITE_PACKAGES} -name '*.egg-info' -print0 | xargs -0 rm -rf diff --git a/py2-matplotlib-toolfile.spec b/py2-matplotlib-toolfile.spec index 16b0eb42999..302409d506b 100644 --- a/py2-matplotlib-toolfile.spec +++ b/py2-matplotlib-toolfile.spec @@ -18,6 +18,7 @@ cat << \EOF_TOOLFILE >%i/etc/scram.d/py2-matplotlib.xml + EOF_TOOLFILE diff --git a/py2-matplotlib.spec b/py2-matplotlib.spec index 0aabd8dbff1..b428c52659b 100644 --- a/py2-matplotlib.spec +++ b/py2-matplotlib.spec @@ -1,7 +1,7 @@ ### RPM external py2-matplotlib 1.5.2 ## INITENV +PATH PYTHONPATH %i/${PYTHON_LIB_SITE_PACKAGES} Source: https://github.com/matplotlib/matplotlib/archive/v%{realversion}.tar.gz -Requires: py2-pytz py2-numpy py2-python-dateutil zlib libpng freetype py2-pyparsing py2-six +Requires: py2-pytz py2-numpy py2-python-dateutil zlib libpng freetype py2-pyparsing py2-six py2-cycler BuildRequires: py2-setuptools %prep