1
0

Accepting request 204620 from devel:languages:python

- Update to version 1.3.1:
  + Many changes

OBS-URL: https://build.opensuse.org/request/show/204620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=28
This commit is contained in:
Tomáš Chvátal 2013-10-25 09:21:32 +00:00 committed by Git OBS Bridge
parent 23dc5bf77d
commit a8952b214f
4 changed files with 31 additions and 33 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e37044911245d7d881ddab0152cfec463c597b9a207c7f87021b8f40e1cbd98
size 42098180

3
matplotlib-1.3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea16679d9476ab2757102e80327f31eb8e6c2cb09e2be89715c02e4e8fbdaf6a
size 42163182

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 24 12:47:42 UTC 2013 - speilicke@suse.com
- Update to version 1.3.1:
+ Many changes
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 29 14:37:16 UTC 2013 - jmatejek@suse.com Thu Aug 29 14:37:16 UTC 2013 - jmatejek@suse.com

View File

@ -16,21 +16,18 @@
# #
%define modname matplotlib Name: python-matplotlib
Name: python-%{modname} Version: 1.3.1
Version: 1.3.0
Release: 0 Release: 0
Summary: Plotting Library for Python Summary: Plotting Library for Python
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://sourceforge.net/projects/%{modname} Url: http://sourceforge.net/projects/matplotlib
Source: %{modname}-%{version}.tar.gz Source: matplotlib-%{version}.tar.gz
Source1: %{modname}-setup.cfg Source1: matplotlib-setup.cfg
Source2: %{modname}plugin.py Source2: matplotlibplugin.py
Source3: %{modname}widget.py Source3: matplotlibwidget.py
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fltk-devel BuildRequires: fltk-devel
BuildRequires: freetype2-devel BuildRequires: freetype2-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -63,7 +60,6 @@ BuildRequires: wxWidgets-devel
%define _use_internal_dependency_generator 0 %define _use_internal_dependency_generator 0
%define __find_requires %wx_requires %define __find_requires %wx_requires
%endif %endif
## These packages are required to prevent that matplotlib installs it's ## These packages are required to prevent that matplotlib installs it's
## own versions of the packages from the lib directory ## own versions of the packages from the lib directory
BuildRequires: python-dateutil BuildRequires: python-dateutil
@ -112,43 +108,39 @@ This plugin comes from Python(x,y)
%prep %prep
%setup -n matplotlib-%{version} %setup -n matplotlib-%{version}
chmod -x lib/%{modname}/mpl-data/images/*.svg chmod -x lib/matplotlib/mpl-data/images/*.svg
%build %build
cp %{SOURCE1} ./setup.cfg cp %{SOURCE1} ./setup.cfg
python setup.py build python setup.py build
%install %install
python setup.py install --root=%{buildroot} \ python setup.py install --root=%{buildroot} --prefix=%{_prefix}
--record-rpm=INSTALLED_FILES --prefix=%{_prefix}
mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/ mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/
install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/ install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/
install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/ install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst CHANGELOG %doc README.rst CHANGELOG
%doc PKG-INFO TODO CXX examples %doc PKG-INFO TODO CXX examples
%{py_sitedir}/%{modname}-%{version}_r0-py%{py_ver}.egg-info %{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}.egg-info
%{py_sitedir}/%{modname}-%{version}_r0-py%{py_ver}-nspkg.pth %{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}-nspkg.pth
%{py_sitedir}/%{modname}/ %{py_sitedir}/matplotlib/
%{py_sitedir}/mpl_toolkits %{py_sitedir}/mpl_toolkits
%{py_sitedir}/pylab.py %{py_sitedir}/pylab.py
%{py_sitedir}/pylab.pyc %{py_sitedir}/pylab.pyc
%exclude %{py_sitedir}/%{modname}/backends/backend_tkagg.* %exclude %{py_sitedir}/matplotlib/backends/backend_tkagg.*
%exclude %{py_sitedir}/%{modname}/backends/tkagg.* %exclude %{py_sitedir}/matplotlib/backends/tkagg.*
%exclude %{py_sitedir}/%{modname}/backends/_tkagg.so %exclude %{py_sitedir}/matplotlib/backends/_tkagg.so
%exclude %{py_sitedir}/%{modname}/backends/backend_wx.* %exclude %{py_sitedir}/matplotlib/backends/backend_wx.*
%exclude %{py_sitedir}/%{modname}/backends/backend_wxagg.* %exclude %{py_sitedir}/matplotlib/backends/backend_wxagg.*
%files tk %files tk
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{py_sitedir}/%{modname}/backends/backend_tkagg.* %{py_sitedir}/matplotlib/backends/backend_tkagg.*
%{py_sitedir}/%{modname}/backends/tkagg.* %{py_sitedir}/matplotlib/backends/tkagg.*
%{py_sitedir}/%{modname}/backends/_tkagg.so %{py_sitedir}/matplotlib/backends/_tkagg.so
%files wx %files wx
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -161,7 +153,7 @@ rm -rf %{buildroot}
%dir %{_libdir}/qt4/plugins/ %dir %{_libdir}/qt4/plugins/
%dir %{_libdir}/qt4/plugins/designer/ %dir %{_libdir}/qt4/plugins/designer/
%dir %{_libdir}/qt4/plugins/designer/python/ %dir %{_libdir}/qt4/plugins/designer/python/
%{_libdir}/qt4/plugins/designer/python/%{modname}plugin.py %{_libdir}/qt4/plugins/designer/python/matplotlibplugin.py
%{py_sitedir}/%{modname}widget.py %{py_sitedir}/matplotlibwidget.py
%changelog %changelog