/[packages]/cauldron/python-matplotlib/current/SPECS/python-matplotlib.spec
ViewVC logotype

Diff of /cauldron/python-matplotlib/current/SPECS/python-matplotlib.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 450087 by philippem, Wed Jul 3 11:44:53 2013 UTC revision 450088 by philippem, Thu Jul 4 12:54:39 2013 UTC
# Line 13  License:       Python license Line 13  License:       Python license
13  URL:            http://matplotlib.org/  URL:            http://matplotlib.org/
14  Source0:        https://github.com/downloads/%{module}/%{module}/%{module}-%{version}.tar.gz  Source0:        https://github.com/downloads/%{module}/%{module}/%{module}-%{version}.tar.gz
15  Patch0:         setupext-tk-include-0.99.1.2.patch  Patch0:         setupext-tk-include-0.99.1.2.patch
 Patch1:         setupext-x86_64-libdir-1.1.1.patch  
16  Requires:       python-numpy >= 1.1.0  Requires:       python-numpy >= 1.1.0
17  Requires:       python-configobj, python-dateutil, python-pytz  Requires:       python-configobj, python-dateutil, python-pytz
18  Requires:       python-matplotlib-gtk = %{version}-%{release}  Requires:       python-matplotlib-gtk = %{version}-%{release}
# Line 186  Requires:      tkinter3 Line 185  Requires:      tkinter3
185  %prep  %prep
186  %setup -q -n %{module}-%{version}  %setup -q -n %{module}-%{version}
187  %patch0 -p0 -b .setupext  %patch0 -p0 -b .setupext
 %patch1 -p0 -b .x86_64  
188    
189  rm -rf %{py3dir}  rm -rf %{py3dir}
190  cp -a . %{py3dir}  cp -a . %{py3dir}
# Line 196  pushd %{py3dir} Line 194  pushd %{py3dir}
194  find -name .svn | xargs rm -rf  find -name .svn | xargs rm -rf
195  # Remove duplicate test data file:  # Remove duplicate test data file:
196  %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg  %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg
197  CFLAGS="%{optflags} -fPIC -O3" /usr/bin/xvfb-run %{__python3} setup.py build  CFLAGS="%{optflags}" /usr/bin/xvfb-run %{__python3} setup.py build
198  popd  popd
199    
200  find -name .svn | xargs rm -rf  find -name .svn | xargs rm -rf
# Line 204  find -name .svn | xargs rm -rf Line 202  find -name .svn | xargs rm -rf
202  # Remove duplicate test data file:  # Remove duplicate test data file:
203  %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg  %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg
204    
205  PYTHONDONTWRITEBYTECODE= %{__python} setup.py build  CFLAGS="%{optflags}" /usr/bin/xvfb-run %{__python} setup.py build
206    
207  # Need to make built matplotlib libs available for the sphinx extensions:  # Need to make built matplotlib libs available for the sphinx extensions:
208  pushd doc  pushd doc
# Line 213  export PYTHONPATH=`dir -d ../build/lib.l Line 211  export PYTHONPATH=`dir -d ../build/lib.l
211  popd  popd
212    
213  %install  %install
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}  
   
214  pushd %{py3dir}  pushd %{py3dir}
215      %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}      %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
216      chmod +x $RPM_BUILD_ROOT%{python3_sitearch}/matplotlib/dates.py      chmod +x $RPM_BUILD_ROOT%{python3_sitearch}/matplotlib/dates.py
# Line 222  pushd %{py3dir} Line 218  pushd %{py3dir}
218      rm -f $RPM_BUILD_ROOT%{python3_sitearch}/six.py      rm -f $RPM_BUILD_ROOT%{python3_sitearch}/six.py
219  popd  popd
220    
221    %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
222    
223  %files  %files
224  %{py_platsitedir}/%{module}/*.py*  %{py_platsitedir}/%{module}/*.py*
225  %{py_platsitedir}/%{module}/*.so  %{py_platsitedir}/%{module}/*.so
# Line 317  popd Line 315  popd
315  %{python3_sitearch}/matplotlib/  %{python3_sitearch}/matplotlib/
316  %{python3_sitearch}/mpl_toolkits/  %{python3_sitearch}/mpl_toolkits/
317  %{python3_sitearch}/pylab.py*  %{python3_sitearch}/pylab.py*
 %{python3_sitearch}/__pycache__/*  
318  %exclude %{python3_sitearch}/matplotlib/backends/backend_qt4.*  %exclude %{python3_sitearch}/matplotlib/backends/backend_qt4.*
 %exclude %{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*  
319  %exclude %{python3_sitearch}/matplotlib/backends/backend_qt4agg.*  %exclude %{python3_sitearch}/matplotlib/backends/backend_qt4agg.*
 %exclude %{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*  
320  %exclude %{python3_sitearch}/matplotlib/backends/backend_tkagg.*  %exclude %{python3_sitearch}/matplotlib/backends/backend_tkagg.*
 %exclude %{python3_sitearch}/matplotlib/backends/__pycache__/backend_tkagg.*  
321  %exclude %{python3_sitearch}/matplotlib/backends/tkagg.*  %exclude %{python3_sitearch}/matplotlib/backends/tkagg.*
 %exclude %{python3_sitearch}/matplotlib/backends/__pycache__/tkagg.*  
322  %exclude %{python3_sitearch}/matplotlib/backends/_tkagg.*  %exclude %{python3_sitearch}/matplotlib/backends/_tkagg.*
 %exclude %{python3_sitearch}/matplotlib/backends/__pycache__/_tkagg.*  
323    
324  %files -n python3-matplotlib-qt4  %files -n python3-matplotlib-qt4
325  %{python3_sitearch}/matplotlib/backends/backend_qt4.*  %{python3_sitearch}/matplotlib/backends/backend_qt4.*
 %{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*  
326  %{python3_sitearch}/matplotlib/backends/backend_qt4agg.*  %{python3_sitearch}/matplotlib/backends/backend_qt4agg.*
 %{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*  
327    
328  %files -n python3-matplotlib-tk  %files -n python3-matplotlib-tk
329  %{python3_sitearch}/matplotlib/backends/backend_tkagg.py*  %{python3_sitearch}/matplotlib/backends/backend_tkagg.py*
 %{python3_sitearch}/matplotlib/backends/__pycache__/backend_tkagg.*  
330  %{python3_sitearch}/matplotlib/backends/tkagg.*  %{python3_sitearch}/matplotlib/backends/tkagg.*
 %{python3_sitearch}/matplotlib/backends/__pycache__/tkagg.*  
331  %{python3_sitearch}/matplotlib/backends/_tkagg.*  %{python3_sitearch}/matplotlib/backends/_tkagg.*
332    

Legend:
Removed from v.450087  
changed lines
  Added in v.450088

  ViewVC Help
Powered by ViewVC 1.1.30