17c6ee1
%global pkgname  datastructures
17c6ee1
17c6ee1
Name:           gap-pkg-%{pkgname}
34fc42a
Version:        0.3.0
5298cfd
Release:        %autorelease
17c6ee1
Summary:        Standard data structures for GAP
17c6ee1
a931e56
License:        GPL-2.0-or-later
fd675cb
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
fd675cb
ExcludeArch:    %{ix86}
34fc42a
URL:            https://gap-packages.github.io/datastructures/
fd675cb
VCS:            https://github.com/gap-packages/datastructures
fd675cb
Source0:        %{vcs}/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz
17c6ee1
17c6ee1
BuildRequires:  gap-devel
17c6ee1
BuildRequires:  gap-pkg-autodoc
3f32193
BuildRequires:  gcc
3f32193
BuildRequires:  libtool
7311e3d
BuildRequires:  make
17c6ee1
17c6ee1
Requires:       gap-core%{?_isa}
17c6ee1
17c6ee1
%description
17c6ee1
The datastructures package aims at providing standard datastructures,
17c6ee1
consolidating existing code and improving on it, in particular in view
17c6ee1
of HPC-GAP.
17c6ee1
17c6ee1
The following data structures are provided:
17c6ee1
- queues
17c6ee1
- doubly linked lists
17c6ee1
- heaps
17c6ee1
- priority queues
17c6ee1
- hashtables
17c6ee1
- dictionaries
17c6ee1
17c6ee1
%package doc
34fc42a
# The content is GPL-2.0-or-later.  The remaining licenses cover the various
34fc42a
# fonts embedded in PDFs.
2d8d407
# CM: Knuth-CTAN
34fc42a
# CM-Super: GPL-1.0-or-later
34fc42a
# Nimbus: AGPL-3.0-only
2d8d407
License:        GPL-2.0-or-later AND Knuth-CTAN AND GPL-1.0-or-later AND AGPL-3.0-only
17c6ee1
Summary:        Data structures documentation
17c6ee1
BuildArch:      noarch
17c6ee1
Requires:       %{name} = %{version}-%{release}
17c6ee1
Requires:       gap-online-help
17c6ee1
17c6ee1
%description doc
17c6ee1
This package contains documentation for gap-pkg-%{pkgname}.
17c6ee1
17c6ee1
%prep
34fc42a
%autosetup -n %{pkgname}-%{version}
17c6ee1
17c6ee1
%build
3f32193
export LC_ALL=C.UTF-8
3f32193
17c6ee1
# This is NOT an autoconf-generated script.  Do NOT use %%configure.
2d8d407
./configure %{gap_archdir}
17c6ee1
%make_build
17c6ee1
17c6ee1
# Build the documentation
7b36e71
gap makedoc.g
17c6ee1
17c6ee1
%install
2d8d407
mkdir -p %{buildroot}%{gap_archdir}/pkg/%{pkgname}/doc
2d8d407
cp -a *.g bin gap tst  %{buildroot}%{gap_archdir}/pkg/%{pkgname}
ca2817a
%gap_copy_docs
17c6ee1
17c6ee1
%check
3f32193
export LC_ALL=C.UTF-8
2d8d407
gap -l "%{buildroot}%{gap_archdir};" tst/testall.g
17c6ee1
17c6ee1
%files
17c6ee1
%doc CHANGES.md README.md
17c6ee1
%license COPYRIGHT.md LICENSE
2d8d407
%{gap_archdir}/pkg/%{pkgname}/
2d8d407
%exclude %{gap_archdir}/pkg/%{pkgname}/doc/
17c6ee1
17c6ee1
%files doc
2d8d407
%docdir %{gap_archdir}/pkg/%{pkgname}/doc/
2d8d407
%{gap_archdir}/pkg/%{pkgname}/doc/
17c6ee1
17c6ee1
%changelog
5298cfd
%autochangelog