## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Whether to package the compatibility .so from the previous release. # This installs self as a build dependency and copies the files. # Once disabled, it can only be built when the previous version is tagged in. # It is required to be able to rebuild Pythons with the new library. %bcond compat 0 Name: mpdecimal Version: 4.0.1 Release: %autorelease Summary: Library for general decimal arithmetic License: BSD-2-Clause URL: https://www.bytereef.org/mpdecimal/index.html Source0: https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-%{version}.tar.gz Source1: https://speleotrove.com/decimal/dectest.zip BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: unzip %if %{with compat} BuildRequires: %{name} %endif %description The package contains a library libmpdec 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. %package -n %{name}++ Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Library for general decimal arithmetic (C++) %description -n %{name}++ The package contains a library libmpdec++ 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. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}++%{?_isa} = %{version}-%{release} Summary: Development headers for mpdecimal library %description devel The package contains development headers for the mpdecimal library. %prep %autosetup unzip -d tests/testdata %{SOURCE1} %build %configure --disable-static # Set LDXXFLAGS to properly pass the buildroot # linker flags to the C++ extension. %make_build LDXXFLAGS="%{build_ldflags}" %check %make_build check %install %make_install # license will go into dedicated directory rm %{buildroot}%{_docdir}/%{name}/COPYRIGHT.txt %if %{with compat} cp -a %{_libdir}/libmpdec.so.2.5.1 %{buildroot}%{_libdir}/libmpdec.so.3 %endif %files %doc README.txt CHANGELOG.txt %license COPYRIGHT.txt %{_libdir}/libmpdec.so.%{version} %{_libdir}/libmpdec.so.4 %if %{with compat} %{_libdir}/libmpdec.so.3 %endif %files -n %{name}++ %{_libdir}/libmpdec++.so.%{version} %{_libdir}/libmpdec++.so.4 %files devel %{_libdir}/libmpdec.so %{_libdir}/libmpdec++.so %{_includedir}/mpdecimal.h %{_includedir}/decimal.hh %{_libdir}/pkgconfig/libmpdec.pc %{_libdir}/pkgconfig/libmpdec++.pc %{_mandir}/man3/libmpdec.3* %{_mandir}/man3/libmpdec++.3* %{_mandir}/man3/mpdecimal*.3* %changelog ## START: Generated by rpmautospec * Wed May 14 2025 Jaroslav Škarvada - 4.0.1-1 - Update to 4.0.1 * Thu Feb 06 2025 Miro Hrončok - 4.0.0-2 - Drop compatibility libmpdec.so.3 after Python rebuilds * Tue Feb 04 2025 Miro Hrončok - 4.0.0-1 - Update to 4.0.0 - Fixes: rhbz#2258538 - Removes the doc package, has manual pages instead - Include compatibility libmpdec.so.3 to allow Python rebuilds * Fri Jan 17 2025 Fedora Release Engineering - 2.5.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 2.5.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 03 2024 Charalampos Stratakis - 2.5.1-15 - Fix bind-now annocheck failure by passing the proper LDFLAGS to the C++ library * Thu Jan 25 2024 Fedora Release Engineering - 2.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.5.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 2.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Miro Hrončok - 2.5.1-6 - Split libmpdec++ into a mpdecimal++ subpackage - This prevents packages only using the libmpdec library from transitively depending on libstdc++ * Thu Jan 19 2023 Fedora Release Engineering - 2.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 2.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Feb 1 2021 Jaroslav Škarvada - 2.5.1-1 - New version Resolves: rhbz#1921929 * Tue Jan 26 2021 Fedora Release Engineering - 2.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Aug 31 2020 Jeff Law - 2.5.0-3 - Force -ffat-lto-objects and re-enable LTO * Thu Aug 6 2020 Jaroslav Škarvada - 2.5.0-2 - Re-enabled tests * Wed Aug 5 2020 Jaroslav Škarvada - 2.5.0-1 - New version Resolves: rhbz#1851761 - Fixed changelog * Sat Aug 01 2020 Fedora Release Engineering - 2.4.2-16 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.4.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 30 2020 Jeff Law - 2.4.2-14 - Disable LTO * Wed Jan 29 2020 Fedora Release Engineering - 2.4.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 2.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 2.4.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Aug 30 2016 Jan Vcelak - 2.4.2-5 - fix build on EPEL 7 * Tue Aug 30 2016 Jan Vcelak - 2.4.2-4 - doc: use versioned Provides for bundled libraries * Mon Aug 22 2016 Jan Vcelak - 2.4.2-3 - add ldconfig in post and postun - doc: add license file and fix License field - doc: add Provides for bundled JavaScript libraries * Fri Aug 12 2016 Jan Vcelak - 2.4.2-2 - fix build on EPEL 7 * Fri Jul 15 2016 Jan Vcelak - 2.4.2-1 - initial package ## END: Generated by rpmautospec