SHA256
1
0
forked from pool/gap

upgrade a plethora of modules to the 4.12 bundle's versions

OBS-URL: https://build.opensuse.org/package/show/science/gap?expand=0&rev=79
This commit is contained in:
Jan Engelhardt 2022-11-19 04:45:42 +00:00 committed by Git OBS Bridge
parent 45eb74791b
commit 9bcb560601

219
gap.spec
View File

@ -24,7 +24,7 @@ License: GPL-2.0-or-later
Group: Productivity/Scientific/Math
URL: https://gap-system.org/
Source: https://github.com/gap-system/gap/releases/download/v%{version}/gap-%{version}-core.tar.gz
Source: https://github.com/gap-system/gap/releases/download/v%version/gap-%version-core.tar.gz
Source2: macros.gap
Source3: %name-rpmlintrc
BuildRequires: gcc-c++
@ -36,11 +36,11 @@ BuildRequires: libtool
BuildRequires: readline-devel
BuildRequires: unzip
BuildRequires: zlib-devel
Obsoletes: gap-core < %version
Provides: gap-core = %version
Obsoletes: gap-data < %version
Provides: gap-data = %version
Requires: gap-gapdoc >= 1.5.1
Provides: gap-core = %version-%release
Requires: gap-gapdoc >= 1.2
Requires: gap-primgrp >= 3.1
Requires: gap-smallgrp >= 1
Requires: gap-transgrp >= 1
%define lname libgap8
%global gap_sitearch %_libdir/gap/pkg
@ -72,8 +72,9 @@ Requires: %lname = %version
GAP is a system for computational discrete algebra, with particular
emphasis on Computational Group Theory.
This package will pull in the current version of the GAP compiler and
utilities required to build GAP packages that need compilation.
This package will pull in the current version of the GAP compiler
"gac", as well as utilities required to build GAP packages that need
compilation.
%package rpm-devel
Summary: RPM macros for building GAP packages
@ -84,111 +85,109 @@ Group: Development/Tools/Other
GAP is a system for computational discrete algebra, with particular
emphasis on Computational Group Theory.
This subpackage provides RPM macros for use with packaging trivial
GAP modules that itself do not require the presence of GAP.
This subpackage provides RPM macros for building GAP modules as RPMs.
%package full
Summary: Metapackage to cause installation of the GAP Distribution
Group: Productivity/Scientific/Math
BuildArch: noarch
# C extensions suffer from broken gac
# [https://github.com/gap-system/gap/issues/3001] and mediocre header files
# [https://github.com/gap-system/gap/issues/3003]
Requires: gap >= %version
Requires: gap-4ti2interface >= 2018.07.06
Requires: gap-ace >= 5.2
Requires: gap-aclib >= 1.3.1
Requires: gap-alnuth >= 3.1.0
#nolicense#Requires: gap-anupq >= 3.2
Requires: gap-atlasrep >= 1.5.1
Requires: gap-autodoc >= 2018.09.20
Requires: gap-automata >= 1.14
Requires: gap-automgrp >= 1.3.1
Requires: gap-autpgrp >= 1.9
#gac#Requires: gap-browse >= 1.8.8
#gap-io#Requires: gap-cap >= 2018.08.31
#unfinished#Requires: gap-carat >= 2.2.2
Requires: gap-circle >= 1.6.1
Requires: gap-cohomolo >= 1.6.7
Requires: gap-congruence >= 1.2.2
Requires: gap-convex >= 2015.11.06
Requires: gap-corelg >= 1.20
Requires: gap-crime >= 1.5
Requires: gap-crisp >= 1.4.4
Requires: gap-crypting >= 0.9
Requires: gap-cryst >= 4.1.18
Requires: gap-crystcat >= 1.1.8
Requires: gap-ctbllib >= 1.2.2
Requires: gap-cubefree >= 1.17
#gac#Requires: gap-curlinterface >= 2.1.1
#gac#Requires: gap-cvec >= 2.6.1
#gac#Requires: gap-datastructures >= 0.2.2
#gac#Requires: gap-deepthought >= 1.0.1
Requires: gap-design >= 1.6
#gac#Requires: gap-digraphs >= 0.13.0
#gac#Requires: gap-edim >= 1.3.3
Requires: gap-example >= 3.5.1
Requires: gap-examplesforhomalg >= 2018.05.29
Requires: gap-factint >= 1.6.2
Requires: gap-4ti2interface >= 2022.08.03
Requires: gap-ace >= 5.6.1
Requires: gap-aclib >= 1.3.2
Requires: gap-agt >= 0.2
Requires: gap-alnuth >= 3.2.1
Requires: gap-anupq >= 3.2.6
Requires: gap-atlasrep >= 2.1.6
Requires: gap-autodoc >= 2022.10.20
Requires: gap-automata >= 1.15
Requires: gap-automgrp >= 1.3.2
Requires: gap-autpgrp >= 1.11
Requires: gap-browse >= 1.8.18
Requires: gap-cap >= 2022.10.06
Requires: gap-caratinterface >= 2.3.4
Requires: gap-cddinterface >= 2022.08.11
Requires: gap-circle >= 1.6.5
Requires: gap-classicpres >= 1.22
Requires: gap-cohomolo >= 1.6.10
Requires: gap-congruence >= 1.2.4
Requires: gap-corelg >= 1.56
Requires: gap-crime >= 1.6
Requires: gap-crisp >= 1.4.5
Requires: gap-crypting >= 0.10.3
Requires: gap-cryst >= 4.1.25
Requires: gap-crystcat >= 1.1.10
Requires: gap-ctbllib >= 1.3.4
Requires: gap-cubefree >= 1.19
Requires: gap-curlinterface >= 2.3.1
Requires: gap-cvec >= 2.7.6
Requires: gap-datastructures >= 0.2.7
Requires: gap-deepthought >= 1.0.6
Requires: gap-design >= 1.7
Requires: gap-difsets >= 2.3.1
Requires: gap-digraphs >= 1.6.0
Requires: gap-edim >= 1.3.6
Requires: gap-example >= 4.3.2
Requires: gap-examplesforhomalg >= 2022.10.01
Requires: gap-factint >= 1.6.3
Requires: gap-ferret >= 1.0.9
Requires: gap-fga >= 1.4.0
#gap-cvec#Requires: gap-fining >= 1.4
#gac#Requires: gap-float >= 0.7.6
Requires: gap-format >= 1.4a
Requires: gap-forms >= 1.2.5
Requires: gap-fplsa >= 1.2.2
Requires: gap-fr >= 2.4.5
Requires: gap-francy >= 1.0.4
Requires: gap-fwtree >= 1.1
Requires: gap-gapdoc >= 1.6.2
#gac#Requires: gap-gauss >= 2018.09.08
#gap-gauss#Requires: gap-gaussforhomalg >= 2018.06.01
Requires: gap-gbnp >= 1.0.3
Requires: gap-generalizedmorphismsforcap >= 2018.06.15
Requires: gap-genss >= 1.6.5
Requires: gap-gradedmodules >= 2018.02.04
Requires: gap-gradedringforhomalg >= 2018.02.04
Requires: gap-grape >= 4.8.1
Requires: gap-groupoids >= 1.63
Requires: gap-grpconst >= 2.6.1
Requires: gap-guarana >= 0.96.1
Requires: gap-guava >= 3.14
Requires: gap-hap >= 1.15
# depends on polymake (not ready)
#Requires: gap-hapcryst >= 0.1.11
Requires: gap-hecke >= 1.5
Requires: gap-help >= 3.3
Requires: gap-homalg >= 2017.10.26
#gap-io#Requires: gap-homalgtocas >= 2018.06.15
Requires: gap-idrel >= 2.42
Requires: gap-intpic >= 0.2.3
#gac#Requires: gap-io >= 4.5.4
#gap-io#Requires: gap-io_forhomalg >= 2017.09.02
Requires: gap-irredsol >= 1.4
# gap-itc-1.4 has no license attached: cannot ship that
#Requires: gap-itc >= 1.5
#gac#Requires: gap-json >= 2.0.0
#notready#Requires: gap-jupyterkernel >= 1.0
#notready#Requires: gap-jupyterviz >= 1.2.0
Requires: gap-kan >= 1.28
Requires: gap-kbmag >= 1.5.6
Requires: gap-laguna >= 3.9.0
Requires: gap-liealgdb >= 2.2
Requires: gap-liepring >= 1.9.2
Requires: gap-liering >= 2.3
#gap-cap#Requires: gap-linearalgebraforcap >= 2018.02.07
Requires: gap-localizeringforhomalg >= 2018.02.04
Requires: gap-loops >= 3.4.0
Requires: gap-lpres >= 1.0.0
Requires: gap-mapclass >= 1.4.3
Requires: gap-matgrp >= 0.51
Requires: gap-matricesforhomalg >= 2018.08.25
# gap-modisom-2.3.2 not OSI compliant: cannot ship:
# permits distribution and use, but not modification.
#Requires: gap-modisom >= 2.4.0
#gap-cvec#Requires: gap-fining >= 1.5.1
#gac#Requires: gap-float >= 1.0.3
Requires: gap-format >= 1.4.3
Requires: gap-forms >= 1.2.9
Requires: gap-fplsa >= 1.2.5
Requires: gap-fr >= 2.4.10
Requires: gap-francy >= 1.2.4
Requires: gap-fwtree >= 1.3
Requires: gap-gapdoc >= 1.6.6
#gac#Requires: gap-gauss >= 2022.08.04
#gap-gauss#Requires: gap-gaussforhomalg >= 2022.08.02
Requires: gap-gbnp >= 1.0.5
Requires: gap-generalizedmorphismsforcap >= 2022.05.01
Requires: gap-genss >= 1.6.7
Requires: gap-gradedmodules >= 2022.08.02
Requires: gap-gradedringforhomalg >= 2022.08.02
Requires: gap-grape >= 4.8.5
Requires: gap-groupoids >= 1.71
Requires: gap-grpconst >= 2.6.2
Requires: gap-guarana >= 0.96.3
Requires: gap-guava >= 3.17
Requires: gap-hap >= 1.47
Requires: gap-hapcryst >= 0.1.15
Requires: gap-hecke >= 1.5.3
Requires: gap-help >= 3.5
Requires: gap-homalg >= 2022.08.03
#gap-io#Requires: gap-homalgtocas >= 2022.08.02
Requires: gap-idrel >= 2.44
Requires: gap-images >= 1.3.1
Requires: gap-intpic >= 0.3.0
#gac#Requires: gap-io >= 4.7.2
#gap-io#Requires: gap-io_forhomalg >= 2022.08.03
Requires: gap-irredsol >= 1.4.3
Requires: gap-itc >= 1.5.1
#gac#Requires: gap-json >= 2.1.0
#notready#Requires: gap-jupyterkernel >= 1.4.1
#notready#Requires: gap-jupyterviz >= 1.5.6
Requires: gap-kan >= 1.34
Requires: gap-kbmag >= 1.5.10
Requires: gap-laguna >= 3.9.5
Requires: gap-liealgdb >= 2.2.1
Requires: gap-liepring >= 2.7
Requires: gap-liering >= 2.4.2
#gap-cap#Requires: gap-linearalgebraforcap >= 2022.08.03
Requires: gap-localizeringforhomalg >= 2022.08.02
Requires: gap-loops >= 3.4.2
Requires: gap-lpres >= 1.0.3
Requires: gap-majoranaalgebras >= 1.4
Requires: gap-mapclass >= 1.4.6
Requires: gap-matgrp >= 0.70
Requires: gap-matricesforhomalg >= 2022.08.02
Requires: gap-modisom >= 2.5.3
# gap-modulepresentationsforcap requires a non-existent gap-complexesandfilteredobjectsforgap
#Requires: gap-modulepresentationsforcap >= 2018.02.02
Requires: gap-modules >= 2018.08.24
Requires: gap-nilmat >= 1.3
Requires: gap-nilmat >= 1.4.2
Requires: gap-normalizinterface >= 1.0.2
Requires: gap-nq >= 2.5.3
Requires: gap-numericalsgps >= 1.1.8
@ -257,7 +256,7 @@ emphasis on Computational Group Theory.
This subpackage will pull in all optional packages of the GAP distribution.
%prep
%setup -q
%autosetup
%build
%configure
@ -265,16 +264,19 @@ This subpackage will pull in all optional packages of the GAP distribution.
%install
# Can not use "install" target, as that includes the "install-doc" target
%{__make} DESTDIR=%{?buildroot} INSTALL="%{__install} -p" \
make DESTDIR="%buildroot" INSTALL="install -p" \
install-bin install-gaproot install-sysinfo install-headers install-libgap
# Fixup
rm -fv "%buildroot/%_libdir"/*.la
chmod +x %{buildroot}/%{_datadir}/gap/etc/convert.pl
chmod +x %buildroot/%_datadir/gap%_sysconfdir/convert.pl
# For ancient modules
ln -s "%_bindir/gac" "%buildroot/%_libdir/gap/gac"
# openSUSE-specific extras for RPMs
install -D -m 0644 -t "%{buildroot}/%_prefix/lib/rpm/macros.d/" "%_sourcedir/macros.gap"
cat >> "%{buildroot}/%_prefix/lib/rpm/macros.d/macros.gapdirs" <<-EOF
install -D -m 0644 -t "%buildroot/%_prefix/lib/rpm/macros.d/" "%_sourcedir/macros.gap"
cat >> "%buildroot/%_prefix/lib/rpm/macros.d/macros.gapdirs" <<-EOF
# Directory for modules extending the core
%%gap_sitelib %gap_sitelib
%%gap_sitearch %gap_sitearch
@ -303,6 +305,7 @@ EOF
%_includedir/gap/
%_libdir/libgap.so
%dir %_libdir/gap
%_libdir/gap/gac
%_libdir/gap/sysinfo.gap*
%files rpm-devel