Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python-matplotlib
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 75
[-]
[+]
Added
python-matplotlib.spec
@@ -0,0 +1,70 @@ +# +# spec file for package python-matplotlib for Mer, based on OpenSuse version +# + +Name: python-matplotlib +Version: 1.4.0 +Release: 0 +Summary: Plotting Library for Python +License: Matplotlib +Group: Development/Libraries +Url: http://sourceforge.net/projects/matplotlib +Source: matplotlib-%{version}.tar.gz +Source1: matplotlib-setup.cfg +# For Qt : +# Source2: matplotlibplugin.py +# Source3: matplotlibwidget.py +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes +BuildRequires: freetype2-devel +BuildRequires: gcc-c++ +BuildRequires: libpng-devel +BuildRequires: python-numpy-devel >= 1.6.0 +BuildRequires: python-pyparsing +BuildRequires: python-six >= 1.3 +BuildRequires: python-setuptools +Requires: python >= %{py_ver} +Requires: python-numpy >= 1.6.0 +Requires: python-pyparsing +## webagg backend +Requires: python-tornado +## These packages are required to prevent that matplotlib installs it's +## own versions of the packages from the lib directory +BuildRequires: python-dateutil +BuildRequires: python-tz +Requires: python-dateutil +Requires: python-pytz + + +%description +MatPlotLib is a Python based plotting system in a style similar to Matlab +Matplotlib is a pure Python plotting library designed to bring +publication quality plotting to Python with a syntax familiar to +Matlab users. All of the plotting commands in the pylab interface can +be accessed either via a functional interface familiar to Matlab +users or an object oriented interface familiar to Python users. + +%prep +%setup -q -n matplotlib-%{version} +chmod -x lib/matplotlib/mpl-data/images/*.svg +chmod -R 664 examples/*/*.py + +%build +cp %{SOURCE1} ./setup.cfg +python setup.py build + +%install +python setup.py install --root=%{buildroot} --prefix=%{_prefix} + +%fdupes %{buildroot}%{py_sitedir}/matplotlib/tests/baseline_images/ + +%files +%defattr(-,root,root,-) +%doc README.rst LICENSE CHANGELOG PKG-INFO TODO CXX examples doc/users/license.rst +%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}.egg-info +%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}-nspkg.pth +%{py_sitedir}/matplotlib/ +%{py_sitedir}/mpl_toolkits/ +%{py_sitedir}/pylab.py* + +%changelog