From c91de90bc4b6e488652b3d2e601eddba50f53a6d9ca1e4502296d1f5b090caef Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 19 Nov 2022 00:06:49 +0000 Subject: [PATCH] - Update to release 4.8.5 OBS-URL: https://build.opensuse.org/package/show/science/gap-grape?expand=0&rev=6 --- gap-grape.changes | 10 ++++++++++ gap-grape.spec | 19 ++++++++----------- grape-4.8.1.tar.xz | 3 --- grape-4.8.5.tar.xz | 3 +++ sanitize_source.sh | 14 ++++++++------ 5 files changed, 29 insertions(+), 20 deletions(-) delete mode 100644 grape-4.8.1.tar.xz create mode 100644 grape-4.8.5.tar.xz diff --git a/gap-grape.changes b/gap-grape.changes index 5e94a8f..1d4de1a 100644 --- a/gap-grape.changes +++ b/gap-grape.changes @@ -1,3 +1,13 @@ +- Update to release 4.8.5 + * Resolve wrong answer to be returned for an input complete + graph (on more than one vertex) for the functions + MaximumClique, MaximumCompleteSubgraph, and CliqueNumber. + * Implemented new components maximumClique and + minimumVertexColouring for (simple) GRAPE graphs. These + components may be set or used by various GRAPE functions. + * Simple GRAPE graphs are now output to nauty/bliss as + nauty/blass undirected graphs and are so treated by them. + ------------------------------------------------------------------- Wed Nov 14 22:45:04 UTC 2018 - Jan Engelhardt diff --git a/gap-grape.spec b/gap-grape.spec index a5e4a8a..e58700b 100644 --- a/gap-grape.spec +++ b/gap-grape.spec @@ -1,7 +1,7 @@ # # spec file for package gap-grape # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,23 +17,21 @@ Name: gap-grape -Version: 4.8.1 +Version: 4.8.5 Release: 0 Summary: GAP: GRaph Algorithms using PErmutation groups License: GPL-2.0-or-later Group: Productivity/Scientific/Math -URL: http://www.maths.qmul.ac.uk/~leonard/grape/ - -#DL-URL: https://www.gap-system.org/pub/gap/gap4/tar.bz2/packages/grape-4.8.1.tar.bz2 -# Original tarball has bundled third-party code with a Non-Commercial clause +URL: https://gap-packages.github.io/grape/ +#Git-Clone: https://github.com/gap-packages/grape +# Must use sanitize_source.sh Source: grape-%version.tar.xz -Source8: sanitize_source.sh -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source2: sanitize_source.sh BuildArch: noarch BuildRequires: gap-rpm-devel BuildRequires: xz Requires: bliss -Requires: gap-core >= 4.9 +Requires: gap-core >= 4.11 Requires: nauty %description @@ -42,7 +40,7 @@ primarily designed for constructing and analysing graphs related to groups, finite geometries, and designs. %prep -%setup -qn grape-%version +%autosetup -n grape-%version %build @@ -51,6 +49,5 @@ rm -Rf scripts doc/.Rhistory %gappkg_simple_install %files -f %name.files -%defattr(-,root,root) %changelog diff --git a/grape-4.8.1.tar.xz b/grape-4.8.1.tar.xz deleted file mode 100644 index 1884589..0000000 --- a/grape-4.8.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7c05ec22a529b125fab629c63a44597b5208328f0772d4167a72bf8c55134a6 -size 383292 diff --git a/grape-4.8.5.tar.xz b/grape-4.8.5.tar.xz new file mode 100644 index 0000000..607cf13 --- /dev/null +++ b/grape-4.8.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62bd40add64cc1b86e38fb29e0b12928ed64e22c09ea8c2c523d1e402d9f0f90 +size 387888 diff --git a/sanitize_source.sh b/sanitize_source.sh index 8757670..22d5903 100644 --- a/sanitize_source.sh +++ b/sanitize_source.sh @@ -1,9 +1,11 @@ #!/bin/sh -ex -wget -c https://www.gap-system.org/pub/gap/gap4/tar.bz2/packages/grape-4.8.1.tar.bz2 -rm -Rf grape -tar -xf grape-4.8.1.tar.bz2 -# only nauty 2.3's license is acceptable +version="4.8.5" +name="grape-$version" +wget -c "https://github.com/gap-packages/grape/releases/download/v$version/$name.tar.gz" +rm -Rf "$name" +tar -xf "$name.tar.gz" +# Only from nauty 2.3 onwards is the license is acceptable. +# Besides, openSUSE already ships nauty on its own. rm -Rf grape-*/nauty22 grape-*/bin -tar --use=xz -cf grape-4.8.1.tar.xz grape-4.8.1 - +tar --use=xz -cf "$name.tar.xz" "$name"