Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
python-matplotlib
python-matplotlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-matplotlib.spec of Package python-matplotlib
# # spec file for package python-matplotlib # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define modname matplotlib Name: python-%{modname} Version: 1.1.0 Release: 0 Summary: Plotting Library for Python License: BSD-2-Clause Group: Development/Libraries/Python Url: http://sourceforge.net/projects/%{modname} Source: %{modname}-%{version}.tar.bz2 Source1: %{modname}-setup.cfg Source2: %{modname}plugin.py Source3: %{modname}widget.py BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fltk-devel BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: gtk2-devel BuildRequires: libpng-devel BuildRequires: python-gtk BuildRequires: python-gtk-devel BuildRequires: python-numpy-devel >= 1.2.1 BuildRequires: python-tk BuildRequires: tcl BuildRequires: tcl-devel BuildRequires: tk BuildRequires: tk-devel Requires: python-dateutil Requires: python-numpy >= 1.2.1 Requires: python-tz %py_requires %if 0%{?sles_version} == 11 BuildRequires: gnome-libs-devel BuildRequires: python-qt BuildRequires: python-wxGTK BuildRequires: wxGTK-devel %else BuildRequires: libgnome-devel BuildRequires: python-qt4 BuildRequires: python-wxWidgets BuildRequires: wxWidgets-devel %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %endif ## These packages are required to prevent that matplotlib installs it's ## own versions of the packages from the lib directory BuildRequires: python-dateutil BuildRequires: 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 %{name} Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python-tk %description tk Tk backend for %{name} plotting package %package wx Summary: Wx backend for %{name} Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python-wxGTK %description wx wxWidgets backend for %{name} plotting package %package designer Summary: Qt Designer %{name} plugin Group: Development/Libraries/Python License: MIT Requires: %{name} = %{version} Requires: python-qt4 Requires: qt-creator %description designer This is a plugin and widget to let you use %{name} plots as widget in PyQt4 GUIs using Qt Designer This plugin comes from Python(x,y) %prep %setup -n matplotlib-%{version} chmod -x lib/%{modname}/mpl-data/images/*.svg %build cp %{SOURCE1} ./setup.cfg python setup.py build %install python setup.py install --root=%{buildroot} \ --record-rpm=INSTALLED_FILES --prefix=%{_prefix} mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/ install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/ install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.txt CHANGELOG %doc PKG-INFO TODO CXX examples %{py_sitedir}/%{modname}-%{version}-py%{py_ver}.egg-info %{py_sitedir}/%{modname}/ %{py_sitedir}/mpl_toolkits %{py_sitedir}/pylab.py %{py_sitedir}/pylab.pyc %exclude %{py_sitedir}/%{modname}/backends/backend_tkagg.* %exclude %{py_sitedir}/%{modname}/backends/tkagg.* %exclude %{py_sitedir}/%{modname}/backends/_tkagg.so %exclude %{py_sitedir}/%{modname}/backends/backend_wx.* %exclude %{py_sitedir}/%{modname}/backends/backend_wxagg.* %files tk %defattr(-,root,root,-) %{py_sitedir}/%{modname}/backends/backend_tkagg.* %{py_sitedir}/%{modname}/backends/tkagg.* %{py_sitedir}/%{modname}/backends/_tkagg.so %files wx %defattr(-,root,root,-) %{py_sitedir}/matplotlib/backends/backend_wx.* %{py_sitedir}/matplotlib/backends/backend_wxagg.* %files designer %defattr(-,root,root,-) %dir %{_libdir}/qt4/ %dir %{_libdir}/qt4/plugins/ %dir %{_libdir}/qt4/plugins/designer/ %dir %{_libdir}/qt4/plugins/designer/python/ %{_libdir}/qt4/plugins/designer/python/%{modname}plugin.py %{py_sitedir}/%{modname}widget.py %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor