ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-matplotlib.spec
Revision: 1.19
Committed: Mon Aug 29 16:12:55 2011 UTC (13 years, 8 months ago) by diego
Branch: MAIN
CVS Tags: builder_2011-09-29_09-05-43_crab-server3, builder_2011-09-29_09-05-42_asyncstageout, builder_2011-09-29_05-49-40_wmagent, builder_2011-09-27_17-51-30_reqmon, builder_2011-09-23_12-09-06_wmagent, builder_2011-09-22_12-03-59_asyncstageout, builder_2011-09-22_11-25-57_crab-server3, builder_2011-09-22_11-24-38_asyncstageout, builder_2011-09-22_05-26-44_wmagent, builder_2011-09-21_18-06-30_asyncstageout, builder_2011-09-21_15-26-46_wmagent, builder_2011-09-21_12-53-09_crab-server3, builder_2011-09-21_12-53-09_asyncstageout, builder_2011-09-21_12-47-08_crab-server3, builder_2011-09-21_12-45-23_asyncstageout, builder_2011-09-20_21-03-55_regsvc, builder_2011-09-07_19-00-35_cmsweb, builder_2011-09-06_22-45-07_globalmonitor, builder_2011-09-01_12-14-12_wmagent, HG1109a, builder_2011-08-29_19-08-40_cmsweb
Changes since 1.18: +3 -0 lines
Log Message:
Clean unnecessary files.

File Contents

# Content
1 ### RPM external py2-matplotlib 1.0.1
2 ## INITENV +PATH PYTHONPATH %i/$PYTHON_LIB_SITE_PACKAGES
3 Source: http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-%{realversion}/matplotlib-%{realversion}.tar.gz
4
5 Requires: py2-numpy
6 Requires: zlib
7 Requires: libpng
8 %prep
9 %setup -n matplotlib-%{realversion}
10
11 cat >> setup.cfg <<- EOF
12 [build_ext]
13 include_dirs = $LIBPNG_ROOT/include:$ZLIB_ROOT/include:/usr/X11R6/include:/usr/X11R6/include/freetype2
14 library_dirs = $LIBPNG_ROOT/lib:$ZLIB_ROOT/lib:/usr/X11/lib
15 EOF
16
17 %build
18 python setup.py build
19
20 %install
21 python -c 'import numpy'
22 python setup.py install --prefix=%i
23 find %i -name '*.egg-info' -exec rm {} \;
24
25 # No need for test files
26 rm -rf %i/$PYTHON_LIB_SITE_PACKAGES/matplotlib/tests