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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 90115 - (show annotations) (download)
Sun Apr 24 11:18:01 2011 UTC (11 years ago) by grenoya
File size: 6848 byte(s)
- remove python-qt from buildrequires
1 %define module matplotlib
2 %define name python-%{module}
3 %define version 1.0.1
4 %define release %mkrel 1
5
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Summary: Matlab-style 2D plotting package for Python
10 Group: Development/Python
11 License: Python license
12 URL: http://matplotlib.sourceforge.net/
13 Source0: http://downloads.sourceforge.net/project/%{module}/%{module}/%{module}-%{version}/%{module}-%{version}.tar.gz
14 %{py_requires -d}
15 Patch0: setupext-tk-include-0.99.1.2.patch
16 Requires: python-numpy >= 1.1.0
17 Requires: python-configobj, python-dateutil, python-pytz
18 Requires: python-matplotlib-gtk = %{version}-%{release}
19 BuildRequires: python-setuptools
20 BuildRequires: python-numpy-devel >= 1.1.0
21 BuildRequires: libwxPythonGTK-devel, pygtk2.0-devel, cairo-devel
22 BuildRequires: tkinter, tcl-devel, tk-devel, freetype2-devel >= 2.1.7
23 BuildRequires: python-qt4
24 BuildRequires: libpng-devel, zlib-devel
25 BuildRequires: python-configobj, python-dateutil, python-pytz
26 BuildRequires: python-docutils, python-sphinx
27 BuildRequires: ipython
28 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
29
30 %description
31 matplotlib is a Python 2D plotting library which produces publication
32 quality figures in a variety of hardcopy formats and interactive
33 environments across platforms. matplotlib can be used in Python
34 scripts, the python and ipython shell (a la Matlab or Mathematica), web
35 application servers, and various graphical user interface toolkits.
36
37 %package cairo
38 Summary: Cairo backend for matplotlib
39 Group: Development/Python
40 Requires: %{name} = %{version}-%{release}
41 Requires: python-cairo >= 1.2.0
42
43 %description cairo
44 This package contains the Cairo backend for matplotlib.
45
46 %package emf
47 Summary: EMF backend for matplotlib
48 Group: Development/Python
49 Requires: %{name} = %{version}-%{release}
50 Requires: python-pyemf
51
52 %description emf
53 This package contains the EMF backend for matplotlib.
54
55 %package fltk
56 Summary: FLTK backend for matplotlib
57 Group: Development/Python
58 Requires: %{name} = %{version}-%{release}
59 Requires: python-pyfltk
60
61 %description fltk
62 This package contains the FLTK backend for matplotlib.
63
64 %package gtk
65 Summary: GDK and GTK backends for matplotlib
66 Group: Development/Python
67 Requires: %{name} = %{version}-%{release}
68 Requires: pygtk2.0 >= 2.4.0
69 Requires: %{name}-cairo = %{version}-%{release}
70
71 %description gtk
72 This package contains the GDK and GTK backends for matplotlib.
73
74 %package qt
75 Summary: Qt backend for matplotlib
76 Group: Development/Python
77 Requires: %{name} = %{version}-%{release}
78 Requires: python-qt
79
80 %description qt
81 This package contains the Qt backend for matplotlib.
82
83 %package qt4
84 Summary: Qt backend for matplotlib
85 Group: Development/Python
86 Requires: %{name} = %{version}-%{release}
87 Requires: python-qt4
88
89 %description qt4
90 This package contains the Qt4 backend for matplotlib.
91
92 %package svg
93 Summary: SVG backend for matplotlib
94 Group: Development/Python
95 Requires: %{name} = %{version}-%{release}
96 Requires: python-pyxml
97
98 %description svg
99 This package contains the SVG backend for matplotlib.
100
101 %package tk
102 Summary: Tk backend for matplotlib
103 Group: Development/Python
104 Requires: %{name} = %{version}-%{release}
105 Requires: tkinter
106
107 %description tk
108 This package contains the Tk backend for matplotlib.
109
110 %package wx
111 Summary: wxPython backend for matplotlib
112 Group: Development/Python
113 Requires: %{name} = %{version}-%{release}
114 Requires: wxPython
115
116 %description wx
117 This package contains the wxPython backend for matplotlib.
118
119 %package doc
120 Summary: Documentation for matplotlib
121 Group: Development/Python
122 BuildArch: noarch
123
124 %description doc
125 This package contains documentation and sample code for matplotlib.
126
127 %prep
128 %setup -q -n %{module}-%{version}
129 %patch0 -p0 -b .setupext
130
131 %build
132 find -name .svn | xargs rm -rf
133
134 # Remove duplicate test data file:
135 %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg
136
137 PYTHONDONTWRITEBYTECODE= %__python setup.py build
138
139 # Need to make built matplotlib libs available for the sphinx extensions:
140 pushd doc
141 export PYTHONPATH=`dir -d ../build/lib.linux*`
142 ./make.py html
143 popd
144
145 %install
146 %__rm -rf %{buildroot}
147 PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} --record=FILELIST
148
149 %clean
150 %__rm -rf %{buildroot}
151
152 %files -f FILELIST
153 %defattr(-,root,root)
154 %exclude %{py_platsitedir}/%{module}/backends/backend_cairo.py*
155 %exclude %{py_platsitedir}/%{module}/backends/backend_emf.py*
156 %exclude %{py_platsitedir}/%{module}/backends/backend_fltkagg.py*
157 %exclude %{py_platsitedir}/%{module}/backends/backend_gdk.py*
158 %exclude %{py_platsitedir}/%{module}/backends/backend_gtk.py*
159 %exclude %{py_platsitedir}/%{module}/backends/backend_gtkagg.py*
160 %exclude %{py_platsitedir}/%{module}/backends/backend_gtkcairo.py*
161 %exclude %{py_platsitedir}/%{module}/backends/_backend_gdk.so
162 %exclude %{py_platsitedir}/%{module}/backends/_gtkagg.so
163 %exclude %{py_platsitedir}/%{module}/backends/backend_qt.py*
164 %exclude %{py_platsitedir}/%{module}/backends/backend_qtagg.py*
165 %exclude %{py_platsitedir}/%{module}/backends/backend_qt4.py*
166 %exclude %{py_platsitedir}/%{module}/backends/backend_qt4agg.py*
167 %exclude %{py_platsitedir}/%{module}/backends/backend_svg.py*
168 %exclude %{py_platsitedir}/%{module}/backends/backend_tkagg.py*
169 %exclude %{py_platsitedir}/%{module}/backends/tkagg.py*
170 %exclude %{py_platsitedir}/%{module}/backends/_tkagg.so
171 %exclude %{py_platsitedir}/%{module}/backends/backend_wx.py*
172 %exclude %{py_platsitedir}/%{module}/backends/backend_wxagg.py*
173
174 %files cairo
175 %defattr(-,root,root)
176 %{py_platsitedir}/%{module}/backends/backend_cairo.py*
177
178 %files emf
179 %defattr(-,root,root)
180 %{py_platsitedir}/%{module}/backends/backend_emf.py*
181
182 %files fltk
183 %defattr(-,root,root)
184 %{py_platsitedir}/%{module}/backends/backend_fltkagg.py*
185
186 %files gtk
187 %defattr(-,root,root)
188 %{py_platsitedir}/%{module}/backends/backend_gdk.py*
189 %{py_platsitedir}/%{module}/backends/backend_gtk.py*
190 %{py_platsitedir}/%{module}/backends/backend_gtkagg.py*
191 %{py_platsitedir}/%{module}/backends/backend_gtkcairo.py*
192 %{py_platsitedir}/%{module}/backends/_backend_gdk.so
193 %{py_platsitedir}/%{module}/backends/_gtkagg.so
194
195 %files qt
196 %defattr(-,root,root)
197 %{py_platsitedir}/%{module}/backends/backend_qt.py*
198 %{py_platsitedir}/%{module}/backends/backend_qtagg.py*
199
200 %files qt4
201 %defattr(-,root,root)
202 %{py_platsitedir}/%{module}/backends/backend_qt4.py*
203 %{py_platsitedir}/%{module}/backends/backend_qt4agg.py*
204
205 %files svg
206 %defattr(-,root,root)
207 %{py_platsitedir}/%{module}/backends/backend_svg.py*
208
209 %files tk
210 %defattr(-,root,root)
211 %{py_platsitedir}/%{module}/backends/backend_tkagg.py*
212 %{py_platsitedir}/%{module}/backends/tkagg.py*
213 %{py_platsitedir}/%{module}/backends/_tkagg.so
214
215 %files wx
216 %defattr(-,root,root)
217 %{py_platsitedir}/%{module}/backends/backend_wx.py*
218 %{py_platsitedir}/%{module}/backends/backend_wxagg.py*
219
220 %files doc
221 %doc license/ examples/ CHANGELOG INTERACTIVE KNOWN_BUGS TODO doc/build/html/*
222
223

  ViewVC Help
Powered by ViewVC 1.1.28