forked from pool/python-matplotlib
Marcus Rueckert
3f5bb51af0
Accepted submit request 52612 from user coolo OBS-URL: https://build.opensuse.org/request/show/52612 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=1
159 lines
5.1 KiB
RPMSpec
159 lines
5.1 KiB
RPMSpec
Name: python-matplotlib
|
|
License: BSD
|
|
Group: Development/Libraries/Python
|
|
Version: 1.0.0
|
|
Release: 0
|
|
Autoreqprov: on
|
|
|
|
Summary: Plotting Library for Python
|
|
URL: http://sourceforge.net/projects/matplotlib
|
|
Source: matplotlib-%{version}.tar.bz2
|
|
Source1: matplotlib-setup.cfg
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Prefix: %{_prefix}
|
|
Packager: Werner Hoch <werner.ho@gmx.de>
|
|
|
|
%py_requires
|
|
Requires: python-numpy >= 1.2.1
|
|
Requires: python-configobj python-dateutil python-tz
|
|
BuildRequires: python-numpy-devel >= 1.2.1
|
|
BuildRequires: gcc-c++ libstdc++ tk tcl
|
|
BuildRequires: freetype2-devel libpng-devel gtk2-devel tk-devel tcl-devel wxGTK-devel
|
|
BuildRequires: python-wxGTK python-tk fltk-devel python-gtk
|
|
BuildRequires: python-gtk-devel
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildRequires: python-qt4
|
|
%else
|
|
BuildRequires: python-qt
|
|
%endif
|
|
%if 0%{?suse_version} >= 1130
|
|
BuildRequires: libgnome-devel
|
|
%else
|
|
BuildRequires: gnome-libs-devel
|
|
%endif
|
|
|
|
## 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
|
|
|
|
%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}-%{release}
|
|
Requires: python-tk
|
|
|
|
%description tk
|
|
Tk backend for python-matplotlib plotting package
|
|
|
|
%package wx
|
|
Summary: Wx backend for python-matplotlib
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: python-wxGTK
|
|
|
|
%description wx
|
|
wxWidgets backend for python-matplotlib plotting package
|
|
|
|
%prep
|
|
%setup -n matplotlib-%{version}
|
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
|
|
|
%build
|
|
cp %{SOURCE1} ./setup.cfg
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --root=$RPM_BUILD_ROOT \
|
|
--record-rpm=INSTALLED_FILES --prefix=%{_prefix}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.txt CHANGELOG INSTALL INTERACTIVE KNOWN_BUGS
|
|
%doc PKG-INFO TODO CXX examples license
|
|
%{py_sitedir}/*
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
|
%exclude %{py_sitedir}/matplotlib/backends/tkagg.*
|
|
%exclude %{py_sitedir}/matplotlib/backends/_tkagg.so
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_wx.*
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
|
%if %suse_version <= 1020
|
|
%exclude %{py_sitedir}/matplotlib/backends/_wxagg.so
|
|
%endif
|
|
|
|
%files tk
|
|
%defattr(-,root,root,-)
|
|
%{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
|
%{py_sitedir}/matplotlib/backends/tkagg.*
|
|
%{py_sitedir}/matplotlib/backends/_tkagg.so
|
|
|
|
%files wx
|
|
%defattr(-,root,root,-)
|
|
%{py_sitedir}/matplotlib/backends/backend_wx.*
|
|
%{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
|
%if %suse_version <= 1020
|
|
%{py_sitedir}/matplotlib/backends/_wxagg.so
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
* Fri Jul 17 2010 Werner Hoch <werner.ho@gmx.de> - 1.0.0
|
|
- new version 1.0.0
|
|
* Sat Oct 10 2009 Werner Hoch <werner.ho@gmx.de> - 0.99.1.2
|
|
- use python-qt4 for openSUSE 11.2
|
|
- new version 0.99.1.2
|
|
* Sat Oct 10 2009 Werner Hoch <werner.ho@gmx.de> - 0.99.1.1
|
|
- new version 0.99.1.1
|
|
- config file added (seen at home:ocefpaf project)
|
|
* Fri Dec 19 2008 Werner Hoch <werner.ho@gmx.de> - 0.98.5.2
|
|
- new version 0.98.5.2
|
|
* Mon Nov 24 2008 Werner Hoch <werner.ho@gmx.de> - 0.98.3
|
|
- replaced scipy by numpy as build requirement
|
|
* Wed Aug 20 2008 Werner Hoch <werner.ho@gmx.de> - 0.98.3
|
|
- removed python-scipy from the requirements list
|
|
- added python-dateutil to the requirements list
|
|
- added python-pytz to the requirements list
|
|
* Sat Aug 09 2008 Werner Hoch <werner.ho@gmx.de> - 0.98.3
|
|
- new major version 0.98.3
|
|
* Tue Aug 05 2008 Werner Hoch <werner.ho@gmx.de> - 0.91.4
|
|
- new version 0.91.4
|
|
* Sat Jun 7 2008 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.91.3
|
|
* Fri Feb 1 2008 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.91.2
|
|
* Fri Dec 7 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- added configobj as an extra requirement
|
|
- thus matplotlib will not provide configobj
|
|
* Sun Dec 2 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.91.1
|
|
- removed build patches, as the build system has been changed
|
|
* Sat Sep 08 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- fixed build issus of openSUSE 10.3
|
|
* Sun Jun 03 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.90.1
|
|
- added enable_BUILD_WXAGG.patch
|
|
* Thu Mar 22 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- removed X-server patches, use Xvfb instead
|
|
- created extra wx and tk packages
|
|
* Tue Mar 20 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- default backend is GTKAgg now
|
|
- TkAgg backend works now. Patched the X-Server dependancy away when building
|
|
* Sun Mar 11 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- improved the BuildRequires list. Tkinter backend has still problems
|
|
* Thu Mar 01 2007 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.90.0
|
|
* Tue Oct 31 2006 Werner Hoch <werner.ho@gmx.de>
|
|
- new version 0.87.7
|
|
* Thu Sep 28 2006 Werner Hoch <werner.ho@gmx.de>
|
|
- Initial build.
|