1
0

Accepting request 242026 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/242026
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=33
This commit is contained in:
Stephan Kulow
2014-07-23 20:07:19 +00:00
committed by Git OBS Bridge
parent 24b00dec60
commit 3adca68032
3 changed files with 39 additions and 2 deletions

View File

@@ -20,13 +20,14 @@ Name: python-matplotlib
Version: 1.3.1
Release: 0
Summary: Plotting Library for Python
License: BSD-2-Clause
License: SUSE-Matplotlib
Group: Development/Libraries/Python
Url: http://sourceforge.net/projects/matplotlib
Source: matplotlib-%{version}.tar.gz
Source1: matplotlib-setup.cfg
Source2: matplotlibplugin.py
Source3: matplotlibwidget.py
Patch0: use-setuptools.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: fltk-devel
@@ -187,13 +188,20 @@ for %{name} plotting package
%prep
%setup -q -n matplotlib-%{version}
%patch0
chmod -x lib/matplotlib/mpl-data/images/*.svg
%build
cp %{SOURCE1} ./setup.cfg
%if 0%{?suse_version} > 1310
export XDG_RUNTIME_DIR=/tmp
%endif
python setup.py build
%install
%if 0%{?suse_version} > 1310
export XDG_RUNTIME_DIR=/tmp
%endif
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
# Install designer plugin
@@ -207,7 +215,7 @@ install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
%files
%defattr(-,root,root,-)
%doc README.rst CHANGELOG PKG-INFO TODO CXX examples doc/users/license.rst
%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/