%global pkgname permut Name: gap-pkg-%{pkgname} Version: 2.0.5 Release: %autorelease Summary: Permutability in finite groups for GAP License: GPL-2.0-or-later BuildArch: noarch # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} URL: https://gap-packages.github.io/permut/ VCS: https://github.com/gap-packages/permut Source0: %{vcs}/releases/download/v%{version}/%{pkgname}-%{version}.tar.bz2 BuildRequires: gap-devel BuildRequires: gap-pkg-autodoc BuildRequires: gap-pkg-format-doc Requires: gap-pkg-format %description The package permut contains some functions to deal with permutability in finite groups. %package doc # The content is GPL-2.0-or-later. The remaining licenses cover the various # fonts embedded in PDFs. # AMS: OFL-1.1-RFN # CM: Knuth-CTAN # Nimbus: AGPL-3.0-only # RSFS: LicenseRef-Rsfs # StandardSymL: GPL-1.0-or-later License: GPL-2.0-or-later AND OFL-1.1-RFN AND Knuth-CTAN AND AGPL-3.0-only AND LicenseRef-Rsfs AND GPL-1.0-or-later Summary: Permut documentation Requires: %{name} = %{version}-%{release} Requires: gap-online-help Requires: gap-pkg-format-doc %description doc This package contains documentation for gap-pkg-%{pkgname}. %prep %autosetup -n %{pkgname}-%{version} %build export LC_ALL=C.UTF-8 gap makedoc.g %install mkdir -p %{buildroot}%{gap_libdir}/pkg/%{pkgname}/doc cp -a *.g lib tst %{buildroot}%{gap_libdir}/pkg/%{pkgname} %gap_copy_docs %check export LC_ALL=C.UTF-8 gap -l "%{buildroot}%{gap_libdir};" tst/testall.g %files %doc CHANGES README.md %license LICENSE %{gap_libdir}/pkg/%{pkgname}/ %exclude %{gap_libdir}/pkg/%{pkgname}/doc/ %files doc %docdir %{gap_libdir}/pkg/%{pkgname}/doc/ %{gap_libdir}/pkg/%{pkgname}/doc/ %changelog %autochangelog