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 # python-matplotlib
Matplotlib is a python 2D plotting library which produces publication quality figures in a Matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.
variety of hardcopy formats and interactive environments across platforms. Matplotlib 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.
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 Name: python-matplotlib
Version: 1.5.1 Version: 1.5.1
Release: 1mamba Release: 2mamba
Summary: Python plotting library Summary: Python plotting library
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
@ -23,7 +23,6 @@ BuildRequires: libgtk2-devel
BuildRequires: libpango-devel BuildRequires: libpango-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: libpython-devel BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libtcl-devel BuildRequires: libtcl-devel
BuildRequires: libtk-devel BuildRequires: libtk-devel
@ -31,6 +30,9 @@ BuildRequires: libtk-devel
BuildRequires: pygtk-devel BuildRequires: pygtk-devel
BuildRequires: python-tk BuildRequires: python-tk
BuildRequires: wxPython BuildRequires: wxPython
%if 0%{?with_pyver}
BuildRequires: python3-tk
%endif
# BuildRequires: PyQt # BuildRequires: PyQt
# BuildRequires: PyQt4-devel # BuildRequires: PyQt4-devel
Requires: dejavu-fonts-ttf Requires: dejavu-fonts-ttf
@ -41,48 +43,22 @@ Requires: py2cairo
Requires: python >= %python_version Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root 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 %description
Matplotlib is a python 2D plotting library which produces publication quality figures in a Matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.
variety of hardcopy formats and interactive environments across platforms. Matplotlib 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.
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 %prep
%setup -q -n matplotlib-%{version} %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 chmod -x lib/matplotlib/mpl-data/images/*.svg
cp %{SOURCE1} ./setup.cfg 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 %build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python} setup.py build
@ -98,24 +79,29 @@ CFLAGS="%{optflags}" %{__python} setup.py build
%{__python} setup.py install \ %{__python} setup.py install \
-O1 --skip-build \ -O1 --skip-build \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python \ --install-headers=%{python_inc} \
--install-lib=%{python_sitearch} --install-lib=%{python_sitearch}
chmod +x %{buildroot}%{python_sitearch}/matplotlib/dates.py chmod +x %{buildroot}%{python_sitearch}/matplotlib/dates.py
rm -rf %{buildroot}%{python_sitearch}/matplotlib/mpl-data/fonts rm -rf %{buildroot}%{python_sitearch}/matplotlib/mpl-data/fonts
%files %{?pyappend}
%files
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/*.py* %{python_sitearch}/*.py*
%dir %{python_sitearch}/matplotlib %dir %{python_sitearch}/matplotlib
%{python_sitearch}/matplotlib/* %{python_sitearch}/matplotlib/*
%dir %{python_sitearch}/mpl_toolkits %dir %{python_sitearch}/mpl_toolkits
%{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 %doc LICENSE/LICENSE LICENSE/LICENSE_enthought.txt
%changelog %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 * Mon Jan 11 2016 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
- automatic version update by autodist - automatic version update by autodist