Name: xgap Version: 4.31 Release: 5%{?dist} Summary: GUI for GAP # The project as a whole is GPL-2.0-or-later. # src.x11/selfile.{c,h} is HPND. License: GPL-2.0-or-later AND HPND ExclusiveArch: aarch64 ppc64le s390x x86_64 URL: https://gap-packages.github.io/xgap/ Source0: https://github.com/gap-packages/xgap/releases/download/v%{version}/%{name}-%{version}.tar.gz # Created by Jerry James Source1: %{name}.desktop # Created by Paulo César Pereira de Andrade # Source2: XGap # Sent upstream 9 May 2012. This patch quiets some compiler warnings. Patch0: %{name}-warning.patch # Fix computation of GAParch Patch1: %{name}-gaparch.patch # Fix documentation references # See https://github.com/gap-packages/xgap/pull/20 Patch2: %{name}-ref.patch BuildRequires: desktop-file-utils BuildRequires: gap-devel BuildRequires: gap-pkg-smallgrp-doc BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(xaw7) BuildRequires: tth Requires: gap%{?_isa} Provides: gap-pkg-xgap = %{version}-%{release} %description A X Windows GUI for GAP. %package doc # The content is GPL-2.0-or-later. The remaining licenses cover the various # fonts embedded in PDFs. # AMS: OFL-1.1-RFN # CM: Knuth-CTAN AND LicenseRef-Fedora-Public-Domain # Nimbus: AGPL-3.0-only License: GPL-2.0-or-later AND OFL-1.1-RFN AND Knuth-CTAN AND LicenseRef-Fedora-Public-Domain AND AGPL-3.0-only Summary: XGap documentation BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: gap-pkg-smallgrp-doc %description doc This package contains documentation for %{name}. %prep %autosetup -p0 # Autoloading this package interferes with SAGE (bz 819705). sed -i "/^Autoload/s/true/false/" PackageInfo.g %build export CFLAGS="%{build_cflags} -D_GNU_SOURCE" %configure --with-gaproot=%{gap_dir} %make_build # Fix a path in the shell wrapper sed -i "s,$PWD,\$GAP_DIR/pkg/%{name}-%{version}," bin/xgap.sh # Link to main GAP documentation ln -s %{gap_dir}/etc ../../etc ln -s %{gap_dir}/doc ../../doc ln -s %{gap_dir}/pkg/smallgrp .. ln -s %{name}-%{version} ../%{name} make -C doc manual rm -f ../%{name} ../smallgrp ../../{doc,etc} %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{gap_dir}/pkg/%{name}/doc cp -a *.g bin examples htm lib tst %{buildroot}%{gap_dir}/pkg/%{name} mv %{buildroot}%{gap_dir}/pkg/%{name}/bin/xgap.sh %{buildroot}%{_bindir}/xgap rm %{buildroot}%{gap_dir}/pkg/%{name}/bin/*/{Makefile,config*,*.o} %gap_copy_docs -n %{name} # Install the desktop file mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --mode=644 --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} # Install the X resource file mkdir -p %{buildroot}%{_datadir}/X11/app-defaults cp -p %{SOURCE2} %{buildroot}%{_datadir}/X11/app-defaults %check # Temporarily modify the test runner to add the necessary -l argument sed -i.orig 's|"-p"|"-l","%{buildroot}%{gap_dir};",&|' \ %{buildroot}%{gap_dir}/pkg/%{name}/tst/xgap_test.g gap -l "%{buildroot}%{gap_dir};" tst/testall.g mv %{buildroot}%{gap_dir}/pkg/%{name}/tst/xgap_test.g.orig \ %{buildroot}%{gap_dir}/pkg/%{name}/tst/xgap_test.g %files %doc CHANGES README %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/X11/app-defaults/XGap %{gap_dir}/pkg/%{name}/ %exclude %{gap_dir}/pkg/%{name}/doc/ %exclude %{gap_dir}/pkg/%{name}/examples/ %exclude %{gap_dir}/pkg/%{name}/htm/ %files doc %docdir %{gap_dir}/pkg/%{name}/doc/ %docdir %{gap_dir}/pkg/%{name}/examples/ %docdir %{gap_dir}/pkg/%{name}/htm/ %{gap_dir}/pkg/%{name}/doc/ %{gap_dir}/pkg/%{name}/examples/ %{gap_dir}/pkg/%{name}/htm/ %changelog * Thu Nov 10 2022 Jerry James - 4.31-5 - Fix and reenable the tests - Clarify license of the doc subpackage * Tue Sep 27 2022 Jerry James - 4.31-4 - Update for gap 4.12.0 - Convert License tag to SPDX - Add -ref patch * Mon Jul 25 2022 Jerry James - 4.31-3 - Rebuild due to changed binary dir name on s390x * Sat Jul 23 2022 Fedora Release Engineering - 4.31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Feb 21 2022 Jerry James - 4.31-1 - Version 4.31 - Drop upstreamed -buildman patch * Sat Jan 22 2022 Fedora Release Engineering - 4.30-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 4.30-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 3 2021 Jerry James - 4.30-8 - Remove unnecessary BR on tex(manfnt.tfm) * Thu Jan 28 2021 Fedora Release Engineering - 4.30-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 4.30-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Mar 12 2020 Jerry James - 4.30-5 - Rebuild for gap 4.11.0 * Fri Jan 31 2020 Fedora Release Engineering - 4.30-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 4.30-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Jerry James - 4.30-2 - Require gap, not gap-core, so the binary can be invoked and the icon be seen * Wed Apr 24 2019 Jerry James - 4.30-1 - New upstream release * Mon Feb 4 2019 Jerry James - 4.29-3 - Rebuild for gap 4.10.0 - Add -buildman patch - Add -doc subpackage * Sun Feb 03 2019 Fedora Release Engineering - 4.29-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 15 2018 Jerry James - 4.29-1 - New upstream release * Mon Sep 24 2018 Jerry James - 4.28-1 - New upstream release * Sat Jul 14 2018 Fedora Release Engineering - 4.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 22 2018 Jerry James - 4.27-1 - New upstream release * Fri Feb 09 2018 Fedora Release Engineering - 4.26-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 4.26-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.26-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Nov 7 2016 Jerry James - 4.26-1 - New upstream release * Sat Jul 30 2016 Jerry James - 4.24-1 - New upstream release - New URLs * Thu Apr 7 2016 Jerry James - 4.23-13 - Rebuild for gap 4.8.3 * Fri Feb 05 2016 Fedora Release Engineering - 4.23-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 11 2015 Jerry James - 4.23-11 - Simplify scriptlets; gap-core now uses rpm file triggers - Rebuild documentation from source * Fri Jun 19 2015 Fedora Release Engineering - 4.23-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jan 24 2015 Jerry James - 4.23-9 - Silence scriptlets when uninstalling - Mark some content as documentation * Mon Aug 18 2014 Fedora Release Engineering - 4.23-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 4.23-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 4.23-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 22 2013 Jerry James - 4.23-5 - Build with large file support * Fri Feb 15 2013 Fedora Release Engineering - 4.23-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Sep 17 2012 Jerry James - 4.23-3 - Rebuild for GAP 4.5 * Sun Jul 22 2012 Fedora Release Engineering - 4.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed May 9 2012 Jerry James - 4.23-1 - New upstream release - Fix bz 819705 issues: - Fix xgap shell script - Install X11 resource file - Turn off autoloading, as that interferes with SAGE * Mon Apr 23 2012 Jerry James - 4.22-1 - New upstream release - Add gap-devel BR to get _gap_dir and _gap_arch_dir macros * Wed Mar 28 2012 Jerry James - 4.21-3 - Fix binary permissions * Fri Feb 17 2012 Jerry James - 4.21-2 - Add desktop file - Fix inconsistent macro use * Mon Jan 23 2012 Jerry James - 4.21-1 - Initial RPM