## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 giturl https://github.com/gap-packages/xgap Name: xgap Version: 4.32 Release: %autorelease 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 # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} URL: https://gap-packages.github.io/xgap/ VCS : git:%{giturl}.git Source0: %{giturl}/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 # This patch quiets a compiler warning. Patch: %{name}-warning.patch # Fix FTBFS due to an incompatible pointer type Patch: %{name}-incompatible-pointer.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 # Nimbus: AGPL-3.0-only License: GPL-2.0-or-later AND OFL-1.1-RFN AND Knuth-CTAN 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_archdir} %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_libdir}/etc ../../etc ln -s %{gap_libdir}/doc ../../doc ln -s %{gap_libdir}/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_archdir}/pkg/%{name}/doc cp -a *.g bin examples htm lib tst %{buildroot}%{gap_archdir}/pkg/%{name} mv %{buildroot}%{gap_archdir}/pkg/%{name}/bin/xgap.sh %{buildroot}%{_bindir}/xgap rm %{buildroot}%{gap_archdir}/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_archdir};",&|' \ %{buildroot}%{gap_archdir}/pkg/%{name}/tst/xgap_test.g gap -l "%{buildroot}%{gap_archdir};" tst/testall.g mv %{buildroot}%{gap_archdir}/pkg/%{name}/tst/xgap_test.g.orig \ %{buildroot}%{gap_archdir}/pkg/%{name}/tst/xgap_test.g %files %doc CHANGES README %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/X11/app-defaults/XGap %{gap_archdir}/pkg/%{name}/ %exclude %{gap_archdir}/pkg/%{name}/doc/ %exclude %{gap_archdir}/pkg/%{name}/examples/ %exclude %{gap_archdir}/pkg/%{name}/htm/ %files doc %docdir %{gap_archdir}/pkg/%{name}/doc/ %docdir %{gap_archdir}/pkg/%{name}/examples/ %docdir %{gap_archdir}/pkg/%{name}/htm/ %{gap_archdir}/pkg/%{name}/doc/ %{gap_archdir}/pkg/%{name}/examples/ %{gap_archdir}/pkg/%{name}/htm/ %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 4.32-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Jerry James - 4.32-4 - Fix the VCS field * Mon Mar 18 2024 Jerry James - 4.32-3 - Bump release and rebuild * Fri Mar 15 2024 Jerry James - 4.32-2 - Add incompatible-pointer patch to fix FTBFS * Fri Mar 15 2024 Jerry James - 4.32-1 - Version 4.32 - Drop upstreamed gaparch and ref patches * Sat Jan 27 2024 Fedora Release Engineering - 4.31-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 30 2023 Jerry James - 4.31-9 - Fix incompatible pointer type warning * Sat Jul 22 2023 Fedora Release Engineering - 4.31-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 4.31-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 12 2023 Jerry James - 4.31-6 - Update for split GAP directories * 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 ## END: Generated by rpmautospec