Blame gap-pkg-jupyterviz.spec

70cd8c0
%global pkgname  jupyterviz
70cd8c0
70cd8c0
Name:           gap-pkg-%{pkgname}
665f76c
Version:        1.5.6
105693d
Release:        3%{?dist}
70cd8c0
Summary:        Jupyter notebook visualization tools for GAP
70cd8c0
665f76c
License:        GPL-2.0-or-later
665f76c
BuildArch:      noarch
665f76c
ExclusiveArch:  aarch64 ppc64le s390x x86_64 noarch
f314089
URL:            https://nathancarter.github.io/jupyterviz/
f314089
Source0:        https://github.com/nathancarter/jupyterviz/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz
70cd8c0
# Update the python scripts for python 3
70cd8c0
Patch0:         %{name}-python3.patch
70cd8c0
70cd8c0
BuildRequires:  gap-devel
70cd8c0
BuildRequires:  gap-pkg-autodoc
70cd8c0
BuildRequires:  gap-pkg-jupyterkernel
70cd8c0
BuildRequires:  python3-devel
70cd8c0
70cd8c0
Requires:       gap-pkg-jupyterkernel
70cd8c0
70cd8c0
%description
70cd8c0
This package adds visualization tools to GAP for use in Jupyter
70cd8c0
notebooks.  These include standard line and bar graphs, pie charts,
70cd8c0
scatter plots, and graphs in the vertices-and-edges sense.
70cd8c0
70cd8c0
%package doc
f314089
# The content is GPL-2.0-or-later.  The remaining licenses cover the various
f314089
# fonts embedded in PDFs.
9fd2e5d
# CM: Knuth-CTAN
f314089
# CM-Super: GPL-1.0-or-later
f314089
# Nimbus: AGPL-3.0-only
9fd2e5d
License:        GPL-2.0-or-later AND Knuth-CTAN AND GPL-1.0-or-later AND AGPL-3.0-only
70cd8c0
Summary:        Jupyter visualization tools for GAP documentation
70cd8c0
Requires:       %{name} = %{version}-%{release}
70cd8c0
Requires:       gap-online-help
70cd8c0
70cd8c0
%description doc
70cd8c0
This package contains documentation for gap-pkg-%{pkgname}.
70cd8c0
70cd8c0
%prep
70cd8c0
%autosetup -p0 -n %{pkgname}-%{version}
70cd8c0
70cd8c0
%build
2577a76
export LC_ALL=C.UTF-8
70cd8c0
python3 extract_examples.py
665f76c
gap makedoc.g
70cd8c0
70cd8c0
%install
9fd2e5d
mkdir -p %{buildroot}%{gap_libdir}/pkg/%{pkgname}/doc
9fd2e5d
cp -a *.g *.ipynb examples lib tst %{buildroot}%{gap_libdir}/pkg/%{pkgname}
665f76c
%gap_copy_docs
70cd8c0
70cd8c0
%check
2577a76
export LC_ALL=C.UTF-8
9fd2e5d
gap -l "%{buildroot}%{gap_libdir};" tst/testall.g
70cd8c0
70cd8c0
%files
70cd8c0
%doc CHANGES README.md
9fd2e5d
%{gap_libdir}/pkg/%{pkgname}/
9fd2e5d
%exclude %{gap_libdir}/pkg/%{pkgname}/*.ipynb
9fd2e5d
%exclude %{gap_libdir}/pkg/%{pkgname}/doc/
9fd2e5d
%exclude %{gap_libdir}/pkg/%{pkgname}/examples/
70cd8c0
70cd8c0
%files doc
9fd2e5d
%docdir %{gap_libdir}/pkg/%{pkgname}/doc/
9fd2e5d
%docdir %{gap_libdir}/pkg/%{pkgname}/examples/
9fd2e5d
%{gap_libdir}/pkg/%{pkgname}/*.ipynb
9fd2e5d
%{gap_libdir}/pkg/%{pkgname}/doc/
9fd2e5d
%{gap_libdir}/pkg/%{pkgname}/examples/
70cd8c0
70cd8c0
%changelog
105693d
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.6-3
105693d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
105693d
9fd2e5d
* Thu Jan 12 2023 Jerry James <loganjerry@gmail.com> - 1.5.6-2
9fd2e5d
- Update for split GAP directories
9fd2e5d
f314089
* Thu Nov 10 2022 Jerry James <loganjerry@gmail.com> - 1.5.6-1
f314089
- Clarify license of the doc subpackage
f314089
665f76c
* Tue Sep 27 2022 Jerry James <loganjerry@gmail.com> - 1.5.6-1
665f76c
- Version 1.5.6
665f76c
- Convert License tag to SPDX
665f76c
- Update for gap 4.12.0
665f76c
5e1df3e
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-8
5e1df3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5e1df3e
ed184d4
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
ed184d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ed184d4
56e0bcc
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
56e0bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
56e0bcc
b060463
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
b060463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b060463
9a9062d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
9a9062d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9a9062d
577ab9f
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
577ab9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
577ab9f
b0e86f2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
b0e86f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b0e86f2
70cd8c0
* Tue Jun 25 2019 Jerry James <loganjerry@gmail.com> - 1.5.1-1
70cd8c0
- New upstream version
70cd8c0
70cd8c0
* Wed Mar 27 2019 Jerry James <loganjerry@gmail.com> - 1.5.0-1
70cd8c0
- Initial RPM