From 3f5bb51af0bdd5d98c4f22faf7beaa2f1e03b9e3b6185d7d2e265fb5cceff4cc Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 23 Nov 2010 13:45:51 +0000 Subject: [PATCH] Accepting request 52612 from devel:languages:python 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 --- .gitattributes | 23 ++++++ .gitignore | 1 + matplotlib-1.0.0.tar.bz2 | 3 + matplotlib-setup.cfg | 79 +++++++++++++++++++ python-matplotlib.changes | 120 +++++++++++++++++++++++++++++ python-matplotlib.spec | 158 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 384 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 matplotlib-1.0.0.tar.bz2 create mode 100644 matplotlib-setup.cfg create mode 100644 python-matplotlib.changes create mode 100644 python-matplotlib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/matplotlib-1.0.0.tar.bz2 b/matplotlib-1.0.0.tar.bz2 new file mode 100644 index 0000000..4c0aee9 --- /dev/null +++ b/matplotlib-1.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c44af56cf5a63d4c39106a6731f1531ce47d3e11b569f3e8f4b2ee6914753751 +size 11855851 diff --git a/matplotlib-setup.cfg b/matplotlib-setup.cfg new file mode 100644 index 0000000..ed6bfe6 --- /dev/null +++ b/matplotlib-setup.cfg @@ -0,0 +1,79 @@ +# Rename this file to setup.cfg to modify matplotlib's +# build options. + +[egg_info] +tag_svn_revision = 1 + +[status] +# To suppress display of the dependencies and their versions +# at the top of the build log, uncomment the following line: +#suppress = True +# +# Uncomment to insert lots of diagnostic prints in extension code +#verbose = True + +[provide_packages] +# By default, matplotlib checks for a few dependencies and +# installs them if missing. This feature can be turned off +# by uncommenting the following lines. Acceptible values are: +# True: install, overwrite an existing installation +# False: do not install +# auto: install only if the package is unavailable. This +# is the default behavior +# +## Date/timezone support: +pytz = False +dateutil = False + + +[gui_support] +# Matplotlib supports multiple GUI toolkits, including Cocoa, +# GTK, Fltk, MacOSX, Qt, Qt4, Tk, and WX. Support for many of +# these toolkits requires AGG, the Anti-Grain Geometry library, +# which is provided by matplotlib and built by default. +# +# Some backends are written in pure Python, and others require +# extension code to be compiled. By default, matplotlib checks +# for these GUI toolkits during installation and, if present, +# compiles the required extensions to support the toolkit. GTK +# support requires the GTK runtime environment and PyGTK. Wx +# support requires wxWidgets and wxPython. Tk support requires +# Tk and Tkinter. The other GUI toolkits do not require any +# extension code, and can be used as long as the libraries are +# installed on your system. +# +# You can uncomment any the following lines if you know you do +# not want to use the GUI toolkit. Acceptible values are: +# True: build the extension. Exits with a warning if the +# required dependencies are not available +# False: do not build the extension +# auto: build if the required dependencies are available, +# otherwise skip silently. This is the default +# behavior +# +gtk = True +gtkagg = True +tkagg = True +wxagg = True +#macosx = True + +[rc_options] +# User-configurable options +# +# Default backend, one of: Agg, Cairo, CocoaAgg, GTK, GTKAgg, GTKCairo, +# FltkAgg, MacOSX, Pdf, Ps, QtAgg, Qt4Agg, SVG, TkAgg, WX, WXAgg. +# +# The Agg, Ps, Pdf and SVG backends do not require external +# dependencies. Do not choose GTK, GTKAgg, GTKCairo, MacOSX, TkAgg or WXAgg +# if you have disabled the relevent extension modules. Agg will be used +# by default. +# +backend = TkAgg +# +# The numerix module was historically used to provide +# compatibility between the Numeric, numarray, and NumPy array +# packages. Now that NumPy has emerge as the universal array +# package for python, numerix is not really necessary and is +# maintained to provide backward compatibility. Do not change +# this unless you have a compelling reason to do so. +#numerix = numpy diff --git a/python-matplotlib.changes b/python-matplotlib.changes new file mode 100644 index 0000000..dca0606 --- /dev/null +++ b/python-matplotlib.changes @@ -0,0 +1,120 @@ +------------------------------------------------------------------- +Sat Jul 17 00:00:00 UTC 2010 - werner.ho@gmx.de + +- new version 1.0.0 + +------------------------------------------------------------------- +Sat Oct 10 00:00:00 UTC 2009 - werner.ho@gmx.de + +- new version 0.99.1.1 +- config file added (seen at home:ocefpaf project) + +------------------------------------------------------------------- +Fri Dec 19 21:40:55 CET 2008 - lars@linux-schulserver.de + +- Update to 0.98.5.2 + + Fix bug where a line with NULL data limits prevents + subsequent data limits from calculating correctly + + Major documentation generator changes + + Fixed dpi-dependent behavior of Legend and fancybox in Text + + Fix \$ in non-math text with usetex off + + Fix anti-aliasing when auto-snapping + + Fix grid lines not moving correctly during pan and zoom + + Fixed warning in hist() with numpy 1.2 + + Removed the prints in the set_*style commands. Return the + list of pprinted strings instead +- 10.2 is gone: remove specific fixes for this distribution + +------------------------------------------------------------------- +Mon Nov 24 00:00:00 UTC 2008 - werner.ho@gmx.de + +- replaced scipy by numpy as build requirement + +------------------------------------------------------------------- +Wed Aug 20 00:00:00 UTC 2008 - werner.ho@gmx.de + +- removed python-scipy from the requirements list +- added python-dateutil to the requirements list +- added python-pytz to the requirements list + +------------------------------------------------------------------- +Sat Aug 9 00:00:00 UTC 2008 - werner.ho@gmx.de + +- new major version 0.98.3 + +------------------------------------------------------------------- +Tue Aug 5 00:00:00 UTC 2008 - werner.ho@gmx.de + +- new version 0.91.4 + +------------------------------------------------------------------- +Wed Jul 16 00:00:00 CET 2008 - Andrea Florio + +- fixed spec file adding missing buildrequires +- made rpmlint happyer + +------------------------------------------------------------------- +Sat Jun 07 00:00:00 CET 2008 - Werner Hoch + +- new version 0.91.3 + +------------------------------------------------------------------- +Fri Feb 01 00:00:00 CET 2008 - Werner Hoch + +- new version 0.91.2 + +------------------------------------------------------------------- +Fri Dec 07 00:00:00 CET 2007 - Werner Hoch + +- added configobj as an extra requirement +- thus matplotlib will not provide configobj + +------------------------------------------------------------------- +Sun Dec 02 00:00:00 CET 2007 - Werner Hoch + +- new version 0.91.1 +- removed build patches, as the build system has been changed + +------------------------------------------------------------------- +Sat Sep 08 00:00:00 CET 2007 - Werner Hoch + +- fixed build issus of openSUSE 10.3 + +------------------------------------------------------------------- +Sun Jun 03 00:00:00 CET 2007 - Werner Hoch + +- new version 0.90.1 +- added enable_BUILD_WXAGG.patch + +------------------------------------------------------------------- +Thu Mar 22 00:00:00 CET 2007 - Werner Hoch + +- removed X-server patches, use Xvfb instead +- created extra wx and tk packages + +------------------------------------------------------------------- +Tue Mar 20 00:00:00 CET 2007 - Werner Hoch + +- default backend is GTKAgg now +- TkAgg backend works now. Patched the X-Server dependancy away when building + +------------------------------------------------------------------- +Sun Mar 11 00:00:00 CET 2007 - Werner Hoch + +- improved the BuildRequires list. Tkinter backend has still problems + +------------------------------------------------------------------- +Thu Mar 01 00:00:00 CET 2007 - Werner Hoch + +- new version 0.90.0 + +------------------------------------------------------------------- +Tue Oct 31 00:00:00 CET 2006 - Werner Hoch + +- new version 0.87.7 + +------------------------------------------------------------------- +Thu Sep 28 00:00:00 CET 2006 - Werner Hoch + +- Initial build. + diff --git a/python-matplotlib.spec b/python-matplotlib.spec new file mode 100644 index 0000000..f769068 --- /dev/null +++ b/python-matplotlib.spec @@ -0,0 +1,158 @@ +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 + +%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 - 1.0.0 +- new version 1.0.0 +* Sat Oct 10 2009 Werner Hoch - 0.99.1.2 +- use python-qt4 for openSUSE 11.2 +- new version 0.99.1.2 +* Sat Oct 10 2009 Werner Hoch - 0.99.1.1 +- new version 0.99.1.1 +- config file added (seen at home:ocefpaf project) +* Fri Dec 19 2008 Werner Hoch - 0.98.5.2 +- new version 0.98.5.2 +* Mon Nov 24 2008 Werner Hoch - 0.98.3 +- replaced scipy by numpy as build requirement +* Wed Aug 20 2008 Werner Hoch - 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 - 0.98.3 +- new major version 0.98.3 +* Tue Aug 05 2008 Werner Hoch - 0.91.4 +- new version 0.91.4 +* Sat Jun 7 2008 Werner Hoch +- new version 0.91.3 +* Fri Feb 1 2008 Werner Hoch +- new version 0.91.2 +* Fri Dec 7 2007 Werner Hoch +- added configobj as an extra requirement +- thus matplotlib will not provide configobj +* Sun Dec 2 2007 Werner Hoch +- new version 0.91.1 +- removed build patches, as the build system has been changed +* Sat Sep 08 2007 Werner Hoch +- fixed build issus of openSUSE 10.3 +* Sun Jun 03 2007 Werner Hoch +- new version 0.90.1 +- added enable_BUILD_WXAGG.patch +* Thu Mar 22 2007 Werner Hoch +- removed X-server patches, use Xvfb instead +- created extra wx and tk packages +* Tue Mar 20 2007 Werner Hoch +- default backend is GTKAgg now +- TkAgg backend works now. Patched the X-Server dependancy away when building +* Sun Mar 11 2007 Werner Hoch +- improved the BuildRequires list. Tkinter backend has still problems +* Thu Mar 01 2007 Werner Hoch +- new version 0.90.0 +* Tue Oct 31 2006 Werner Hoch +- new version 0.87.7 +* Thu Sep 28 2006 Werner Hoch +- Initial build.