6acf598
%global pkgname smallsemi
6acf598
6acf598
Name:           gap-pkg-%{pkgname}
c426572
Version:        0.7.0
e9eeb9b
Release:        %autorelease
6acf598
Summary:        GAP library of small semigroups
6acf598
c759515
License:        GPL-3.0-or-later
c759515
BuildArch:      noarch
e1b38af
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
e1b38af
ExcludeArch:    %{ix86}
f9545b9
URL:            https://gap-packages.github.io/smallsemi/
e1b38af
VCS:            https://github.com/gap-packages/smallsemi
e1b38af
Source0:        %{vcs}/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz
d14a6f5
6acf598
BuildRequires:  gap-devel
d14a6f5
BuildRequires:  gap-pkg-autodoc
889a92d
6acf598
Requires:       gap-core
6acf598
6acf598
%description
6acf598
The Smallsemi package is a data library of semigroups of small size.  It
6acf598
provides all semigroups with at most 8 elements as well as information
6acf598
of various kinds about these objects.
6acf598
5ba0746
%package doc
f9545b9
# The content is GFDL-1.1-no-invariants-or-later.  The remaining licenses cover
f9545b9
# the various fonts embedded in PDFs.
0f8691a
# CM: Knuth-CTAN
f9545b9
# CM-Super: GPL-1.0-or-later
f9545b9
# Nimbus: AGPL-3.0-only
0f8691a
License:        GFDL-1.1-no-invariants-or-later AND Knuth-CTAN AND GPL-1.0-or-later AND AGPL-3.0-only
5ba0746
Summary:        Small semigroups documentation
5ba0746
Requires:       %{name} = %{version}-%{release}
5ba0746
Requires:       gap-online-help
5ba0746
5ba0746
%description doc
5ba0746
This package contains documentation for gap-pkg-%{pkgname}.
5ba0746
6acf598
%prep
c759515
%autosetup -n %{pkgname}-%{version}
6acf598
6acf598
%build
7825643
export LC_ALL=C.UTF-8
c759515
gap makedoc.g
6acf598
6acf598
%install
0f8691a
mkdir -p %{buildroot}%{gap_libdir}/pkg/%{pkgname}/doc
0f8691a
cp -a *.g data gap tst %{buildroot}%{gap_libdir}/pkg/%{pkgname}
c759515
%gap_copy_docs
6acf598
6acf598
%check
7825643
export LC_ALL=C.UTF-8
0f8691a
gap -l "%{buildroot}%{gap_libdir};" tst/testall.g
6acf598
6acf598
%files
6acf598
%doc CHANGELOG README
d14a6f5
%license LICENSE
0f8691a
%{gap_libdir}/pkg/%{pkgname}/
0f8691a
%exclude %{gap_libdir}/pkg/%{pkgname}/doc/
5ba0746
5ba0746
%files doc
0f8691a
%docdir %{gap_libdir}/pkg/%{pkgname}/doc/
0f8691a
%{gap_libdir}/pkg/%{pkgname}/doc/
6acf598
6acf598
%changelog
e9eeb9b
%autochangelog