%global pkgname fplsa %global upname FPLSA Name: gap-pkg-fplsa Version: 1.2.6 Release: %autorelease Summary: Finitely presented Lie algebras License: GPL-2.0-or-later # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} URL: https://gap-packages.github.io/FPLSA/ VCS: https://github.com/gap-packages/FPLSA Source0: %{vcs}/archive/v%{version}/%{upname}-%{version}.tar.gz # Fedora-only patch: look for the ini file in multiple places, in this order: # - $HOME/.config/gap # - /etc # - $PWD/src Patch0: %{name}-ini.patch BuildRequires: gap-devel BuildRequires: gap-pkg-autodoc BuildRequires: gcc Requires: gap-core%{?_isa} %description When K is a finitely-presented Lie algebra, the GAP operation IsomorphismSCTableAlgebra can be used to make the structure of K explicit, in the form of an isomorphic algebra given by structure constants, which is much more amenable to further computations. This GAP package installs an alternative method for this operation, which calls an external C program (fplsa version 4.0) to do the hard part of the computation. This speeds up the calculation and permits larger problems to be attempted. The external program has much additional functionality which is not used by the present version of the package. %package doc Summary: FPLSA documentation Requires: %{name}%{?_isa} = %{version}-%{release} Requires: gap-online-help %description doc This package contains documentation for gap-pkg-%{pkgname}. %prep %autosetup -n %{upname}-%{version} -p1 %build # This is NOT an autoconf-generated script. Do NOT use %%configure. ./configure --with-gaproot=%{gap_archdir} %make_build # Build the documentation gap -l "$PWD/..;" makedoc.g %install mkdir -p %{buildroot}%{gap_archdir}/pkg/%{upname}/doc cp -a bin gap lib tst *.g %{buildroot}%{gap_archdir}/pkg/%{upname} %gap_copy_docs # Install the .ini file mkdir -p %{buildroot}%{_sysconfdir} cp -p src/fplsa4.ini %{buildroot}%{_sysconfdir} %check gap -l "%{buildroot}%{gap_archdir};" < tst/testall.g %files %doc CHANGES README.md %license LICENSE %{gap_archdir}/pkg/%{upname}/ %exclude %{gap_archdir}/pkg/%{upname}/doc/ %config(noreplace) %{_sysconfdir}/fplsa4.ini %files doc %docdir %{gap_archdir}/pkg/%{upname}/doc/ %{gap_archdir}/pkg/%{upname}/doc/ %changelog %autochangelog