1
0
python-matplotlib/python3-matplotlib.spec
Stephan Kulow 89ec85c1c8 Accepting request 141081 from devel:languages:python
update to 1.2.0
python3 package added
removed unneded hacks for 11.4
__pycache__ hacks still here, because python3-base not fixed yet (forwarded request 141073 from HighwayStar)

OBS-URL: https://build.opensuse.org/request/show/141081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=22
2012-11-14 15:56:34 +00:00

114 lines
3.4 KiB
RPMSpec

#
# spec file for package python3-matplotlib
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname matplotlib
Name: python3-%{modname}
Version: 1.2.0
Release: 0
Summary: Plotting Library for Python
License: BSD-2-Clause
Group: Development/Libraries/Python
Url: http://sourceforge.net/projects/%{modname}
Source: %{modname}-%{version}.tar.bz2
#special config for python3 needed because of lack of wx and gtk backends
Source1: py3-%{modname}-setup.cfg
Patch0: no-multiprocessing-setup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fltk-devel
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: python3-2to3
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildRequires: python3-numpy-devel >= 1.2.1
BuildRequires: python3-tk
BuildRequires: python3-xml
BuildRequires: tcl
BuildRequires: tcl-devel
BuildRequires: tk
BuildRequires: tk-devel
Requires: python3-dateutil
Requires: python3-numpy >= 1.2.1
Requires: python3-tz
BuildRequires: python3-qt4
## 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
%description
matplotlib is a python 2D plotting library which produces publication
quality figures in a variety of hardcopy formats and interactive
environments across platforms. matplotlib can be used in python
scripts, the python and ipython shell (ala matlab or mathematica), web
application servers, and six graphical user interface toolkits.
%package tk
Summary: Tk backend for python-matplotlib
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: python3-tk
%description tk
Tk backend for python-matplotlib plotting package
%prep
%setup -n matplotlib-%{version}
%patch0 -p0
chmod -x lib/%{modname}/mpl-data/images/*.svg
%build
cp %{SOURCE1} ./setup.cfg
python3 setup.py build
%install
python3 setup.py install -O1 --skip-build --root=%{buildroot} --prefix=%{_prefix}
if [ -d "%{buildroot}%{python3_sitearch}/__pycache__" ]; then
rm -r %{buildroot}%{python3_sitearch}/__pycache__
fi
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt CHANGELOG INSTALL
%doc TODO CXX examples
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/%{modname}-1.2.0-py%{py3_ver}.egg-info
%{python3_sitearch}/mpl_toolkits/
%{python3_sitearch}/pylab.py*
%exclude %{python3_sitearch}/%{modname}/backends/backend_tkagg.*
%exclude %{python3_sitearch}/%{modname}/backends/tkagg.*
%files tk
%defattr(-,root,root,-)
%{python3_sitearch}/%{modname}/backends/backend_tkagg.*
%{python3_sitearch}/%{modname}/backends/tkagg.*
%changelog