Compare commits

..

21 commits

Author SHA1 Message Date
Fedora Release Engineering
ebdaaedf86 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 22:24:07 +00:00
Lukáš Zaoral
830dbbe0e0
tests: migrate STI tests to TMT 2025-06-24 15:09:24 +02:00
Jerry James
d9e96fd5fb Update to MPFR 4.2.2 2025-03-20 11:24:02 -06:00
Fedora Release Engineering
ec4720d961 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 19:13:16 +00:00
Fedora Release Engineering
62bd2cdcc2 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 18:45:32 +00:00
Jerry James
0cf369ae90 Fix the VCS field
- Fix doc subpackage directory ownership issue
2024-07-17 09:55:08 -06:00
Jerry James
45cb3e8d14 Own the documentation directory (bz 2279758) 2024-05-09 09:25:19 -06:00
Fedora Release Engineering
5922b52bac Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 08:11:28 +00:00
Fedora Release Engineering
d1f3ce8df4 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 08:44:44 +00:00
Jerry James
c7d501bb84 Update to MPFR 4.2.1 2023-10-04 20:32:47 -06:00
Fedora Release Engineering
af7310239e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 15:53:43 +00:00
Jerry James
1d54b0b669 Update to MPFR 4.2.0-p12 2023-07-18 15:09:15 -06:00
Jerry James
820b49a7d3 Update to MPFR 4.2.0-p9 2023-07-12 20:11:53 -06:00
Fedora Release Engineering
b8d86e27c1 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 20:49:46 +00:00
Jerry James
30b564b576 Update to MPFR 4.1.1-p1 (rhbz#2147377) 2022-11-23 15:04:59 -07:00
Jerry James
cca6e934e8 Update to MPFR version 4.1.1
- Drop all patches
- Convert License tags to SPDX
2022-11-17 14:38:40 -07:00
Fedora Release Engineering
2fb321653b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 23:50:16 +00:00
Jerry James
ed735e8d2c Add README.md. 2022-07-18 13:59:56 -06:00
Fedora Release Engineering
4290d28595 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 20:30:59 +00:00
Jerry James
d80e858fdc Remove old obsoletes used in the 3.x to 4.x transition. 2022-01-14 13:13:31 -07:00
Fedora Release Engineering
4a657d6045 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 15:28:11 +00:00
10 changed files with 2216 additions and 2971 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

16
README.md Normal file
View file

@ -0,0 +1,16 @@
# mpfr
The [MPFR library](https://www.mpfr.org/) is a C library for
multiple-precision floating-point computations with _correct rounding_. MPFR
has continuously been supported by [INRIA](https://www.inria.fr/) and the
current main authors come from the [Caramba](https://caramba.loria.fr/) and
[AriC](http://www.ens-lyon.fr/LIP/AriC/) project teams at
[Loria](https://www.loria.fr/) (Nancy, France) and
[LIP](http://www.ens-lyon.fr/LIP/) (Lyon, France) respectively; see more on
the [credit page](https://www.mpfr.org/credit.html). MPFR is based on the
[GMP](https://gmplib.org/) multiple-precision library.
The main goal of MPFR is to provide a library for multiple-precision
floating-point computation which is both efficient and has a well-defined
semantics. It copies the good ideas from the ANSI/IEEE-754 standard for
double-precision floating-point arithmetic (53-bit significand).

4994
allpatches

File diff suppressed because it is too large Load diff

View file

@ -1,5 +0,0 @@
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
# Documentation is in the -doc subpackage
addFilter(r'^mpfr.?-devel\.[^:]+: W: no-documentation')

102
mpfr.spec
View file

@ -1,36 +1,20 @@
Summary: C library for multiple-precision floating-point computations
Name: mpfr
Version: 4.1.0
Release: 7%{?dist}
Version: 4.2.2
Release: 2%{?dist}
URL: https://www.mpfr.org/
VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git
License: LGPLv3+
License: LGPL-3.0-or-later
BuildRequires: gcc
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:
# - decimal128-conv.patch
# - random_deviate.patch
# - set_z_2exp-overflow.patch
# - prototypes.patch
# - digamma-hugemem.patch
# - digamma-interm-zero.patch
# - jn-interm-zero.patch
# - digamma-interm-zero2.patch
# - jyn-asympt-interm-zero.patch
# - macros.patch
# - tset_sij.patch
# - get_str_ndigits.patch
# - vasprintf-prec-zero.patch
Patch0: https://www.mpfr.org/%{name}-%{version}/allpatches
# This can be removed when F32 reaches EOL
Obsoletes: mpfr3 < 4.0.0
Provides: mpfr3 = %{version}-%{release}
#Patch0: https://www.mpfr.org/%%{name}-%%{version}/allpatches
%description
The MPFR library is a C library for multiple-precision floating-point
@ -44,10 +28,6 @@ Summary: Development files for the MPFR library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: gmp-devel%{?_isa}
# This can be removed when F32 reaches EOL
Obsoletes: mpfr3-devel < 4.0.0
Provides: mpfr3-devel = %{version}-%{release}
%description devel
Header files and documentation for using the MPFR
multiple-precision floating-point library in applications.
@ -58,7 +38,7 @@ install the mpfr package.
%package doc
Summary: Documentation for the MPFR library
License: GFDL
License: GFDL-1.2-no-invariants-or-later
BuildArch: noarch
%description doc
@ -81,7 +61,7 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
%install
%make_install
cp -p PATCHES README %{buildroot}%{_pkgdocdir}
cp -p ChangeLog PATCHES README %{buildroot}%{_pkgdocdir}
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_infodir}/dir
@ -94,9 +74,8 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%files
%license COPYING COPYING.LESSER
%{_pkgdocdir}/BUGS
%dir %{_pkgdocdir}
%{_pkgdocdir}/NEWS
%{_pkgdocdir}/PATCHES
%{_pkgdocdir}/README
%{_libdir}/libmpfr.so.6*
@ -107,13 +86,74 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%{_libdir}/pkgconfig/mpfr.pc
%files doc
%license COPYING COPYING.LESSER
%dir %{_pkgdocdir}
%{_pkgdocdir}/AUTHORS
%{_pkgdocdir}/examples
%{_pkgdocdir}/BUGS
%{_pkgdocdir}/ChangeLog
%{_pkgdocdir}/FAQ.html
%{_pkgdocdir}/PATCHES
%{_pkgdocdir}/TODO
%{_pkgdocdir}/examples
%{_infodir}/mpfr.info*
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Mar 20 2025 Jerry James <loganjerry@gmail.com> - 4.2.2-1
- Update to MPFR 4.2.2
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu May 9 2024 Jerry James <loganjerry@gmail.com> - 4.2.1-4
- Own the documentation directory (bz 2279758)
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Oct 4 2023 Jerry James <loganjerry@gmail.com> - 4.2.1-1
- Update to MPFR 4.2.1
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 18 2023 Jerry James <loganjerry@gmail.com> - 4.2.0-2
- Update to MPFR 4.2.0-p12
* Wed Jul 12 2023 Jerry James <loganjerry@gmail.com> - 4.2.0-1
- Update to MPFR 4.2.0-p9
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Nov 23 2022 Jerry James <loganjerry@gmail.com> - 4.1.1-2
- Update to MPFR 4.1.1-p1
* Thu Nov 17 2022 Jerry James <loganjerry@gmail.com> - 4.1.1-1
- Update to MPFR version 4.1.1
- Drop all patches
- Convert License tags to SPDX
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jan 14 2022 Jerry James <loganjerry@gmail.com> - 4.1.0-8
- Remove old obsoletes used in the 3.x to 4.x transition
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat May 22 2021 Jerry James <loganjerry@gmail.com> - 4.1.0-7
- Add upstream patches 12-13

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (mpfr-4.1.0.tar.xz) = 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273
SHA512 (mpfr-4.2.2.tar.xz) = eb9e7f51b5385fb349cc4fba3a45ffdf0dd53be6dfc74932dc01258158a10514667960c530c47dd9dfc5aa18be2bd94859d80499844c5713710581e6ac6259a9

View file

@ -0,0 +1,6 @@
summary: Calculate Silvester Number
framework: shell
test: ./test.sh
component: mpfr
recommends:
- gawk

10
tests/silvester-number/test.sh Executable file
View file

@ -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"

View file

@ -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