Blob Blame History Raw
%global pkgname  jupyterviz

Name:           gap-pkg-%{pkgname}
Version:        1.5.1
Release:        1%{?dist}
Summary:        Jupyter notebook visualization tools for GAP
BuildArch:      noarch

License:        GPLv2+
URL:  {pkgname}/
# Update the python scripts for python 3
Patch0:         %{name}-python3.patch

BuildRequires:  gap-devel
BuildRequires:  gap-pkg-autodoc
BuildRequires:  gap-pkg-jupyterkernel
BuildRequires:  python3-devel

Requires:       gap-pkg-jupyterkernel

This package adds visualization tools to GAP for use in Jupyter
notebooks.  These include standard line and bar graphs, pie charts,
scatter plots, and graphs in the vertices-and-edges sense.

%package doc
Summary:        Jupyter visualization tools for GAP documentation
Requires:       %{name} = %{version}-%{release}
Requires:       gap-online-help

%description doc
This package contains documentation for gap-pkg-%{pkgname}.

%autosetup -p0 -n %{pkgname}-%{version}

gap makedoc.g

mkdir -p %{buildroot}%{_gap_dir}/pkg/%{pkgname}-%{version}
cp -a doc examples lib tst *.g *.ipynb \
rm -f %{buildroot}%{_gap_dir}/pkg/%{pkgname}-%{version}/doc/*.{aux,bbl,blg,idx,ilg,ind,log,out,pnr,tex}

gap -l "%{buildroot}%{_gap_dir};%{_gap_dir}" < tst/testall.g

%exclude %{_gap_dir}/pkg/%{pkgname}-%{version}/*.ipynb
%exclude %{_gap_dir}/pkg/%{pkgname}-%{version}/doc/
%exclude %{_gap_dir}/pkg/%{pkgname}-%{version}/examples/

%files doc
%docdir %{_gap_dir}/pkg/%{pkgname}-%{version}/doc/
%docdir %{_gap_dir}/pkg/%{pkgname}-%{version}/examples/

* Tue Jun 25 2019 Jerry James <> - 1.5.1-1
- New upstream version

* Wed Mar 27 2019 Jerry James <> - 1.5.0-1
- Initial RPM