## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pkgname fplsa %global upname FPLSA %global giturl https://github.com/gap-packages/FPLSA Name: gap-pkg-%{pkgname} 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: git:%{giturl}.git Source: %{giturl}/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 Patch: %{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 # The content is GPL-2.0-or-later. # The remaining licenses cover the various fonts embedded in PDFs: # CM: Knuth-CTAN # CM-Super: GPL-1.0-or-later # Nimbus: AGPL-3.0-only License: GPL-2.0-or-later AND GPL-1.0-or-later AND Knuth-CTAN AND AGPL-3.0-only Summary: FPLSA documentation BuildArch: noarch Requires: %{name} = %{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 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 -n %{upname} # 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 ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jul 16 2024 Jerry James - 1.2.6-2 - Fix the VCS field * Wed Apr 10 2024 Jerry James - 1.2.6-1 - Initial RPM ## END: Generated by rpmautospec