2024-01-06 11:26:20 +01:00
|
|
|
Name: python-matplotlib
|
2024-01-06 11:26:21 +01:00
|
|
|
Version: 1.5.3
|
2024-01-06 11:26:21 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 11:26:20 +01:00
|
|
|
Summary: Python plotting library
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://matplotlib.sourceforge.net/
|
2024-01-06 11:26:21 +01:00
|
|
|
Source0: https://github.com/matplotlib/matplotlib.git/v%{version}/matplotlib-%{version}.tar.bz2
|
|
|
|
#Source0: http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-%{version}/matplotlib-%{version}.tar.gz
|
2024-01-06 11:26:20 +01:00
|
|
|
Source1: python-matplotlib-1.0.1-setup.cfg
|
|
|
|
License: Python
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libatk-devel
|
|
|
|
BuildRequires: libcairo-devel
|
|
|
|
BuildRequires: libfontconfig-devel
|
|
|
|
BuildRequires: libfreetype-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
|
|
BuildRequires: libglib-devel
|
|
|
|
BuildRequires: libgtk2-devel
|
|
|
|
BuildRequires: libpango-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libtcl-devel
|
|
|
|
BuildRequires: libtk-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: pygtk-devel
|
|
|
|
BuildRequires: python-tk
|
|
|
|
BuildRequires: wxPython
|
2024-01-06 11:26:21 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
BuildRequires: python3-tk
|
|
|
|
%endif
|
2024-01-06 11:26:20 +01:00
|
|
|
# BuildRequires: PyQt
|
|
|
|
# BuildRequires: PyQt4-devel
|
|
|
|
Requires: dejavu-fonts-ttf
|
2024-01-06 11:26:21 +01:00
|
|
|
Requires: python-dateutil%{?pyappend}
|
|
|
|
Requires: python-numpy%{?pyappend}
|
|
|
|
Requires: python-tz%{?pyappend}
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
Requires: py%{?pyver:%pyver}cairo
|
|
|
|
%else
|
2024-01-06 11:26:20 +01:00
|
|
|
Requires: py2cairo
|
2024-01-06 11:26:21 +01:00
|
|
|
%endif
|
|
|
|
Requires: python-cycler%{?pyappend}
|
2024-01-06 11:26:21 +01:00
|
|
|
Requires: python-dateutil%{?pyappend}
|
2024-01-06 11:26:21 +01:00
|
|
|
Requires: python-pyparsing%{?pyappend}
|
|
|
|
Requires: python-setuptools%{?pyappend}
|
|
|
|
Requires: python-six%{?pyappend}
|
2024-01-06 11:26:21 +01:00
|
|
|
Requires: pygobject%{?pyappend}
|
2024-01-06 11:26:20 +01:00
|
|
|
Requires: python >= %python_version
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
%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.
|
2024-01-06 11:26:20 +01:00
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
2024-01-06 11:26:20 +01:00
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
%package py%{pyver}
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Summary: Python plotting library
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description py%{pyver}
|
|
|
|
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.
|
2024-01-06 11:26:20 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n matplotlib-%{version}
|
|
|
|
|
|
|
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
|
|
|
cp %{SOURCE1} ./setup.cfg
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
sed -i "s|gtk = True|gtk = False|" setup.cfg
|
|
|
|
sed -i "s|gtkagg = True|gtkagg = False|" setup.cfg
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:26:20 +01:00
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
2024-01-06 11:26:21 +01:00
|
|
|
--install-headers=%{python_inc} \
|
2024-01-06 11:26:20 +01:00
|
|
|
--install-lib=%{python_sitearch}
|
|
|
|
|
|
|
|
chmod +x %{buildroot}%{python_sitearch}/matplotlib/dates.py
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/matplotlib/mpl-data/fonts
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 11:26:20 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/*.py*
|
|
|
|
%dir %{python_sitearch}/matplotlib
|
2024-01-06 11:26:21 +01:00
|
|
|
%{python_sitearch}/matplotlib/*
|
2024-01-06 11:26:20 +01:00
|
|
|
%dir %{python_sitearch}/mpl_toolkits
|
2024-01-06 11:26:21 +01:00
|
|
|
%{python_sitearch}/mpl_toolkits/*
|
2024-01-06 11:26:21 +01:00
|
|
|
%{python_sitearch}/matplotlib-%{version}.post0-py*
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%{python3_sitearch}/__pycache__/pylab.cpython*.py*
|
|
|
|
%endif
|
2024-01-06 11:26:20 +01:00
|
|
|
%doc LICENSE/LICENSE LICENSE/LICENSE_enthought.txt
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:26:21 +01:00
|
|
|
* Sat Oct 22 2016 Automatic Build System <autodist@mambasoft.it> 1.5.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Fri Aug 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-1mamba
|
|
|
|
- update to 1.5.2
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Wed Aug 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-5mamba
|
|
|
|
- fix pyNcairo requirement according to %pyver
|
|
|
|
|
|
|
|
* Sun Jul 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-4mamba
|
|
|
|
- fixed requirement for py[2|3]cairo
|
|
|
|
|
|
|
|
* Mon Jul 18 2016 Davide Madrisan <davide.madrisan@gmail.com> 1.5.1-3mamba
|
|
|
|
- add some missing runtime requirements
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Fri Mar 18 2016 Davide Madrisan <davide.madrisan@gmail.com> 1.5.1-2mamba
|
|
|
|
- update the specfile for python3
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Mon Jan 11 2016 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Mon Nov 23 2015 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Sat Feb 21 2015 Automatic Build System <autodist@mambasoft.it> 1.4.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:21 +01:00
|
|
|
* Sun Oct 26 2014 Automatic Build System <autodist@mambasoft.it> 1.4.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:20 +01:00
|
|
|
* Thu Sep 18 2014 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:20 +01:00
|
|
|
* Fri Jul 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
|
|
|
|
- update to 1.3.1
|
|
|
|
|
|
|
|
* Sun Feb 06 2011 gil <puntogil@libero.it> 1.0.1-1mamba
|
2024-01-06 11:26:21 +01:00
|
|
|
- package created by autospec
|