Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-matplotlib
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 19
[-]
[+]
Added
python3-matplotlib.spec
@@ -0,0 +1,79 @@ +# +# spec file for package python3-matplotlib for Mer, based on OpenSuse version +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +Name: python3-matplotlib +Version: 2.0.0b1 +Release: 0 +Summary: Plotting Library for Python +License: Matplotlib +Group: Development/Libraries +Packager: Roberto Colistete Jr. <matplotlib-devel@lists.sourceforge.net> +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: freetype-devel +BuildRequires: gcc-c++ +BuildRequires: libpng-devel +BuildRequires: python3-numpy-devel >= 1.6.0 +BuildRequires: python3-pyparsing +BuildRequires: python3-six +#BuildRequires: python3-setuptools +Requires: python3-base +Requires: python3-numpy >= 1.6.0 +Requires: python3-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: python3-dateutil +BuildRequires: python3-tz +Requires: python3-dateutil +Requires: python3-pytz + + +# %define python3_sitearch %{_libdir}/python3.?/site-packages + +%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 +python3 setup.py build + +%install +python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} + +%fdupes %{buildroot}%{python3_sitearch}/matplotlib/tests/baseline_images/ + +%files +%defattr(-,root,root,-) +%doc README.rst LICENSE CHANGELOG lib/matplotlib.egg-info/PKG-INFO examples doc/users/license.rst +%{python3_sitearch}/matplotlib/ +%{python3_sitearch}/matplotlib*.egg-info +%{python3_sitearch}/matplotlib*-nspkg.pth +%{python3_sitearch}/mpl_toolkits/ +%{python3_sitearch}/pylab.py* +%{python3_sitearch}/__pycache__ + +%changelog +