diff --git a/mpdecimal.spec b/mpdecimal.spec index 017878d37fe9dc63647da823bf0482956fc5e8fc..1f31717242f93e71f353cffd73c328c010ba128a 100644 --- a/mpdecimal.spec +++ b/mpdecimal.spec @@ -1,5 +1,5 @@ -%define anolis_release 2 -# versioned documentation for old releases +%define anolis_release 3 + %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: mpdecimal @@ -7,52 +7,41 @@ Version: 2.5.1 Release: %{anolis_release}%{?dist} Summary: Library for general decimal arithmetic License: BSD - URL: http://www.bytereef.org/mpdecimal/index.html Source0: http://www.bytereef.org/software/mpdecimal/releases/mpdecimal-%{version}.tar.gz Source1: http://speleotrove.com/decimal/dectest.zip -BuildRequires: make -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: unzip +BuildRequires: gcc gcc-c++ make unzip %description -The package contains a library limpdec implementing General Decimal Arithmetic -Specification. The specification, written by Mike Cowlishaw from IBM, defines -a general purpose arbitrary precision data type together with rigorously -specified functions and rounding behavior. +mpdecimal is a package for correctly-rounded arbitrary precision decimal floating point arithmetic. + +libmpdec is a C implementation of the General Decimal Arithmetic Specification. The specification defines +a general purpose arbitrary precision data type together with rigorously specified functions and rounding +behavior. libmpdec conforms - with minor restrictions - to the IEEE 754-2008 Standard for Floating-Point +Arithmetic, provided that the appropriate context parameters are set. libmpdec++ has a thread local context +for inline operators and other functions that use the implicit context. %package devel -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{EVR} Summary: Development headers for mpdecimal library %description devel The package contains development headers for the mpdecimal library. %package doc -Summary: Documentation for mpdecimal library -# docs is FBSDDL -# bundles underscore.js: MIT -# bundles jquery: MIT or GPLv2 -# jquery bundles sizzle.js: MIT and BSD and GPL -License: FBSDDL and BSD and GPL +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} BuildArch: noarch -Provides: bundled(js-jquery) = 1.7.2 -Provides: bundled(js-underscore) = 1.4.4 %description doc -The package contains documentation for the mpdecimal library. +The %{name}-doc package contains documentation files for %{name}. %prep -%autosetup +%autosetup -p1 unzip -d tests/testdata %{SOURCE1} %build -# Force -ffat-lto-objects so that configure tests are assembled which -# is required for ASM configure tests. -ffat-lto-objects is the default -# for F33, but will not be the default in F34 -#define _lto_cflags -flto=auto -ffat-lto-objects %configure make %{?_smp_mflags} @@ -63,13 +52,10 @@ make check %install %make_install rm -f %{buildroot}%{_libdir}/*.a - -# license will go into dedicated directory rm -f %{buildroot}%{_docdir}/%{name}/LICENSE.txt -# relocate documentation if versioned documentation is used if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}" ]; then - install -d -m 0755 %{buildroot}%{_pkgdocdir} + mkdir -p %{buildroot}%{_pkgdocdir} mv -v %{buildroot}%{_docdir}/%{name}/* %{buildroot}%{_pkgdocdir}/ fi @@ -91,12 +77,13 @@ fi %{_includedir}/decimal.hh %files doc -%license doc/LICENSE.txt +%doc README.txt INSTALL.txt CHANGELOG.txt %doc %{_pkgdocdir} -%ldconfig_scriptlets - %changelog +* Tue Apr 11 2023 yuanhui - 2.5.1-3 +- Optimize the spec file + * Tue Oct 18 2022 mgb01105731 - 2.5.1-2 - optimise spec file