/[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 887336 by tv, Wed Oct 7 17:31:43 2015 UTC revision 887337 by daviddavid, Thu Oct 8 08:12:29 2015 UTC
# Line 1  Line 1 
1  %global __provides_exclude_from %{_datadir}/doc/.*  %global __provides_exclude_from %{_datadir}/doc/.*
2  %global __requires_exclude_from %{_datadir}/doc/.*  %global __requires_exclude_from %{_datadir}/doc/.*
3  %define module  matplotlib  %define module                  matplotlib
4  %define basepy3dir      %(echo ../`basename %{py3dir}`)  %define basepy3dir              %(echo ../`basename %{py3dir}`)
5  %define with_html 0  %define with_html               0
6  # we don't want to provide private python extension libs  # we don't want to provide private python extension libs
7  %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so  %define _exclude_files_from_autoprov    %{python2_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so
8    
9  # the default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo  # the default backend; one of GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo
10  # CocoaAgg MacOSX Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG  # CocoaAgg MacOSX Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG
11  %global backend                 TkAgg  %global backend                 TkAgg
12  %global with_bundled_fonts      1  %global with_bundled_fonts      1
13    
14  Name:           python-%{module}  Name:           python-%{module}
15  Version:        1.4.3  Version:        1.4.3
# Line 19  Group:         Development/Python Line 19  Group:         Development/Python
19  License:        Python license  License:        Python license
20  URL:            http://matplotlib.org/  URL:            http://matplotlib.org/
21  Source0:        https://downloads.sourceforge.net/project/%{module}/%{module}/%{module}-%{version}/%{module}-%{version}.tar.gz  Source0:        https://downloads.sourceforge.net/project/%{module}/%{module}/%{module}-%{version}/%{module}-%{version}.tar.gz
22  Source1:        setup.cfg  Source1:        setup.cfg
23    
24  Patch0:         %{name}-noagg.patch  Patch0:         %{name}-noagg.patch
25  Patch1:         %{name}-system-cxx.patch  Patch1:         %{name}-system-cxx.patch
26  #Patch2:         20_matplotlibrc_path_search_fix.patch  #Patch2:        20_matplotlibrc_path_search_fix.patch
27  Patch3:         40_bts608939_draw_markers_description.patch  Patch3:         40_bts608939_draw_markers_description.patch
28  Patch4:         50_bts608942_spaces_in_param_args.patch  Patch4:         50_bts608942_spaces_in_param_args.patch
29  #Patch5:         60_deal_with_no_writable_dirs.patch  #Patch5:        60_deal_with_no_writable_dirs.patch
30  Patch6:         70_bts720549_try_StayPuft_for_xkcd.patch  Patch6:         70_bts720549_try_StayPuft_for_xkcd.patch
31    
32    
33  BuildRequires:  python-setuptools  BuildRequires:  python-setuptools
# Line 45  BuildRequires: python-qt5 Line 45  BuildRequires: python-qt5
45  BuildRequires:  python-qt5-devel  BuildRequires:  python-qt5-devel
46  BuildRequires:  agg-devel  BuildRequires:  agg-devel
47  BuildRequires:  libpng-devel  BuildRequires:  libpng-devel
48  BuildRequires:  zlib-devel  BuildRequires:  zlib-devel
49  BuildRequires:  python-configobj  BuildRequires:  python-configobj
50  BuildRequires:  python-dateutil  BuildRequires:  python-dateutil
51  BuildRequires:  python-pytz  BuildRequires:  python-pytz
# Line 55  BuildRequires: ipython Line 55  BuildRequires: ipython
55  BuildRequires:  python-six  BuildRequires:  python-six
56  BuildRequires:  python-gobject3-devel  BuildRequires:  python-gobject3-devel
57  BuildRequires:  pyside  BuildRequires:  pyside
58  BuildRequires:  gtk+3-devel  BuildRequires:  gtk+3-devel
59  BuildRequires:  python-gi  BuildRequires:  python-gi
60  BuildRequires:  python-gi-cairo  BuildRequires:  python-gi-cairo
61    
62  %if %{with_html}  %if %{with_html}
63  BuildRequires:  python-numpydoc  BuildRequires:  python-numpydoc
64  %endif  %endif
65  Obsoletes:      %{name}-emf  Obsoletes:      %{name}-emf
66  Obsoletes:      %{name}-fltk  Obsoletes:      %{name}-fltk
67  Requires:       python-numpy >= 1.1.0  Requires:       python-numpy >= 1.1.0
68  Requires:       python-configobj  Requires:       python-configobj
69  Requires:       python-dateutil  Requires:       python-dateutil
70  Requires:       python-pytz  Requires:       python-pytz
71  Requires:   python-pyparsing  Requires:       python-pyparsing
72  Requires:       python-gi  Requires:       python-gi
73  Requires:       fonts-ttf-bitstream-vera  Requires:       fonts-ttf-bitstream-vera
74    
75  # GTKAgg does not require extra subpackages, but does not work with python3  # GTKAgg does not require extra subpackages, but does not work with python3
76  %if "%{backend}" == "TkAgg"  %if "%{backend}" == "TkAgg"
77  Requires:       %{name}-tk = %{version}-%{release}  Requires:       %{name}-tk = %{version}-%{release}
78  %else  %else
79  %  if "%{backend}" == "Qt4Agg"  %  if "%{backend}" == "Qt4Agg"
80  Requires:       %{name}-qt4 = %{version}-%{release}  Requires:       %{name}-qt4 = %{version}-%{release}
81  %  endif  %  endif
82  %endif  %endif
83    
# Line 88  environments across platforms. matplotli Line 88  environments across platforms. matplotli
88  scripts, the python and ipython shell (a la Matlab or Mathematica), web  scripts, the python and ipython shell (a la Matlab or Mathematica), web
89  application servers, and various graphical user interface toolkits.  application servers, and various graphical user interface toolkits.
90    
91  %package cairo  %package        cairo
92  Summary:        Cairo backend for matplotlib  Summary:        Cairo backend for matplotlib
93  Group:          Development/Python  Group:          Development/Python
94  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
95  Requires:       python-cairo >= 1.2.0  Requires:       python-cairo >= 1.2.0
96    
97  %description cairo  %description    cairo
98  This package contains the Cairo backend for matplotlib.  This package contains the Cairo backend for matplotlib.
99    
100  %package gtk  %package        gtk
101  Summary:        GDK and GTK backends for matplotlib  Summary:        GDK and GTK backends for matplotlib
102  Group:          Development/Python  Group:          Development/Python
103  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
104  Requires:       pygtk2.0 >= 2.4.0  Requires:       pygtk2.0 >= 2.4.0
105  Requires:       %{name}-cairo = %{version}-%{release}  Requires:       %{name}-cairo = %{version}-%{release}
106    
107  %description gtk  %description    gtk
108  This package contains the GDK and GTK backends for matplotlib.  This package contains the GDK and GTK backends for matplotlib.
109    
110  %package gtk3  %package        gtk3
111  Summary:        GTK3 backends for matplotlib  Summary:        GTK3 backends for matplotlib
112  Group:          Development/Python  Group:          Development/Python
113  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
114  Requires:       %{name}-cairo = %{version}-%{release}  Requires:       %{name}-cairo = %{version}-%{release}
115    
116  %description gtk3  %description    gtk3
117  This package contains the GDK3 backends for matplotlib.  This package contains the GDK3 backends for matplotlib.
118    
119  %package qt4  %package        qt4
120  Summary:        Qt4 backend for matplotlib  Summary:        Qt4 backend for matplotlib
121  Group:          Development/Python  Group:          Development/Python
122  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
123  Requires:   %{name}-qt-shared = %{version}-%{release}  Requires:       %{name}-qt-shared = %{version}-%{release}
124  Requires:       python-qt4  Requires:       python-qt4
125    
126  %description qt4  %description    qt4
127  This package contains the Qt4 backend for matplotlib.  This package contains the Qt4 backend for matplotlib.
128    
129  %package qt5  %package        qt5
130  Summary:        Qt5 backend for matplotlib  Summary:        Qt5 backend for matplotlib
131  Group:          Development/Python  Group:          Development/Python
132  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
133  Requires:   %{name}-qt-shared = %{version}-%{release}  Requires:       %{name}-qt-shared = %{version}-%{release}
134  Requires:       python-qt5  Requires:       python-qt5
135    
136  %description qt5  %description    qt5
137  This package contains the Qt5 backend for matplotlib.  This package contains the Qt5 backend for matplotlib.
138    
139  %package qt-shared  %package        qt-shared
140  Summary:    Shared files for the Qt backends for matplotlib  Summary:        Shared files for the Qt backends for matplotlib
141  Group:      Development/Python  Group:          Development/Python
142  Requires:   %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
143  Requires:   python-qt5  Requires:       python-qt5
144    
145  %description qt-shared  %description    qt-shared
146  This package includes files needed by both the Qt4-based pyqt4 and  This package includes files needed by both the Qt4-based pyqt4 and
147  pyside backends and the Qt5-based pyqt5 backend for the matplotlib  pyside backends and the Qt5-based pyqt5 backend for the matplotlib
148  plotting package  plotting package.
149    
150  %package svg  %package        svg
151  Summary:        SVG backend for matplotlib  Summary:        SVG backend for matplotlib
152  Group:          Development/Python  Group:          Development/Python
153  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
154    
155  %description svg  %description    svg
156  This package contains the SVG backend for matplotlib.  This package contains the SVG backend for matplotlib.
157    
158  %package pgf  %package        pgf
159  Summary:        PGF backend for matplotlib  Summary:        PGF backend for matplotlib
160  Group:          Development/Python  Group:          Development/Python
161  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
162    
163  %description pgf  %description    pgf
164  This package contains the PGF backend for matplotlib.  This package contains the PGF backend for matplotlib.
165    
166  %package tk  %package        tk
167  Summary:        Tk backend for matplotlib  Summary:        Tk backend for matplotlib
168  Group:          Development/Python  Group:          Development/Python
169  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
170  Requires:       tkinter  Requires:       tkinter
171    
172  %description tk  %description    tk
173  This package contains the Tk backend for matplotlib.  This package contains the Tk backend for matplotlib.
174    
175  %package wx  %package        wx
176  Summary:        wxPython backend for matplotlib  Summary:        wxPython backend for matplotlib
177  Group:          Development/Python  Group:          Development/Python
178  Requires:       %{name} = %{version}-%{release}  Requires:       %{name} = %{version}-%{release}
179  Requires:       wxPython  Requires:       wxPython
180    
181  %description wx  %description    wx
182  This package contains the wxPython backend for matplotlib.  This package contains the wxPython backend for matplotlib.
183    
184  %package doc  %package        doc
185  Summary:        Documentation for matplotlib  Summary:        Documentation for matplotlib
186  Group:          Development/Python  Group:          Development/Python
187  BuildArch: noarch  BuildArch:      noarch
188    
189  %description doc  %description    doc
190  This package contains documentation and sample code for matplotlib.  This package contains documentation and sample code for matplotlib.
191    
192  %package -n     python3-matplotlib  %package -n     python3-matplotlib
# Line 213  Requires:      python3-cairo Line 213  Requires:      python3-cairo
213  Requires:       python3-pyparsing  Requires:       python3-pyparsing
214  Requires:       python3-dateutil  Requires:       python3-dateutil
215  Requires:       python3-pytz  Requires:       python3-pytz
216  Requires:       fonts-ttf-bitstream-vera  Requires:       fonts-ttf-bitstream-vera
217  %if "%{backend}" == "TkAgg"  %if "%{backend}" == "TkAgg"
218  Requires:       python3-matplotlib-tk = %{version}-%{release}  Requires:       python3-matplotlib-tk = %{version}-%{release}
219  %else  %else
220  %  if "%{backend}" == "Qt4Agg"  %  if "%{backend}" == "Qt4Agg"
221  Requires:       python3-matplotlib-qt4 = %{version}-%{release}  Requires:       python3-matplotlib-qt4 = %{version}-%{release}
222  %  endif  %  endif
223  %endif  %endif
224    
# Line 254  Requires:      tkinter3 Line 254  Requires:      tkinter3
254    
255  %prep  %prep
256  %setup -q -n %{module}-%{version}  %setup -q -n %{module}-%{version}
257    
258  # Copy setup.cfg to the builddir  # Copy setup.cfg to the builddir
259  cp %{SOURCE1} .  cp %{SOURCE1} .
260  sed -i 's/\(backend = \).*/\1%{backend}/' setup.cfg  sed -i 's/\(backend = \).*/\1%{backend}/' setup.cfg
# Line 288  find -name .svn | xargs rm -rf Line 289  find -name .svn | xargs rm -rf
289  MPLCONFIGDIR=$PWD \  MPLCONFIGDIR=$PWD \
290  MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data \  MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data \
291  CFLAGS="%{optflags}" \  CFLAGS="%{optflags}" \
292    %{__python} setup.py build    %{__python2} setup.py build
293    
294    
295  %if %{with_html}  %if %{with_html}
296  # Need to make built matplotlib libs available for the sphinx extensions:  # Need to make built matplotlib libs available for the sphinx extensions:
297  pushd doc  pushd doc
298      export PYTHONPATH=`realpath ../build/lib.linux*`      export PYTHONPATH=`realpath ../build/lib.linux*`
299      %{__python} make.py html      %{__python2} make.py html
300  popd  popd
301  %endif  %endif
302    
# Line 313  popd Line 314  popd
314  %install  %install
315  pushd %{py3dir}  pushd %{py3dir}
316      %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}      %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
317      chmod +x $RPM_BUILD_ROOT%{python3_sitearch}/matplotlib/dates.py      chmod +x %{buildroot}%{python3_sitearch}/matplotlib/dates.py
318      rm -rf $RPM_BUILD_ROOT%{python3_sitearch}/matplotlib/mpl-data/fonts      rm -rf %{buildroot}%{python3_sitearch}/matplotlib/mpl-data/fonts
319      rm -f $RPM_BUILD_ROOT%{python3_sitearch}/six.py      rm -f %{buildroot}%{python3_sitearch}/six.py
320  popd  popd
321    
322  %{__python} setup.py install -O1 --skip-build --root=%{buildroot}  %{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
323    
324  %files  %files
325  %{py_platsitedir}/%{module}/*.py*  %{python2_sitearch}/%{module}/*.py*
326  %{py_platsitedir}/%{module}/*.so  %{python2_sitearch}/%{module}/*.so
327  %{py_platsitedir}/%{module}*egg-info  %{python2_sitearch}/%{module}*egg-info
328  %{py_platsitedir}/%{module}-*-nspkg.pth  %{python2_sitearch}/%{module}-*-nspkg.pth
329  %{py_platsitedir}/%{module}/backends/Matplotlib.nib*  %{python2_sitearch}/%{module}/backends/Matplotlib.nib*
330  %{py_platsitedir}/%{module}/backends/__init__*  %{python2_sitearch}/%{module}/backends/__init__*
331  %{py_platsitedir}/%{module}/backends/*backend_agg*  %{python2_sitearch}/%{module}/backends/*backend_agg*
332  %{py_platsitedir}/%{module}/backends/backend_cocoa*  %{python2_sitearch}/%{module}/backends/backend_cocoa*
333  %{py_platsitedir}/%{module}/backends/backend_macosx*  %{python2_sitearch}/%{module}/backends/backend_macosx*
334  %{py_platsitedir}/%{module}/backends/backend_mixed*  %{python2_sitearch}/%{module}/backends/backend_mixed*
335  %{py_platsitedir}/%{module}/backends/backend_pdf*  %{python2_sitearch}/%{module}/backends/backend_pdf*
336  %{py_platsitedir}/%{module}/backends/backend_ps*  %{python2_sitearch}/%{module}/backends/backend_ps*
337  %{py_platsitedir}/%{module}/backends/backend_template*  %{python2_sitearch}/%{module}/backends/backend_template*
338  %{py_platsitedir}/%{module}/backends/windowing*  %{python2_sitearch}/%{module}/backends/windowing*
339  %{py_platsitedir}/%{module}/backends/web_backend*  %{python2_sitearch}/%{module}/backends/web_backend*
340  %{py_platsitedir}/%{module}/backends/backend_webagg*  %{python2_sitearch}/%{module}/backends/backend_webagg*
341  %{py_platsitedir}/%{module}/delaunay*  %{python2_sitearch}/%{module}/delaunay*
342  %{py_platsitedir}/%{module}/mpl-data/*  %{python2_sitearch}/%{module}/mpl-data/*
343  %{py_platsitedir}/%{module}/projections*  %{python2_sitearch}/%{module}/projections*
344  %{py_platsitedir}/%{module}/sphinxext*  %{python2_sitearch}/%{module}/sphinxext*
345  %{py_platsitedir}/%{module}/test*  %{python2_sitearch}/%{module}/test*
346  %{py_platsitedir}/%{module}/tri*  %{python2_sitearch}/%{module}/tri*
347  %{py_platsitedir}/%{module}/compat*  %{python2_sitearch}/%{module}/compat*
348  %{py_platsitedir}/mpl_toolkits*  %{python2_sitearch}/mpl_toolkits*
349  %{py_platsitedir}/pylab*  %{python2_sitearch}/pylab*
350  %{py_platsitedir}/%{module}/axes/  %{python2_sitearch}/%{module}/axes/
351  %{py_platsitedir}/%{module}/backends/backend_nbagg*  %{python2_sitearch}/%{module}/backends/backend_nbagg*
352  %{py_platsitedir}/%{module}/style/  %{python2_sitearch}/%{module}/style/
353    
354  %files cairo  %files cairo
355  %{py_platsitedir}/%{module}/backends/backend_cairo.py*  %{python2_sitearch}/%{module}/backends/backend_cairo.py*
356    
357  %files gtk  %files gtk
358  %{py_platsitedir}/%{module}/backends/backend_gdk.py*  %{python2_sitearch}/%{module}/backends/backend_gdk.py*
359  %{py_platsitedir}/%{module}/backends/backend_gtk.py*  %{python2_sitearch}/%{module}/backends/backend_gtk.py*
360  %{py_platsitedir}/%{module}/backends/backend_gtkagg.py*  %{python2_sitearch}/%{module}/backends/backend_gtkagg.py*
361  %{py_platsitedir}/%{module}/backends/backend_gtkcairo.py*  %{python2_sitearch}/%{module}/backends/backend_gtkcairo.py*
362  %{py_platsitedir}/%{module}/backends/_backend_gdk.so  %{python2_sitearch}/%{module}/backends/_backend_gdk.so
363  %{py_platsitedir}/%{module}/backends/_gtkagg.so  %{python2_sitearch}/%{module}/backends/_gtkagg.so
364    
365  %files gtk3  %files gtk3
366  %{py_platsitedir}/%{module}/backends/backend_gtk3.py*  %{python2_sitearch}/%{module}/backends/backend_gtk3.py*
367  %{py_platsitedir}/%{module}/backends/backend_gtk3agg.py*  %{python2_sitearch}/%{module}/backends/backend_gtk3agg.py*
368  %{py_platsitedir}/%{module}/backends/backend_gtk3cairo.py*  %{python2_sitearch}/%{module}/backends/backend_gtk3cairo.py*
369    
370  %files qt4  %files qt4
371  %{py_platsitedir}/%{module}/backends/backend_qt4.py*  %{python2_sitearch}/%{module}/backends/backend_qt4.py*
372  %{py_platsitedir}/%{module}/backends/backend_qt4agg.py*  %{python2_sitearch}/%{module}/backends/backend_qt4agg.py*
373    
374  %files qt-shared  %files qt-shared
375  # IMPORTANT: the qt4 backend makes use of the qt5 backend,  # IMPORTANT: the qt4 backend makes use of the qt5 backend,
376  # which is actually a generic qt backend.  # which is actually a generic qt backend.
377  # So we need to package all the qt5 stuff in this generic  # So we need to package all the qt5 stuff in this generic
378  # package, and provide a stub package which pulls in the  # package, and provide a stub package which pulls in the
379  # python-qt5 dependency.  # python-qt5 dependency.
380  %{python_sitearch}/%{module}/backends/backend_qt5.*  %{python_sitearch}/%{module}/backends/backend_qt5.*
381  %{python_sitearch}/%{module}/backends/backend_qt5agg.*  %{python_sitearch}/%{module}/backends/backend_qt5agg.*
# Line 383  popd Line 384  popd
384  %{python_sitearch}/%{module}/backends/qt_editor/  %{python_sitearch}/%{module}/backends/qt_editor/
385    
386  %files qt5  %files qt5
387  # IMPORTANT: the qt4 backend makes use of the qt5 backend,  # IMPORTANT: the qt4 backend makes use of the qt5 backend,
388  # which is actually a generic qt backend.  # which is actually a generic qt backend.
389  # So we need to package all the qt5 stuff in a generic  # So we need to package all the qt5 stuff in a generic
390  # package, and provide this stub package which pulls in the  # package, and provide this stub package which pulls in the
391  # python-qt5 dependency.  # python-qt5 dependency.
392  %doc README.rst  %doc README.rst
393    
394  %files pgf  %files pgf
395  %{py_platsitedir}/%{module}/backends/backend_pgf.py*  %{python2_sitearch}/%{module}/backends/backend_pgf.py*
396    
397  %files svg  %files svg
398  %{py_platsitedir}/%{module}/backends/backend_svg.py*  %{python2_sitearch}/%{module}/backends/backend_svg.py*
399    
400  %files tk  %files tk
401  %{py_platsitedir}/%{module}/backends/backend_tkagg.py*  %{python2_sitearch}/%{module}/backends/backend_tkagg.py*
402  %{py_platsitedir}/%{module}/backends/tkagg.py*  %{python2_sitearch}/%{module}/backends/tkagg.py*
403  %{py_platsitedir}/%{module}/backends/_tkagg.so  %{python2_sitearch}/%{module}/backends/_tkagg.so
404    
405  %files wx  %files wx
406  %{py_platsitedir}/%{module}/backends/backend_wx.py*  %{python2_sitearch}/%{module}/backends/backend_wx.py*
407  %{py_platsitedir}/%{module}/backends/backend_wxagg.py*  %{python2_sitearch}/%{module}/backends/backend_wxagg.py*
408    
409  %files doc  %files doc
410  %doc examples/    %doc examples/
411  %if %{with_html}  %if %{with_html}
412  %doc doc/build/html/*  %doc doc/build/html/*
413  %endif  %endif
# Line 432  popd Line 433  popd
433  %{python3_sitearch}/matplotlib/backends/backend_tkagg.py*  %{python3_sitearch}/matplotlib/backends/backend_tkagg.py*
434  %{python3_sitearch}/matplotlib/backends/tkagg.*  %{python3_sitearch}/matplotlib/backends/tkagg.*
435  %{python3_sitearch}/matplotlib/backends/_tkagg.*  %{python3_sitearch}/matplotlib/backends/_tkagg.*
   

Legend:
Removed from v.887336  
changed lines
  Added in v.887337

  ViewVC Help
Powered by ViewVC 1.1.30