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/mpfr.spec b/mpfr.spec index 6fac8d9..68ad652 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,9 +1,9 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr -Version: 4.2.1 -Release: 4%{?dist} +Version: 4.2.2 +Release: 2%{?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 @@ -97,6 +98,18 @@ 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 + +* 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 + * Thu May 9 2024 Jerry James - 4.2.1-4 - Own the documentation directory (bz 2279758) 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/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 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