%global pkgname float Name: gap-pkg-%{pkgname} Version: 1.0.3 Release: 4%{?dist} Summary: GAP access to mpfr, mpfi, mpc, fplll and cxsc License: GPL-2.0-or-later ExclusiveArch: aarch64 ppc64le s390x x86_64 URL: https://gap-packages.github.io/float/ Source0: https://github.com/gap-packages/%{pkgname}/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz # Remove atexit hack, not needed for non-coverage builds Patch0: %{name}-atexit.patch # Fix infinitely recursive definitions to work as intended # https://github.com/gap-packages/float/pull/81 Patch1: %{name}-recursive.patch # Fix fplll detection Patch2: %{name}-fplll.patch BuildRequires: cxsc-devel BuildRequires: gap-devel BuildRequires: GAPDoc-latex BuildRequires: gcc-c++ BuildRequires: libmpc-devel BuildRequires: make BuildRequires: mpfi-devel BuildRequires: pkgconfig(fplll) BuildRequires: pkgconfig(mpfr) Requires: gap-core%{?_isa} %description This package implements floating-point numbers within GAP, with arbitrary precision, based on the C libraries FPLLL, MPFR, MPFI, MPC and CXSC. %package doc Summary: FLOAT documentation BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: gap-online-help %description doc This package contains documentation for gap-pkg-%{pkgname}. %prep %autosetup -n %{pkgname}-%{version} -p0 # Do not override Fedora build flags sed -i 's/-O3 -fomit-frame-pointer//;s/-O3/-O2/' configure %build export LC_ALL=C.UTF-8 export CPPFLAGS="-I %{_includedir}/cxsc" %configure --with-gaproot=%{gap_dir} --without-gcc-arch %make_build # Build the documentation mkdir ../pkg ln -s ../%{pkgname}-%{version} ../pkg gap -l "$PWD/..;" makedoc.g rm -fr ../pkg %install %make_install # Install the GAP files; we install test files for use by GAP's internal test # suite runner. cp -a *.g lib tst %{buildroot}%{gap_dir}/pkg/%{pkgname} rm -f %{buildroot}%{gap_dir}/pkg/%{pkgname}/{lib,tst}/Makefile* # Install the documentation mkdir -p %{buildroot}%{gap_dir}/pkg/%{pkgname}/doc %gap_copy_docs %check export LC_ALL=C.UTF-8 gap -l "%{buildroot}%{gap_dir};" tst/testall.g %files %doc README.md THANKS %license COPYING %{gap_dir}/pkg/%{pkgname}/ %exclude %{gap_dir}/pkg/%{pkgname}/doc/ %files doc %docdir %{gap_dir}/pkg/%{pkgname}/doc/ %{gap_dir}/pkg/%{pkgname}/doc/ %changelog * Tue Sep 27 2022 Jerry James - 1.0.3-4 - Update for gap 4.12.0 - Add -fplll patch to fix fplll detection * Wed Aug 17 2022 Jerry James - 1.0.3-3 - Convert License tag to SPDX * Sun Jul 24 2022 Jerry James - 1.0.3-3 - Rebuild due to changed binary dir name on s390x * Thu Jul 21 2022 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Feb 16 2022 Jerry James - 1.0.3-1 - Version 1.0.3 - Add -recursive patch * Thu Jan 20 2022 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 14 2021 Jerry James - 1.0.2-1 - Version 1.0.2 - Drop upstreamed -cxsc patch * Fri Nov 26 2021 Jerry James - 1.0.1-1 - Version 1.0.1 * Wed Nov 24 2021 Jerry James - 1.0.0-1 - Version 1.0.0 * Mon Oct 18 2021 Jerry James - 0.9.9-1 - Version 0.9.9 - License change from GPLv3+ to GPLv2+ * Wed Jul 21 2021 Fedora Release Engineering - 0.9.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.9.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 12 2020 Jerry James - 0.9.1-11 - Rebuild for libfplll 5.4.0 - Add -cxsc patch to fix issues with cxsc and gcc 11 * Mon Jul 27 2020 Fedora Release Engineering - 0.9.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 8 2020 Jerry James - 0.9.1-9 - Rebuild for libfplll 5.3.3 * Wed Mar 11 2020 Jerry James - 0.9.1-8 - Rebuild for gap 4.11.0 * Tue Jan 28 2020 Fedora Release Engineering - 0.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 9 2020 Jerry James - 0.9.1-6 - Rebuild for libfplll 5.3.2 * Thu Nov 28 2019 Jerry James - 0.9.1-5 - Rebuild for libfplll 5.3.0 * Fri Oct 11 2019 Jerry James - 0.9.1-4 - Rebuild for mpfr 4 * Thu Jul 25 2019 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Apr 24 2019 Jerry James - 0.9.1-2 - Rebuild for changed bin dir name in gap 4.10.1 * Fri Feb 1 2019 Jerry James - 0.9.1-1 - New upstream version - Add -doc subpackage * Thu Jan 31 2019 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 2 2018 Jerry James - 0.8.0-3 - Rebuild for libfplll 5.2.1 and mpfi 1.5.3 * Wed Feb 07 2018 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 17 2017 Jerry James - 0.8.0-1 - New upstream version (bz 1509755) - Drop upstreamed float-instantiator patch - Drop upstreamed testsuite fixups * Thu Sep 28 2017 Jerry James - 0.7.6-4 - Rebuild for libfplll 5.1.0 * Wed Aug 02 2017 Fedora Release Engineering - 0.7.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.7.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue May 9 2017 Jerry James - 0.7.6-1 - New upstream version (bz 1449208) * Wed Apr 5 2017 Jerry James - 0.7.5-2 - Rebuild for libfplll 5.x * Mon Feb 20 2017 Jerry James - 0.7.5-1 - New upstream version * Fri Feb 10 2017 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jul 1 2016 Jerry James - 0.7.4-1 - Initial RPM