Compare commits
7 Commits
F-12-split
...
python-mat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8b7d4f3da | ||
|
|
8ff61b63f9 | ||
|
|
8e35b281db | ||
|
|
75838bcea2 | ||
|
|
5fb5eb7257 | ||
|
|
18886006d6 | ||
|
|
25dcdf9304 |
@@ -1 +1 @@
|
|||||||
matplotlib-0.98.5.2.tar.gz
|
matplotlib-1.0.0-without-gpc.tar.gz
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ NAME := python-matplotlib
|
|||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
define find-makefile-common
|
define find-makefile-common
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|||||||
17
generate-tarball.sh
Executable file
17
generate-tarball.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
version=$1
|
||||||
|
|
||||||
|
[ -z $version ] && exit 1
|
||||||
|
|
||||||
|
dir=matplotlib-${version}
|
||||||
|
file=matplotlib-${version}.tar.gz
|
||||||
|
result=matplotlib-${version}-without-gpc.tar.gz
|
||||||
|
|
||||||
|
rm -rf matplotlib-${version}
|
||||||
|
tar xzf $file
|
||||||
|
|
||||||
|
rm matplotlib-${version}/agg24/include/agg_conv_gpc.h
|
||||||
|
|
||||||
|
rm -f $result
|
||||||
|
tar czf $result $dir
|
||||||
81
matplotlib_gtk_tooltip.patch
Normal file
81
matplotlib_gtk_tooltip.patch
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
--- lib/matplotlib/backends/backend_gtk.py 2010/02/18 14:54:30 8141
|
||||||
|
+++ lib/matplotlib/backends/backend_gtk.py 2010/03/20 22:49:25 8203
|
||||||
|
@@ -17,6 +17,8 @@
|
||||||
|
% (gtk.pygtk_version + pygtk_version_required))
|
||||||
|
del pygtk_version_required
|
||||||
|
|
||||||
|
+_new_tooltip_api = (gtk.pygtk_version[1] >= 12)
|
||||||
|
+
|
||||||
|
import matplotlib
|
||||||
|
from matplotlib import verbose
|
||||||
|
from matplotlib._pylab_helpers import Gcf
|
||||||
|
@@ -448,7 +450,7 @@
|
||||||
|
# diong a blanket catch here, but an not sure what a
|
||||||
|
# better way is - JDH
|
||||||
|
verbose.report('Could not load matplotlib icon: %s' % sys.exc_info()[1])
|
||||||
|
-
|
||||||
|
+
|
||||||
|
self.vbox = gtk.VBox()
|
||||||
|
self.window.add(self.vbox)
|
||||||
|
self.vbox.show()
|
||||||
|
@@ -618,7 +620,8 @@
|
||||||
|
|
||||||
|
def _init_toolbar2_4(self):
|
||||||
|
basedir = os.path.join(matplotlib.rcParams['datapath'],'images')
|
||||||
|
- self.tooltips = gtk.Tooltips()
|
||||||
|
+ if not _new_tooltip_api:
|
||||||
|
+ self.tooltips = gtk.Tooltips()
|
||||||
|
|
||||||
|
for text, tooltip_text, image_file, callback in self.toolitems:
|
||||||
|
if text is None:
|
||||||
|
@@ -630,7 +633,10 @@
|
||||||
|
tbutton = gtk.ToolButton(image, text)
|
||||||
|
self.insert(tbutton, -1)
|
||||||
|
tbutton.connect('clicked', getattr(self, callback))
|
||||||
|
- tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
|
||||||
|
+ if _new_tooltip_api:
|
||||||
|
+ tbutton.set_tooltip_text(tooltip_text)
|
||||||
|
+ else:
|
||||||
|
+ tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
|
||||||
|
|
||||||
|
toolitem = gtk.SeparatorToolItem()
|
||||||
|
self.insert(toolitem, -1)
|
||||||
|
@@ -760,7 +766,8 @@
|
||||||
|
def _create_toolitems_2_4(self):
|
||||||
|
# use the GTK+ 2.4 GtkToolbar API
|
||||||
|
iconSize = gtk.ICON_SIZE_SMALL_TOOLBAR
|
||||||
|
- self.tooltips = gtk.Tooltips()
|
||||||
|
+ if not _new_tooltip_api:
|
||||||
|
+ self.tooltips = gtk.Tooltips()
|
||||||
|
|
||||||
|
for text, tooltip_text, image_num, callback, callback_arg, scroll \
|
||||||
|
in self.toolitems:
|
||||||
|
@@ -778,15 +785,22 @@
|
||||||
|
tbutton.connect('clicked', getattr(self, callback))
|
||||||
|
if scroll:
|
||||||
|
tbutton.connect('scroll_event', getattr(self, callback))
|
||||||
|
- tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
|
||||||
|
+ if _new_tooltip_api:
|
||||||
|
+ tbutton.set_tooltip_text(tooltip_text)
|
||||||
|
+ else:
|
||||||
|
+ tbutton.set_tooltip(self.tooltips, tooltip_text, 'Private')
|
||||||
|
|
||||||
|
# Axes toolitem, is empty at start, update() adds a menu if >=2 axes
|
||||||
|
self.axes_toolitem = gtk.ToolItem()
|
||||||
|
self.insert(self.axes_toolitem, 0)
|
||||||
|
- self.axes_toolitem.set_tooltip (
|
||||||
|
- self.tooltips,
|
||||||
|
- tip_text='Select axes that controls affect',
|
||||||
|
- tip_private = 'Private')
|
||||||
|
+ if _new_tooltip_api:
|
||||||
|
+ self.axes_toolitem.set_tooltip_text(
|
||||||
|
+ 'Select axes that controls affect')
|
||||||
|
+ else:
|
||||||
|
+ self.axes_toolitem.set_tooltip (
|
||||||
|
+ self.tooltips,
|
||||||
|
+ tip_text='Select axes that controls affect',
|
||||||
|
+ tip_private = 'Private')
|
||||||
|
|
||||||
|
align = gtk.Alignment (xalign=0.5, yalign=0.5, xscale=0.0, yscale=0.0)
|
||||||
|
self.axes_toolitem.add(align)
|
||||||
|
|
||||||
@@ -1,16 +1,21 @@
|
|||||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
Name: python-matplotlib
|
Name: python-matplotlib
|
||||||
Version: 0.98.5.2
|
Version: 1.0.0
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python plotting library
|
Summary: Python plotting library
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: Python
|
License: Python
|
||||||
URL: http://sourceforge.net/projects/matplotlib
|
URL: http://sourceforge.net/projects/matplotlib
|
||||||
Source0: http://downloads.sourceforge.net/matplotlib/matplotlib-%{version}.tar.gz
|
#Modified Sources to remove the one undistributable file
|
||||||
|
#See generate-tarball.sh in fedora cvs repository for logic
|
||||||
|
#sha1sum matplotlib-1.0.0-without-gpc.tar.gz
|
||||||
|
#c3c2cb82ee122b36977f636948bb4a79b15c03ba matplotlib-1.0.0-without-gpc.tar.gz
|
||||||
|
Source0: http://downloads.sourceforge.net/matplotlib/matplotlib-%{version}-without-gpc.tar.gz
|
||||||
Source1: setup.cfg
|
Source1: setup.cfg
|
||||||
Patch0: matplotlib-gcc43.patch
|
Patch0: matplotlib-gcc43.patch
|
||||||
|
Patch1: matplotlib_gtk_tooltip.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: python-devel, freetype-devel, libpng-devel, zlib-devel
|
BuildRequires: python-devel, freetype-devel, libpng-devel, zlib-devel
|
||||||
@@ -39,7 +44,9 @@ Requires: tkinter
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n matplotlib-%{version}
|
%setup -q -n matplotlib-%{version}
|
||||||
|
#%setup -q -n matplotlib-0.99.3
|
||||||
#%patch0 -p1
|
#%patch0 -p1
|
||||||
|
#%patch1 -p0
|
||||||
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -78,6 +85,25 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 8 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 1.0.0-1
|
||||||
|
- New upstream release
|
||||||
|
- Remove undistributable file from bundled agg library
|
||||||
|
|
||||||
|
* Thu Jul 1 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.99.3-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Thu May 27 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.99.1.2-4
|
||||||
|
- Upstream patch to fix deprecated gtk tooltip warning.
|
||||||
|
|
||||||
|
* Mon Apr 12 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.99.1.2-2
|
||||||
|
- Bump to rebuild against numpy 1.3
|
||||||
|
|
||||||
|
* Thu Apr 1 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.99.1.2-1
|
||||||
|
- Bump to rebuild against numpy 1.4.0
|
||||||
|
|
||||||
|
* Fri Dec 11 2009 Jon Ciesla <limb@jcomserv.net> - 0.99.1.2
|
||||||
|
- Update to 0.99.1.2
|
||||||
|
|
||||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.5.2-5
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.5.2-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user