From dc160705ce61eca422ea78f1f249b21fc729ae8ab9f8decb030e150cfc2ac909 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 27 Feb 2025 23:12:27 +0000 Subject: [PATCH] [info=cd9b21031074207ea776344b2df542364f5f735bd531a79277531aeaddc37a6f] OBS-URL: https://build.opensuse.org/package/show/science/gap-xgap?expand=0&rev=7 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _scmsync.obsinfo | 4 +++ build.specials.obscpio | 3 +++ gap-xgap.changes | 22 +++++++++++++++++ gap-xgap.spec | 56 ++++++++++++++++++++++++++++++++++++++++++ gcc14.patch | 30 ++++++++++++++++++++++ xgap-4.32.tar.gz | 3 +++ 8 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 gap-xgap.changes create mode 100644 gap-xgap.spec create mode 100644 gcc14.patch create mode 100644 xgap-4.32.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..b12027f --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1740697291 +commit: cd9b21031074207ea776344b2df542364f5f735bd531a79277531aeaddc37a6f +url: https://src.opensuse.org/jengelh/gap-xgap +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..e55ebc4 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc84c1ed2bbcc7b1279458401ba9a3cf3d2a89c9f81a4efcf76a2a703528b17c +size 256 diff --git a/gap-xgap.changes b/gap-xgap.changes new file mode 100644 index 0000000..82d41b1 --- /dev/null +++ b/gap-xgap.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Thu Feb 27 23:00:16 UTC 2025 - Jan Engelhardt + +- Make specfile conform to POSIX sh + +------------------------------------------------------------------- +Wed Aug 21 20:58:38 UTC 2024 - Jan Engelhardt + +- Add gcc14.patch + +------------------------------------------------------------------- +Sat Mar 23 22:09:27 UTC 2024 - Jan Engelhardt + +- Update to release 4.32 + * When resizing a GAP poset sheet via the Magnify command or + similar, the level labels were not getting moved correctly. + They should stay by the right side of the window. + +------------------------------------------------------------------- +Sun Feb 12 20:59:04 UTC 2023 - Jan Engelhardt + +- Initial package (version 4.31) for build.opensuse.org diff --git a/gap-xgap.spec b/gap-xgap.spec new file mode 100644 index 0000000..861c136 --- /dev/null +++ b/gap-xgap.spec @@ -0,0 +1,56 @@ +# +# spec file for package gap-xgap +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: gap-xgap +Version: 4.32 +Release: 0 +Summary: GAP: Graphical user interface for GAP +License: GPL-2.0-or-later +Group: Productivity/Scientific/Math +URL: https://gap-packages.github.io/xgap/ +#Git-Clone: https://github.com/gap-packages/xgap +Source: https://github.com/gap-packages/xgap/releases/download/v%version/xgap-%version.tar.gz +Patch1: gcc14.patch +BuildRequires: c_compiler +BuildRequires: fdupes +BuildRequires: gap-devel +BuildRequires: gap-rpm-devel +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xaw7) +BuildRequires: pkgconfig(xt) +Requires: gap-core >= 4.7 + +%description +The XGAP package allows to use graphics in GAP. + +%prep +%autosetup -n xgap-%version -p1 + +%build +./configure --with-gaproot="%gapdir" +%make_build + +%install +%gappkg_simple_install +cd "%buildroot/$moddir" +rm -Rfv configure config.* bin/*/config.* bin/*/configure cnf src.x11 +%fdupes %buildroot/%_prefix + +%files -f %name.files + +%changelog diff --git a/gcc14.patch b/gcc14.patch new file mode 100644 index 0000000..5dce26c --- /dev/null +++ b/gcc14.patch @@ -0,0 +1,30 @@ +From 0c83898a23ad4c7b5b68a9fcf5899a68fa272e58 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Wed, 21 Aug 2024 22:49:31 +0200 +Subject: [PATCH] build: resolve compile error under gcc-14 +References: https://github.com/gap-packages/xgap/pull/33 + +xcmds.c: In function "FunChangeList": +xcmds.c:715:36: error: passing argument 2 of "XawListChange" from +incompatible pointer type [-Wincompatible-pointer-types] + 715 | XawListChange( arg->sel->list, (const char **)text, 0, 0, True ); +--- + src.x11/xcmds.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src.x11/xcmds.c b/src.x11/xcmds.c +index 644996b..a0242c2 100644 +--- a/src.x11/xcmds.c ++++ b/src.x11/xcmds.c +@@ -712,7 +712,7 @@ static Boolean FunChangeList ( + text[i] = 0; + + /* change list */ +- XawListChange( arg->sel->list, (const char **)text, 0, 0, True ); ++ XawListChange( arg->sel->list, (String *)text, 0, 0, True ); + + /* clear old text */ + for ( i = 0; arg->sel->text[i]; i++ ) +-- +2.46.0 + diff --git a/xgap-4.32.tar.gz b/xgap-4.32.tar.gz new file mode 100644 index 0000000..190a7dc --- /dev/null +++ b/xgap-4.32.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87d9a0d10f602f7a58a2b1d162b2c18ee2f648421bf0d7cfd60d4239944a336c +size 886165