]>
Commit | Line | Data |
---|---|---|
0daef324 | 1 | # TODO: |
3b1e1355 | 2 | # - use system fonts (cm*.ttf) and metrics in mpl-data dir? |
0daef324 | 3 | %define module matplotlib |
db475c22 | 4 | Summary: Matlab(TM) style Python plotting package |
617bcdd8 | 5 | Summary(pl.UTF-8): Pakiet do rysowania w Pythonie podobny do Matlaba(TM) |
0daef324 | 6 | Name: python-%{module} |
414ffa10 | 7 | Version: 0.90.0 |
a4b67024 | 8 | Release: 0.1 |
0daef324 AM |
9 | License: GPL |
10 | Group: Libraries/Python | |
11 | Source0: http://dl.sourceforge.net/matplotlib/%{module}-%{version}.tar.gz | |
414ffa10 | 12 | # Source0-md5: 31ea12395826080b5be9c1e292cda6f1 |
0daef324 | 13 | URL: http://matplotlib.sourceforge.net/ |
0daef324 | 14 | BuildRequires: freetype-devel |
6466a51f | 15 | BuildRequires: libstdc++-devel |
db475c22 | 16 | BuildRequires: ncurses-devel |
414ffa10 | 17 | BuildRequires: python >= 2.4 |
6466a51f | 18 | BuildRequires: python-dateutil |
0daef324 | 19 | BuildRequires: python-devel |
414ffa10 RT |
20 | BuildRequires: python-numpy-FFT |
21 | BuildRequires: python-numpy-devel >= 1:1.0.1 | |
22 | BuildRequires: python-numpy-numarray-devel | |
3a76081b | 23 | BuildRequires: python-pygtk-devel |
6466a51f | 24 | BuildRequires: python-pytz |
a4b67024 | 25 | BuildRequires: tk-devel |
db475c22 | 26 | %pyrequires_eq python-modules |
6466a51f | 27 | Requires: python-dateutil |
414ffa10 | 28 | Requires: python-numpy-FFT >= 1:1.0.1 |
6466a51f | 29 | Requires: python-pytz |
0daef324 AM |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | matplotlib strives to produce publication quality 2D graphics using | |
34 | matlab plotting for inspiration. Although the main lib is object | |
35 | oriented, there is a functional interface "pylab" for people coming | |
36 | from Matlab. | |
37 | ||
617bcdd8 JR |
38 | %description -l pl.UTF-8 |
39 | matplotlib usiłuje tworzyć grafikę 2D o jakości publikacji przy użyciu | |
40 | wykresów matlaba jako inspiracji. Chociaż główna biblioteka jest | |
db475c22 | 41 | zorientowana obiektowo, jest interfejs funkcyjny "pylab" dla ludzi |
617bcdd8 | 42 | przechodzących z Matlaba. |
db475c22 | 43 | |
0daef324 AM |
44 | %prep |
45 | %setup -q -n %{module}-%{version} | |
46 | ||
47 | %build | |
48 | python setup.py build | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | python setup.py install \ | |
54 | --root=$RPM_BUILD_ROOT \ | |
55 | --optimize=2 | |
56 | ||
6466a51f | 57 | find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py | xargs rm -f |
0daef324 | 58 | |
3b1e1355 JB |
59 | # matplotlib can use system fonts, so drop these copies |
60 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/matplotlib/mpl-data/Vera*.ttf | |
61 | ||
0daef324 AM |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc CHANGELOG KNOWN_BUGS NUMARRAY_ISSUES README TODO | |
6466a51f JB |
68 | %dir %{py_sitedir}/matplotlib |
69 | %{py_sitedir}/matplotlib/*.py[co] | |
70 | %attr(755,root,root) %{py_sitedir}/matplotlib/*.so | |
71 | %dir %{py_sitedir}/matplotlib/backends | |
72 | %{py_sitedir}/matplotlib/backends/*.py[co] | |
73 | %attr(755,root,root) %{py_sitedir}/matplotlib/backends/*.so | |
74 | %dir %{py_sitedir}/matplotlib/enthought | |
75 | %{py_sitedir}/matplotlib/enthought/*.py[co] | |
76 | %{py_sitedir}/matplotlib/enthought/resource | |
77 | %dir %{py_sitedir}/matplotlib/enthought/traits | |
78 | %{py_sitedir}/matplotlib/enthought/traits/*.py[co] | |
79 | %attr(755,root,root) %{py_sitedir}/matplotlib/enthought/traits/*.so | |
80 | %{py_sitedir}/matplotlib/enthought/traits/ui | |
81 | %{py_sitedir}/matplotlib/enthought/util | |
82 | %{py_sitedir}/matplotlib/mpl-data | |
83 | %{py_sitedir}/matplotlib/numerix | |
84 | %{py_sitedir}/matplotlib/toolkits | |
85 | %{py_sitedir}/pylab.py[co] |