From 61aa382649590487f2f60616f3ce9de457acf004 Mon Sep 17 00:00:00 2001 From: Jef Spaleta Date: Mon, 24 Mar 2008 19:31:26 +0000 Subject: [PATCH] - gcc43 cleanups --- matplotlib-gcc43.patch | 63 ++++++++++++++++++++++++++++++++++++++++++ python-matplotlib.spec | 7 ++++- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 matplotlib-gcc43.patch diff --git a/matplotlib-gcc43.patch b/matplotlib-gcc43.patch new file mode 100644 index 0000000..7bbc66b --- /dev/null +++ b/matplotlib-gcc43.patch @@ -0,0 +1,63 @@ +diff -u -r matplotlib-0.91.2-old/ttconv/pprdrv.h matplotlib-0.91.2/ttconv/pprdrv.h +--- matplotlib-0.91.2-old/ttconv/pprdrv.h 2007-11-29 17:36:53.000000000 -0900 ++++ matplotlib-0.91.2/ttconv/pprdrv.h 2008-03-21 13:58:01.000000000 -0800 +@@ -20,7 +20,7 @@ + */ + + #include +-#include ++#include + + /* + * Encapsulates all of the output to write to an arbitrary output +diff -u -r matplotlib-0.91.2-old/ttconv/pprdrv_tt2.cpp matplotlib-0.91.2/ttconv/pprdrv_tt2.cpp +--- matplotlib-0.91.2-old/ttconv/pprdrv_tt2.cpp 2007-11-29 17:36:53.000000000 -0900 ++++ matplotlib-0.91.2/ttconv/pprdrv_tt2.cpp 2008-03-21 16:04:49.000000000 -0800 +@@ -31,10 +31,11 @@ + */ + + #include "global_defines.h" +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include ++#include + #include "pprdrv.h" + #include "truetype.h" + #include +diff -u -r matplotlib-0.91.2-old/ttconv/pprdrv_tt.cpp matplotlib-0.91.2/ttconv/pprdrv_tt.cpp +--- matplotlib-0.91.2-old/ttconv/pprdrv_tt.cpp 2007-11-29 17:36:53.000000000 -0900 ++++ matplotlib-0.91.2/ttconv/pprdrv_tt.cpp 2008-03-21 15:57:42.000000000 -0800 +@@ -23,9 +23,9 @@ + */ + + #include "global_defines.h" +-#include +-#include +-#include ++#include ++#include ++#include + #include "pprdrv.h" + #include "truetype.h" + #include +diff -u -r matplotlib-0.91.2-old/ttconv/ttutil.cpp matplotlib-0.91.2/ttconv/ttutil.cpp +--- matplotlib-0.91.2-old/ttconv/ttutil.cpp 2007-11-29 17:36:53.000000000 -0900 ++++ matplotlib-0.91.2/ttconv/ttutil.cpp 2008-03-24 11:25:06.000000000 -0800 +@@ -8,9 +8,9 @@ + /* (c) Frank Siegert 1996 */ + + #include "global_defines.h" +-#include +-#include +-#include ++#include ++#include ++#include + #include "pprdrv.h" + + #if DEBUG_TRUETYPE diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 7d3e40f..bf9d7c3 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -2,7 +2,7 @@ Name: python-matplotlib Version: 0.91.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python plotting library Group: Development/Libraries @@ -10,6 +10,7 @@ License: Python URL: http://sourceforge.net/projects/matplotlib Source0: http://downloads.sourceforge.net/matplotlib/matplotlib-%{version}.tar.gz Source1: setup.cfg +Patch0: matplotlib-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, freetype-devel, libpng-devel, zlib-devel @@ -38,6 +39,7 @@ Requires: tkinter %prep %setup -q -n matplotlib-%{version} +%patch0 -p1 chmod -x lib/matplotlib/mpl-data/images/*.svg %build @@ -74,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Mar 21 2008 Jef Spaleta - 0.91.2-2 +- gcc43 cleanups + * Fri Mar 21 2008 Jef Spaleta - 0.91.2-1 - New upstream version - Adding Fedora specific setup.cfg from included template