Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37569629
en ru br
ALT Linux repos
S:1.8-alt1.git20120706.1.3

Group :: Development/Python3
RPM: python3-module-gnuplot

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define origname gnuplot-py
%define oname gnuplot

Name: python3-module-%oname
Version: 1.8
Release: alt1.git20120706.1.3

Summary: Python interface to Gnuplot

License: LGPLv2.1
Group: Development/Python3
Url: http://%origname.sourceforge.net/
# https://github.com/oblalex/gnuplot.py-py3k.git
Source: %origname-%version.tar
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
# Automatically added by buildreq on Thu Jan 28 2016 (-bi)
# optimized out: fakeroot fontconfig fonts-bitmap-misc gnuplot-common gnuplot-common-x11 libX11-locales libgdk-pixbuf libpdflib-lite libwayland-client libwayland-server python-base python-modules python3 python3-base python3-module-numpy xauth xkbcomp xkeyboard-config xorg-server-common xorg-xvfb
BuildRequires: gnuplot python3-module-numpy-testing rpm-build-python3 xvfb-run

#BuildRequires: python3-devel python3-module-setuptools-tests

#BuildPreReq: libnumpy-py3-devel gnuplot xvfb-run

%py3_provides Gnuplot
Requires: gnuplot

%add_python3_self_prov_path %buildroot%python3_sitelibdir/Gnuplot

%description
Gnuplot.py is a Python package that allows you to create graphs
from within Python using the gnuplot plotting program.

%package tests
Summary: Tests for Gnuplot.py
Group: Development/Python3
Requires: %name = %EVR

%description tests
Gnuplot.py is a Python package that allows you to create graphs
from within Python using the gnuplot plotting program.

This package contains tests for Gnuplot.py.

%package doc
Summary: Documentation for Gnuplot.py
Group: Development/Documentation
BuildArch: noarch

%description doc
Gnuplot.py is a Python package that allows you to create graphs
from within Python using the gnuplot plotting program.

This package contains documentation for Gnuplot.py.

%prep
%setup -n %origname-%version

%build
# remove crap
rm -f gp_cygwin.py gp_java.py gp_mac* gp_win32.py gnuplot_Suites.py

%python3_build
chmod 644 *.txt

%install
%python3_install

install -d %buildroot%_docdir/%name
cp -fR doc/Gnuplot/* %buildroot%_docdir/%name/

%check
export PYTHONPATH=%buildroot%python3_sitelibdir
xvfb-run python3 test.py -v

%files
%doc *.txt *.html
%python3_sitelibdir/*
%exclude %python3_sitelibdir/*/test*
%exclude %python3_sitelibdir/*/*/test*

%files tests
%python3_sitelibdir/*/test*
%python3_sitelibdir/*/*/test*

%files doc
%_docdir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin