update the specfile for python3 [release 1.5.1-2mamba;Fri Mar 18 2016]

This commit is contained in:
Davide Madrisan 2024-01-06 11:26:21 +01:00
parent c5220a813b
commit 6c1f23c842
2 changed files with 36 additions and 52 deletions

View File

@ -1,7 +1,5 @@
# python-matplotlib
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.
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.

View File

@ -1,6 +1,6 @@
Name: python-matplotlib
Version: 1.5.1
Release: 1mamba
Release: 2mamba
Summary: Python plotting library
Group: System/Libraries/Python
Vendor: openmamba
@ -23,7 +23,6 @@ BuildRequires: libgtk2-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtcl-devel
BuildRequires: libtk-devel
@ -31,6 +30,9 @@ BuildRequires: libtk-devel
BuildRequires: pygtk-devel
BuildRequires: python-tk
BuildRequires: wxPython
%if 0%{?with_pyver}
BuildRequires: python3-tk
%endif
# BuildRequires: PyQt
# BuildRequires: PyQt4-devel
Requires: dejavu-fonts-ttf
@ -41,48 +43,22 @@ Requires: py2cairo
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
#basedirlist is: ['/usr/local', '/usr']
#============================================================================
#BUILDING MATPLOTLIB
# matplotlib: 1.0.1
# python: 2.6.6 (r266:84292, Nov 11 2010, 12:17:58) [GCC
# 4.5.1]
# platform: linux2
#REQUIRED DEPENDENCIES
# numpy: 1.5.1
# freetype2: 12.2.6
#OPTIONAL BACKEND DEPENDENCIES
# libpng: 1.4.5
# Tkinter: Tkinter: 73770, Tk: 8.5, Tcl: 8.5
#/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning)
# Gtk+: gtk+: 2.22.1, glib: 2.27.5, pygtk: 2.22.0,
# pygobject: 2.26.0
# Qt: no
# Qt4: no
# Cairo: 1.8.10
#OPTIONAL DATE/TIMEZONE DEPENDENCIES
# datetime: present, version unknown
# dateutil: 1.4.1
# pytz: 2010l
#OPTIONAL USETEX DEPENDENCIES
# dvipng: 1.5
# ghostscript: 8.71
# latex: 3.141592
# pdftops: 0.14.0
#[Edit setup.cfg to suppress the above messages]
#============================================================================
%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.
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.
%if 0%{?with_pyver}
%pyver_package
%endif
%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.
%prep
%setup -q -n matplotlib-%{version}
@ -90,6 +66,11 @@ web application servers, and six graphical user interface toolkits.
chmod -x lib/matplotlib/mpl-data/images/*.svg
cp %{SOURCE1} ./setup.cfg
%if 0%{?with_pyver}
sed -i "s|gtk = True|gtk = False|" setup.cfg
sed -i "s|gtkagg = True|gtkagg = False|" setup.cfg
%endif
%build
CFLAGS="%{optflags}" %{__python} setup.py build
@ -98,24 +79,29 @@ CFLAGS="%{optflags}" %{__python} setup.py build
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch}
chmod +x %{buildroot}%{python_sitearch}/matplotlib/dates.py
rm -rf %{buildroot}%{python_sitearch}/matplotlib/mpl-data/fonts
%files
%files %{?pyappend}
%defattr(-,root,root)
%{python_sitearch}/*.py*
%dir %{python_sitearch}/matplotlib
%{python_sitearch}/matplotlib/*
%dir %{python_sitearch}/mpl_toolkits
%{python_sitearch}/mpl_toolkits/*
%{python27_sitearch}/matplotlib-%{version}.post0-py*
%{python_sitearch}/matplotlib-%{version}.post0-py*
%if 0%{?with_pyver}
%{python3_sitearch}/__pycache__/pylab.cpython*.py*
%endif
%doc LICENSE/LICENSE LICENSE/LICENSE_enthought.txt
%changelog
* Fri Mar 18 2016 Davide Madrisan <davide.madrisan@gmail.com> 1.5.1-2mamba
- update the specfile for python3
* Mon Jan 11 2016 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
- automatic version update by autodist
@ -135,4 +121,4 @@ rm -rf %{buildroot}%{python_sitearch}/matplotlib/mpl-data/fonts
- update to 1.3.1
* Sun Feb 06 2011 gil <puntogil@libero.it> 1.0.1-1mamba
- package created by autospec
- package created by autospec