Accepting request 60257 from devel:languages:python

Accepted submit request 60257 from user lrupp

OBS-URL: https://build.opensuse.org/request/show/60257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=7
This commit is contained in:
Ruediger Oertel
2011-02-07 22:51:18 +00:00
committed by Git OBS Bridge
parent bf67e8751b
commit 73c07bc9f1
4 changed files with 54 additions and 23 deletions

View File

@@ -18,11 +18,10 @@
Name: python-matplotlib
Version: 1.0.1
Release: 3
License: BSD
Group: Development/Libraries/Python
Version: 1.0.0
Release: 3
AutoReqProv: on
Summary: Plotting Library for Python
Url: http://sourceforge.net/projects/matplotlib
@@ -30,19 +29,30 @@ Source: matplotlib-%{version}.tar.bz2
Source1: matplotlib-setup.cfg
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix}
%py_requires
Requires: python-numpy >= 1.2.1
Requires: python-configobj python-dateutil python-tz
BuildRequires: fltk-devel
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: libpng-devel
BuildRequires: python-gtk
BuildRequires: python-numpy-devel >= 1.2.1
BuildRequires: gcc-c++ tcl tk
BuildRequires: freetype2-devel gtk2-devel libpng-devel tcl-devel tk-devel
BuildRequires: fltk-devel python-gtk python-tk
BuildRequires: python-tk
BuildRequires: tcl
BuildRequires: tcl-devel
BuildRequires: tk
BuildRequires: tk-devel
Requires: python-configobj
Requires: python-dateutil
Requires: python-numpy >= 1.2.1
Requires: python-tz
%py_requires
%if %suse_version > 1130
BuildRequires: python-wxWidgets wxWidgets-devel
BuildRequires: python-wxWidgets
BuildRequires: wxWidgets-devel
%else
BuildRequires: python-wxGTK wxGTK-devel
BuildRequires: python-wxGTK
BuildRequires: wxGTK-devel
%endif
BuildRequires: python-gtk-devel
%if 0%{?suse_version} >= 1120
@@ -60,11 +70,13 @@ BuildRequires: gnome-libs-devel
%define __find_requires %wx_requires
%endif
## These packages are required to prevent that matplotlib installs it's
## These packages are required to prevent that matplotlib installs it's
## own versions of the packages from the lib directory
BuildRequires: python-configobj python-dateutil python-tz
BuildRequires: python-configobj
BuildRequires: python-dateutil
BuildRequires: python-tz
%description
%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
@@ -75,7 +87,7 @@ application servers, and six graphical user interface toolkits.
License: BSD
Summary: Tk backend for python-matplotlib
Group: Development/Libraries/Python
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
Requires: python-tk
%description tk
@@ -85,7 +97,7 @@ Tk backend for python-matplotlib plotting package
License: BSD
Summary: Wx backend for python-matplotlib
Group: Development/Libraries/Python
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
Requires: python-wxGTK
%description wx
@@ -100,15 +112,15 @@ cp %{SOURCE1} ./setup.cfg
python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT \
python setup.py install --root=%{buildroot} \
--record-rpm=INSTALLED_FILES --prefix=%{_prefix}
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt CHANGELOG INSTALL INTERACTIVE KNOWN_BUGS
%doc README.txt CHANGELOG INSTALL INTERACTIVE KNOWN_BUGS
%doc PKG-INFO TODO CXX examples license
%{py_sitedir}/*
%exclude %{py_sitedir}/matplotlib/backends/backend_tkagg.*