Update to 1.3.1 and use GTKAgg backend
bugs closed: #1030396, #982793, #1049624
This commit is contained in:
@@ -3,3 +3,4 @@ matplotlib-1.0.0-without-gpc.tar.gz
|
|||||||
/mpl_sampledata-1.0.1.tar.gz
|
/mpl_sampledata-1.0.1.tar.gz
|
||||||
/matplotlib-1.2.0-without-gpc.tar.gz
|
/matplotlib-1.2.0-without-gpc.tar.gz
|
||||||
/matplotlib-1.3.0-without-gpc.tar.xz
|
/matplotlib-1.3.0-without-gpc.tar.xz
|
||||||
|
/matplotlib-1.3.1-without-gpc.tar.xz
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
diff --git a/setupext.py b/setupext.py
|
--- setupext.py.orig 2014-01-25 15:06:39.460916454 +0100
|
||||||
index 7b629b6..8131bb1 100644
|
+++ setupext.py 2014-01-25 15:06:53.080946205 +0100
|
||||||
--- a/setupext.py
|
@@ -768,12 +768,6 @@
|
||||||
+++ b/setupext.py
|
|
||||||
@@ -674,16 +674,9 @@ class CXX(SetupPackage):
|
|
||||||
name = 'pycxx'
|
name = 'pycxx'
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
@@ -12,11 +10,6 @@ index 7b629b6..8131bb1 100644
|
|||||||
- self.__class__.found_external = False
|
- self.__class__.found_external = False
|
||||||
- return ("Official versions of PyCXX are not compatible with "
|
- return ("Official versions of PyCXX are not compatible with "
|
||||||
- "Python 3.x. Using local copy")
|
- "Python 3.x. Using local copy")
|
||||||
-
|
|
||||||
self.__class__.found_external = True
|
self.__class__.found_external = True
|
||||||
old_stdout = sys.stdout
|
old_stdout = sys.stdout
|
||||||
- sys.stdout = io.BytesIO()
|
|
||||||
+ #sys.stdout = io.BytesIO()
|
|
||||||
try:
|
|
||||||
import CXX
|
|
||||||
except ImportError:
|
|
||||||
|
|||||||
+27
-2
@@ -6,6 +6,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%global __provides_exclude_from .*/site-packages/.*\\.so$
|
%global __provides_exclude_from .*/site-packages/.*\\.so$
|
||||||
%global with_html 1
|
%global with_html 1
|
||||||
|
%global run_tests 0
|
||||||
|
|
||||||
# On RHEL 7 onwards, don't build with wx:
|
# On RHEL 7 onwards, don't build with wx:
|
||||||
%if 0%{?rhel} >= 7
|
%if 0%{?rhel} >= 7
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-matplotlib
|
Name: python-matplotlib
|
||||||
Version: 1.3.0
|
Version: 1.3.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python 2D plotting library
|
Summary: Python 2D plotting library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@@ -28,6 +29,7 @@ URL: http://matplotlib.org
|
|||||||
#sha1sum matplotlib-1.2.0-without-gpc.tar.gz
|
#sha1sum matplotlib-1.2.0-without-gpc.tar.gz
|
||||||
#92ada4ef4e7374d67e46e30bfb08c3fed068d680 matplotlib-1.2.0-without-gpc.tar.gz
|
#92ada4ef4e7374d67e46e30bfb08c3fed068d680 matplotlib-1.2.0-without-gpc.tar.gz
|
||||||
Source0: matplotlib-%{version}-without-gpc.tar.xz
|
Source0: matplotlib-%{version}-without-gpc.tar.xz
|
||||||
|
Source1: setup.cfg
|
||||||
|
|
||||||
Patch0: %{name}-noagg.patch
|
Patch0: %{name}-noagg.patch
|
||||||
Patch1: %{name}-system-cxx.patch
|
Patch1: %{name}-system-cxx.patch
|
||||||
@@ -182,12 +184,18 @@ Requires: python3-tkinter
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n matplotlib-%{version}
|
%setup -q -n matplotlib-%{version}
|
||||||
|
|
||||||
|
# Copy setup.cfg to the builddir
|
||||||
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
|
# Use fontconfig by default
|
||||||
|
sed -i 's/\(USE_FONTCONFIG = \)False/\1True/' lib/matplotlib/font_manager.py
|
||||||
|
|
||||||
# Remove bundled libraries
|
# Remove bundled libraries
|
||||||
rm -r agg24 CXX
|
rm -r agg24 CXX
|
||||||
|
|
||||||
# Remove references to bundled libraries
|
# Remove references to bundled libraries
|
||||||
%patch0 -b .noagg
|
%patch0 -b .noagg
|
||||||
%patch1 -p1 -b .cxx
|
%patch1 -b .cxx
|
||||||
|
|
||||||
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
||||||
|
|
||||||
@@ -231,6 +239,17 @@ pushd %{py3dir}
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{run_tests}
|
||||||
|
%check
|
||||||
|
PYTHON_PATH=$RPM_BUILD_ROOT%{python_sitearch} \
|
||||||
|
%{__python} -c "import matplotlib; matplotlib.test()"
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
PYTHON_PATH=$RPM_BUILD_ROOT%{python3_sitearch} \
|
||||||
|
%{__python3} -c "import matplotlib; matplotlib.test()"
|
||||||
|
%endif
|
||||||
|
%endif # run_tests
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%doc LICENSE/
|
%doc LICENSE/
|
||||||
@@ -312,6 +331,12 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 25 2014 Thomas Spura <tomspur@fedoraproject.org> - 1.3.1-1
|
||||||
|
- update to 1.3.1
|
||||||
|
- use GTKAgg as backend (#1030396, #982793, #1049624)
|
||||||
|
- use fontconfig
|
||||||
|
- add %%check for local testing (testing requires a display)
|
||||||
|
|
||||||
* Wed Aug 7 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.3.0-1
|
* Wed Aug 7 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.3.0-1
|
||||||
- update to new version
|
- update to new version
|
||||||
- use xz to compress sources
|
- use xz to compress sources
|
||||||
|
|||||||
Reference in New Issue
Block a user