From c7d501bb84df408dca0477ead9f9f2e3611fbeb0 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 4 Oct 2023 20:32:47 -0600 Subject: [PATCH 01/10] Update to MPFR 4.2.1 --- mpfr.spec | 21 ++++++--------------- sources | 2 +- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/mpfr.spec b/mpfr.spec index f6313d0..fbb5da5 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr -Version: 4.2.0 -Release: 3%{?dist} +Version: 4.2.1 +Release: 1%{?dist} URL: https://www.mpfr.org/ License: LGPL-3.0-or-later @@ -13,19 +13,7 @@ BuildRequires: texinfo Source0: https://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz # Upstream post-release patches. This currently contains: -# - tsprintf-thousands.patch -# - ui_pow_ui-overflow.patch -# - multibyte-decimal_point.patch -# - rec_sqrt-zivloop.patch -# - reldiff.patch -# - tests-reuse.patch -# - pow_general.patch -# - compound.patch -# - printf_large_prec_for_g.patch -# - gcc-pr106155-workaround.patch -# - inp_str-nullchar.patch -# - strtofr-nullchar.patch -Patch0: https://www.mpfr.org/%{name}-%{version}/allpatches +#Patch0: https://www.mpfr.org/%%{name}-%%{version}/allpatches %description The MPFR library is a C library for multiple-precision floating-point @@ -107,6 +95,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Wed Oct 4 2023 Jerry James - 4.2.1-1 +- Update to MPFR 4.2.1 + * Thu Jul 20 2023 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 19c885c..3e69b9e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mpfr-4.2.0.tar.xz) = 58e843125884ca58837ae5159cd4092af09e8f21931a2efd19c15de057c9d1dc0753ae95c592e2ce59a727fbc491af776db8b00a055320413cdcf2033b90505c +SHA512 (mpfr-4.2.1.tar.xz) = bc68c0d755d5446403644833ecbb07e37360beca45f474297b5d5c40926df1efc3e2067eecffdf253f946288bcca39ca89b0613f545d46a9e767d1d4cf358475 From d1f3ce8df483a3fa4a7e6ca6597b35c860bb000f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 08:44:44 +0000 Subject: [PATCH 02/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index fbb5da5..841ba86 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.1 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://www.mpfr.org/ License: LGPL-3.0-or-later @@ -95,6 +95,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 4.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Oct 4 2023 Jerry James - 4.2.1-1 - Update to MPFR 4.2.1 From 5922b52bac87b4daa294fa5898ec79ee67b17d28 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 08:11:28 +0000 Subject: [PATCH 03/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 841ba86..c6018a6 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.1 -Release: 2%{?dist} +Release: 3%{?dist} URL: https://www.mpfr.org/ License: LGPL-3.0-or-later @@ -95,6 +95,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 4.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 4.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 45cb3e8d14427f36952a17f37ecd153c1830da7c Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 9 May 2024 09:25:19 -0600 Subject: [PATCH 04/10] Own the documentation directory (bz 2279758) --- mpfr.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index c6018a6..6fac8d9 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,8 +1,9 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.1 -Release: 3%{?dist} +Release: 4%{?dist} URL: https://www.mpfr.org/ +VCS: https://gitlab.inria.fr/mpfr/mpfr License: LGPL-3.0-or-later BuildRequires: gcc @@ -73,6 +74,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %files %license COPYING COPYING.LESSER +%dir %{_pkgdocdir} %{_pkgdocdir}/NEWS %{_pkgdocdir}/README %{_libdir}/libmpfr.so.6* @@ -95,6 +97,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu May 9 2024 Jerry James - 4.2.1-4 +- Own the documentation directory (bz 2279758) + * Thu Jan 25 2024 Fedora Release Engineering - 4.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 0cf369ae90fac1f2751c493b6c32c960d65c893f Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 17 Jul 2024 09:55:08 -0600 Subject: [PATCH 05/10] Fix the VCS field - Fix doc subpackage directory ownership issue --- mpfr.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mpfr.spec b/mpfr.spec index 6fac8d9..feb8980 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -3,7 +3,7 @@ Name: mpfr Version: 4.2.1 Release: 4%{?dist} URL: https://www.mpfr.org/ -VCS: https://gitlab.inria.fr/mpfr/mpfr +VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git License: LGPL-3.0-or-later BuildRequires: gcc @@ -11,7 +11,7 @@ BuildRequires: gmp-devel BuildRequires: make BuildRequires: texinfo -Source0: https://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz +Source: https://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz # Upstream post-release patches. This currently contains: #Patch0: https://www.mpfr.org/%%{name}-%%{version}/allpatches @@ -87,6 +87,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %files doc %license COPYING COPYING.LESSER +%dir %{_pkgdocdir} %{_pkgdocdir}/AUTHORS %{_pkgdocdir}/BUGS %{_pkgdocdir}/ChangeLog From 62bd2cdcc23b1a355ddcb839a66eaf8955585547 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 18:45:32 +0000 Subject: [PATCH 06/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index feb8980..4ab4009 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.1 -Release: 4%{?dist} +Release: 5%{?dist} URL: https://www.mpfr.org/ VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git @@ -98,6 +98,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 4.2.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Thu May 9 2024 Jerry James - 4.2.1-4 - Own the documentation directory (bz 2279758) From ec4720d961ff13ed28be63a607ffe252919b46f2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 19:13:16 +0000 Subject: [PATCH 07/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 4ab4009..b82c547 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.1 -Release: 5%{?dist} +Release: 6%{?dist} URL: https://www.mpfr.org/ VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git @@ -98,6 +98,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 4.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 4.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From d9e96fd5fb057d5f894d5e5eddf0e59e18f032e0 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 20 Mar 2025 11:24:02 -0600 Subject: [PATCH 08/10] Update to MPFR 4.2.2 --- mpfr.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mpfr.spec b/mpfr.spec index b82c547..87247b8 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr -Version: 4.2.1 -Release: 6%{?dist} +Version: 4.2.2 +Release: 1%{?dist} URL: https://www.mpfr.org/ VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git @@ -98,6 +98,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu Mar 20 2025 Jerry James - 4.2.2-1 +- Update to MPFR 4.2.2 + * Fri Jan 17 2025 Fedora Release Engineering - 4.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 3e69b9e..9786c30 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mpfr-4.2.1.tar.xz) = bc68c0d755d5446403644833ecbb07e37360beca45f474297b5d5c40926df1efc3e2067eecffdf253f946288bcca39ca89b0613f545d46a9e767d1d4cf358475 +SHA512 (mpfr-4.2.2.tar.xz) = eb9e7f51b5385fb349cc4fba3a45ffdf0dd53be6dfc74932dc01258158a10514667960c530c47dd9dfc5aa18be2bd94859d80499844c5713710581e6ac6259a9 From 830dbbe0e00a3bce4fb88469b8afb0046bb9163f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Tue, 24 Jun 2025 15:09:24 +0200 Subject: [PATCH 09/10] tests: migrate STI tests to TMT --- .fmf/version | 1 + plans/ci.fmf | 5 ++++ tests/silvester-number/main.fmf | 6 +++++ tests/silvester-number/test.sh | 10 +++++++ tests/tests.yml | 46 --------------------------------- 5 files changed, 22 insertions(+), 46 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/ci.fmf create mode 100644 tests/silvester-number/main.fmf create mode 100755 tests/silvester-number/test.sh delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/silvester-number/main.fmf b/tests/silvester-number/main.fmf new file mode 100644 index 0000000..919dffd --- /dev/null +++ b/tests/silvester-number/main.fmf @@ -0,0 +1,6 @@ +summary: Calculate Silvester Number +framework: shell +test: ./test.sh +component: mpfr +recommends: + - gawk diff --git a/tests/silvester-number/test.sh b/tests/silvester-number/test.sh new file mode 100755 index 0000000..d46c907 --- /dev/null +++ b/tests/silvester-number/test.sh @@ -0,0 +1,10 @@ +#!/bin/sh -eux + +OUT="$(gawk -M 'BEGIN { + s = 2 + for (i = 1; i <= 7; i++) + s = s * (s - 1) + 1 + print s +}')" + +test "$OUT" = "113423713055421844361000443" diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index dd32ccf..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,46 +0,0 @@ -- hosts: all - vars: - - ansible_python_interpreter: /usr/bin/python3 - - artifacts: ./artifacts - tags: - - classic - - container - - atomic - tasks: - - name: create artifacts - file: - path: "{{ artifacts }}" - state: directory - delegate_to: localhost - - - name: do it all - block: - - name: calculate Silvester number - command: | - gawk -M 'BEGIN { - s = 2 - for (i = 1; i <= 7; i++) - s = s * (s - 1) + 1 - print s - }' - register: silvester - - - name: verify Silvester number - fail: - when: silvester.stdout != '113423713055421844361000443' - - always: - - name: write log - copy: - content: | - stderr: - {{ silvester.stderr }} - stdout: - {{ silvester.stdout }} - dest: "{{ artifacts }}/test.log" - delegate_to: localhost - -# fetch: -# dest: "{{ artifacts }}/" -# src: "/tmp/test.log" -# flat: yes From ebdaaedf86e2a22913d26995ac27c9d1e45cd406 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 22:24:07 +0000 Subject: [PATCH 10/10] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 87247b8..68ad652 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.2 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://www.mpfr.org/ VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git @@ -98,6 +98,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 4.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Mar 20 2025 Jerry James - 4.2.2-1 - Update to MPFR 4.2.2