From 6c339710995e1cc53c31b3a0b3fb90161275a987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 20:33:02 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/mpfr#28c128f92757d261ce66120d7337f8ccd494d6ac --- .gitignore | 2 + STAGE1-mpfr | 7 ++ mpfr.rpmlintrc | 5 + mpfr.spec | 294 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + tests/tests.yml | 46 ++++++++ 6 files changed, 355 insertions(+) create mode 100644 STAGE1-mpfr create mode 100644 mpfr.rpmlintrc create mode 100644 mpfr.spec create mode 100644 sources create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index e69de29..90b17ba 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/mpfr-*.zip +/mpfr-*.tar.xz diff --git a/STAGE1-mpfr b/STAGE1-mpfr new file mode 100644 index 0000000..f69a67a --- /dev/null +++ b/STAGE1-mpfr @@ -0,0 +1,7 @@ +L=$1 +srpm $L +mcd $BUILDDIR/t-$L +$SRC/${L}-*/configure $TCONFIGARGS +make $J +make $J install DESTDIR=${ROOTFS} +fix_la $L diff --git a/mpfr.rpmlintrc b/mpfr.rpmlintrc new file mode 100644 index 0000000..1379528 --- /dev/null +++ b/mpfr.rpmlintrc @@ -0,0 +1,5 @@ +# 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') diff --git a/mpfr.spec b/mpfr.spec new file mode 100644 index 0000000..3c4a960 --- /dev/null +++ b/mpfr.spec @@ -0,0 +1,294 @@ +Summary: A C library for multiple-precision floating-point computations +Name: mpfr +Version: 4.1.0 +Release: 2%{?dist} +URL: http://www.mpfr.org/ + +License: LGPLv3+ +BuildRequires: gmp-devel gcc + +Source0: http://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz + +# This can be removed when F32 reaches EOL +Obsoletes: mpfr3 < 4.0.0 +Provides: mpfr3 = %{version}-%{release} + +%description +The MPFR library is a C library for multiple-precision floating-point +computations with "correct rounding". The MPFR is efficient and +also has a well-defined semantics. It copies the good ideas from the +ANSI/IEEE-754 standard for double-precision floating-point arithmetic +(53-bit mantissa). MPFR is based on the GMP multiple-precision library. + +%package devel +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. + +If you want to develop applications which will use the MPFR library, +you'll need to install the mpfr-devel package. You'll also need to +install the mpfr package. + +%package doc +Summary: Documentation for the MPFR library +License: GFDL +BuildArch: noarch + +%description doc +Documentation for the MPFR library. + +%prep +%autosetup -p1 + +%build +%configure --disable-assert --disable-static + +# Get rid of undesirable hardcoded rpaths; workaround libtool reordering +# -Wl,--as-needed after all the libraries. +sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ + -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ + -i libtool + +%make_build + +%install +%make_install +cp -p PATCHES README %{buildroot}%{_pkgdocdir} +rm -f %{buildroot}%{_libdir}/*.la +rm -f %{buildroot}%{_infodir}/dir + +#these go into licenses, not doc +rm -f %{buildroot}%{_pkgdocdir}/COPYING{,.LESSER} + +%check +export LD_LIBRARY_PATH=%{buildroot}%{_libdir} +%make_build check + +%files +%license COPYING COPYING.LESSER +%{_pkgdocdir}/BUGS +%{_pkgdocdir}/NEWS +%{_pkgdocdir}/PATCHES +%{_pkgdocdir}/README +%{_libdir}/libmpfr.so.6* + +%files devel +%{_libdir}/libmpfr.so +%{_includedir}/mpfr.h +%{_includedir}/mpf2mpfr.h +%{_libdir}/pkgconfig/mpfr.pc + +%files doc +%{_pkgdocdir}/AUTHORS +%{_pkgdocdir}/examples +%{_pkgdocdir}/FAQ.html +%{_pkgdocdir}/TODO +%{_infodir}/mpfr.info* + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 4.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 11 2020 Jerry James - 4.1.0-1 +- Update to MPFR version 4.1.0 +- Drop all patches + +* Mon Jun 29 2020 Jerry James - 4.0.2-5 +- Add upstream patches 8 and 9 + +* Thu Apr 16 2020 Jerry James - 4.0.2-4 +- Add upstream patches 2 through 7 + +* Wed Jan 29 2020 Fedora Release Engineering - 4.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 11 2019 Jerry James - 4.0.2-2 +- Drop the mpfr3 and mpfr3-devel subpackages + +* Tue Oct 8 2019 Jerry James - 4.0.2-1 +- Update to MPFR version 4.0.2 plus patch01 +- Make mpfr3 and mpfr3-devel subpackages for version 3.1.6 +- Add a -doc subpackage to hold the GFDL-licensed content +- The main package license is LGPLv3+; the GPLv3+ content is not packaged +- Drop unnecessary autoconf and libtool BRs +- Drop explicit R on gmp; it is autogenerated +- Drop info scriptlets; this version can never appear in Fedora < 32 or RHEL < 9 +- Drop ldconfig_scriptlets for the same reason +- Make sure there are no rpaths and that -Wl,--as-needed takes effect +- Do not use the %%doc macro; the files have already been copied + +* Thu Jul 25 2019 Fedora Release Engineering - 3.1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 3.1.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Oct 30 2018 Rex Dieter - 3.1.6-3 +- update scriptlets (#1644106) +- use %%make_build %%make_install + +* Fri Jul 13 2018 Fedora Release Engineering - 3.1.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Feb 25 2018 James Paul Turner - 3.1.6-1 +- Update to MPFR version 3.1.6 +- Use autosetup specfile macro for applying patches (patches 1 and 2 applied) +- Removed iconv calls, as they were breaking .info files, which are now unicode + resolves #1299649 +- Other minor cleanups +- BuildRequire gcc per https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires + +* Thu Feb 08 2018 Fedora Release Engineering - 3.1.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 3.1.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Mar 4 2017 Peter Robinson 3.1.5-3 +- Examples should be in devel +- Minor cleanups + +* Wed Feb 01 2017 Stephen Gallagher - 3.1.5-2 +- Add missing %%license macro + +* Tue Sep 27 2016 Frantisek Kluknavsky - 3.1.5-1 +- rebase + +* Tue Mar 08 2016 Frantisek Kluknavsky - 3.1.4-1 +- Rebase + +* Thu Feb 04 2016 Fedora Release Engineering - 3.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jan 21 2016 Dan Horák - 3.1.3-3 +- drop support for F<20 + +* Fri Oct 23 2015 David Sommerseth - 3.1.3-2 +- Fixed missing packaging of doc files + +* Tue Jun 23 2015 Frantisek Kluknavsky - 3.1.3-1 +- rebase to 3.1.3 +- limboverflow.patch already in tarball, dropped + +* Wed Jun 17 2015 Fedora Release Engineering - 3.1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Dec 12 2014 Frantisek Kluknavsky - 3.1.2-8 +- added limboverflow.patch, rhbz#1171701, rhbz#1171710, there was one less limb allocated in strtofr + +* Sun Aug 17 2014 Fedora Release Engineering - 3.1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 3.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Aug 06 2013 Ralf Corsépius - 3.1.2-4 +- Install docs into unversioned docdir (Fix FTBFS RHBZ#992296). +- Append --disable-static to %%configure. +- Fix broken %%changelog date. +- Remove stray cd .. + +* Sat Aug 03 2013 Fedora Release Engineering - 3.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jul 02 2013 Karsten Hopp 3.1.2-2 +- bump release and rebuild to fix dependencies on PPC + +* Fri Mar 22 2013 Frantisek Kluknavsky - 3.1.2-1 +- Rebase to 3.1.2 + +* Thu Feb 14 2013 Fedora Release Engineering - 3.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 26 2012 Peter Schiffer - 3.1.1-1 +- resolves: #837563 + update to 3.1.1 + +* Fri Jul 20 2012 Fedora Release Engineering - 3.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 3.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Nov 10 2011 Peter Schiffer - 3.1.0-1 +- resolves: #743237 + update to 3.1.0 +- removed compatibility symlinks and provides + +* Wed Oct 26 2011 Marcela Mašláňová - 3.0.0-4.2 +- rebuild with new gmp without compat lib + +* Wed Oct 12 2011 Peter Schiffer - 3.0.0-4.1 +- rebuild with new gmp + +* Tue Feb 08 2011 Fedora Release Engineering - 3.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 7 2010 Dan Horák 3.0.0-3 +- update the compat Provides for non-x86 arches + +* Wed Dec 1 2010 Ivana Hutarova Varekova 3.0.0-2 +- fix -devel description (see 603021#c3) + +* Tue Nov 16 2010 Ivana Hutarova Varekova 3.0.0-1 +- update to 3.0.0 +- created links and provides to .1 + +* Fri Dec 18 2009 Ivana Hutarova Varekova 2.4.2-1 +- update to 2.4.2 + +* Fri Nov 13 2009 Ivana Varekova 2.4.1-5 +- fix 537328 - mpfr-devel should "Requires: gmp-devel" + +* Wed Aug 12 2009 Ville Skyttä - 2.4.1-4 +- Use lzma compressed upstream tarball. + +* Mon Aug 10 2009 Ivana Varekova 2.4.1-3 +- fix installation with --excludedocs option (#515958) + +* Sat Jul 25 2009 Fedora Release Engineering - 2.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Mar 11 2009 Ivana Varekova - 2.4.1-1 +- update to 2.4.1 + +* Wed Feb 25 2009 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 4 2009 Ivana Varekova - 2.4.0-1 +- update to 2.4.0 + +* Wed Oct 15 2008 Ivana Varekova - 2.3.2-1 +- update to 2.3.2 + +* Mon Jul 21 2008 Ivana Varekova - 2.3.1-1 +- update to 2.3.1 + +* Wed Feb 20 2008 Fedora Release Engineering - 2.3.0-3 +- Autorebuild for GCC 4.3 + +* Fri Jan 18 2008 Ivana Varekova 2.3.0-2 +- rebuilt + +* Thu Sep 20 2007 Ivana Varekova 2.3.0-1 +- update to 2.3.0 +- fix license flag + +* Mon Aug 20 2007 Ivana Varekova 2.2.1-2 +- spec file cleanup (#253440) + +* Tue Jan 16 2007 Ivana Varekova 2.2.1-1 +- started + diff --git a/sources b/sources new file mode 100644 index 0000000..111089f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mpfr-4.1.0.tar.xz) = 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..dd32ccf --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,46 @@ +- 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