From cd671608bce2fcc79b942c6b02b90aa7084fe361 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sun, 18 May 2025 22:06:32 +0200 Subject: [PATCH] Import mpdecimal_4.0.1-5.debian.tar.xz [dgit import tarball mpdecimal 4.0.1-5 mpdecimal_4.0.1-5.debian.tar.xz] --- changelog | 182 +++++++++ control | 51 +++ copyright | 53 +++ gbp.conf | 4 + libmpdec++-dev.install | 5 + libmpdec++4.install | 1 + libmpdec-dev.docs | 1 + libmpdec-dev.install | 6 + libmpdec4.install | 1 + libmpdec4.symbols | 347 ++++++++++++++++++ not-installed | 1 + ...01-Add-patch-to-support-for-GNU-Hurd.patch | 21 ++ patches/series | 1 + rules | 50 +++ source/format | 1 + tests/control | 13 + tests/official | 12 + tests/official++ | 14 + watch | 2 + 19 files changed, 766 insertions(+) create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 gbp.conf create mode 100644 libmpdec++-dev.install create mode 100644 libmpdec++4.install create mode 100644 libmpdec-dev.docs create mode 100644 libmpdec-dev.install create mode 100644 libmpdec4.install create mode 100644 libmpdec4.symbols create mode 100644 not-installed create mode 100644 patches/0001-Add-patch-to-support-for-GNU-Hurd.patch create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 tests/control create mode 100755 tests/official create mode 100755 tests/official++ create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..b103787 --- /dev/null +++ b/changelog @@ -0,0 +1,182 @@ +mpdecimal (4.0.1-5) unstable; urgency=medium + + * Update the autopkgtests to not use pipes + + -- Ondřej Surý Sun, 18 May 2025 22:06:32 +0200 + +mpdecimal (4.0.1-4) unstable; urgency=medium + + [ Ondřej Surý ] + * Add a complete autopkgtest suite using downloadable test suite + + [ Stefan Krah ] + * Add support for GNU Hurd (Closes: #1105761) + + -- Ondřej Surý Sun, 18 May 2025 13:56:07 +0200 + +mpdecimal (4.0.1-3) unstable; urgency=medium + + * Export LDXXFLAGS to be same as LDFLAGS (Closes: #1104994) + + -- Ondřej Surý Fri, 09 May 2025 19:28:02 +0200 + +mpdecimal (4.0.1-2) unstable; urgency=medium + + * Use arch-bits=64 in symbols files to cover more architectures. + (Closes: #1104985) + + -- Ondřej Surý Fri, 09 May 2025 14:15:41 +0200 + +mpdecimal (4.0.1-1) unstable; urgency=medium + + * Remove build-depends on libgmp-dev + * New upstream version 4.0.1 (Closes: #1104980, #1100587, #1104981) + * Add loong64 in d/libmpdec4.symbols (Closes: #1100676) + + -- Ondřej Surý Fri, 09 May 2025 13:49:34 +0200 + +mpdecimal (4.0.0-1) unstable; urgency=medium + + * New upstream version 4.0.0 + * Update packaging for mpdecimal 4.0.0 + * Split C and C++ libraries into separate packages + * Bump debhelper compatibility level to 13 + * Update licenses in d/copyright + + -- Ondřej Surý Sun, 09 Feb 2025 11:41:21 +0100 + +mpdecimal (2.5.1-2) unstable; urgency=medium + + * Mark symbols as optional not seen when building with lto. + + -- Matthias Klose Thu, 25 Mar 2021 11:54:28 +0100 + +mpdecimal (2.5.1-1) unstable; urgency=medium + + * New upstream release. + + -- Matthias Klose Fri, 29 Jan 2021 12:29:46 +0100 + +mpdecimal (2.5.1~rc1-2) unstable; urgency=medium + + * New upstream release candidate. + * Bump soname. + + -- Matthias Klose Mon, 11 Jan 2021 10:40:08 +0100 + +mpdecimal (2.5.0-5) unstable; urgency=medium + + * Mark some symbols as optional. (Helmut Grohne). Closes: #970735. + * Bump standards version. + + -- Matthias Klose Tue, 08 Dec 2020 10:16:04 +0100 + +mpdecimal (2.5.0-4ubuntu1) groovy; urgency=medium + + * Mark a symbol as optional, not seen on s390x z12. + + -- Matthias Klose Fri, 07 Aug 2020 14:06:04 +0200 + +mpdecimal (2.5.0-4) unstable; urgency=medium + + * Update symbols files. + + -- Matthias Klose Thu, 06 Aug 2020 15:33:23 +0200 + +mpdecimal (2.5.0-1) unstable; urgency=medium + + * New upstream version. + * Bump debhelper version. + * Update symbols file. + + -- Matthias Klose Sun, 02 Aug 2020 17:14:47 +0200 + +mpdecimal (2.4.2-3) unstable; urgency=medium + + * bpo-39576: Prevent memory error for overly optimistic precisions. + * Bump standards version. + + -- Matthias Klose Wed, 26 Feb 2020 09:33:46 +0100 + +mpdecimal (2.4.2-2) unstable; urgency=medium + + * Bump standards version. + * Fix building the docs in recent unstable (Steve Langasek). Closes: #887735. + + -- Matthias Klose Mon, 23 Apr 2018 09:44:34 +0200 + +mpdecimal (2.4.2-1) unstable; urgency=medium + + * New upstream release. + * Split out a libmpdec-doc package. Closes: #751861. + + -- Matthias Klose Fri, 18 Mar 2016 16:43:39 +0100 + +mpdecimal (2.4.1-1) unstable; urgency=medium + + * New upstream release. + + -- Matthias Klose Sun, 31 Aug 2014 21:16:48 +0200 + +mpdecimal (2.4.0-6) unstable; urgency=medium + + * Fix the uint128_t detection, so several architectures don't use the + substantially slower ANSI build (Stefan Krah). + * Fix the dangling .so symlink. + + -- Matthias Klose Fri, 10 Jan 2014 17:01:31 +0100 + +mpdecimal (2.4.0-5) unstable; urgency=medium + + * Always build with -fPIC, fixing build failure on sparc64. + * Don't use amd64-any in the symbols file, matching x32 for some reason. + See #734842. + + -- Matthias Klose Fri, 10 Jan 2014 11:25:17 +0100 + +mpdecimal (2.4.0-4) unstable; urgency=medium + + * Disable the allocation failure tests, takes too long to run + on slow architectures (Stefan Krah). + + -- Matthias Klose Fri, 10 Jan 2014 01:07:41 +0100 + +mpdecimal (2.4.0-3) unstable; urgency=medium + + * Fix symbols file for x32. + * Make the test run a bit more verbose (Stefan Krah). + + -- Matthias Klose Thu, 09 Jan 2014 16:23:47 +0100 + +mpdecimal (2.4.0-2) unstable; urgency=medium + + * Run the subset of tests which can be run without downloading + additional files. + * debian/control: Use ${sphinxdoc:Depends}. + * Removed copyrights for files removed upstream in 2.4. + + -- Matthias Klose Wed, 08 Jan 2014 23:11:05 +0100 + +mpdecimal (2.4.0-1) unstable; urgency=medium + + * New upstream release. + + -- Matthias Klose Sun, 05 Jan 2014 22:23:14 +0100 + +mpdecimal (2.3-3) unstable; urgency=low + + * Update symbols file for non-x86 32bit architectures. + + -- Matthias Klose Sat, 23 Nov 2013 07:42:40 +0100 + +mpdecimal (2.3-2) unstable; urgency=low + + * Update symbols file for 32bit architectures. + + -- Matthias Klose Fri, 22 Nov 2013 17:55:09 +0100 + +mpdecimal (2.3-1) unstable; urgency=low + + * Initial release (Closes: #692589). + + -- Matthias Klose Wed, 07 Nov 2012 14:57:10 +0100 diff --git a/control b/control new file mode 100644 index 0000000..d378068 --- /dev/null +++ b/control @@ -0,0 +1,51 @@ +Source: mpdecimal +Priority: optional +Maintainer: Ondřej Surý +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.1.3 +Section: libs +Homepage: http://www.bytereef.org/mpdecimal/index.html + +Package: libmpdec-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libmpdec4 (= ${binary:Version}), + ${misc:Depends} +Suggests: libmpdec-doc +Description: library for decimal floating point arithmetic (development files) + mpdecimal is a package for correctly-rounded arbitrary precision decimal + floating point arithmetic. + +Package: libmpdec4 +Section: libs +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, + ${shlibs:Depends} +Description: library for decimal floating point arithmetic (runtime library) + mpdecimal is a package for correctly-rounded arbitrary precision decimal + floating point arithmetic. + +Package: libmpdec++-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libmpdec++4 (= ${binary:Version}), + ${misc:Depends} +Suggests: libmpdec-doc +Description: library for decimal floating point arithmetic (C++ development files) + mpdecimal is a package for correctly-rounded arbitrary precision decimal + floating point arithmetic. + +Package: libmpdec++4 +Section: libs +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, + ${shlibs:Depends} +Description: library for decimal floating point arithmetic (C++ runtime library) + mpdecimal is a package for correctly-rounded arbitrary precision decimal + floating point arithmetic. diff --git a/copyright b/copyright new file mode 100644 index 0000000..de0dd5b --- /dev/null +++ b/copyright @@ -0,0 +1,53 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mpdecimal +Source: http://www.bytereef.org/mpdecimal/download.html + +Files: * +Copyright: Copyright (c) 2008-2025 Stefan Krah +License: BSD-2-clause + +Files: debian/* +Copyright: 2012 Matthias Klose + 2025 Ondřej Surý +License: GPL-2+ + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..69b0a3f --- /dev/null +++ b/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +upstream-branch = upstream +debian-branch = debian/latest +pristine-tar = True diff --git a/libmpdec++-dev.install b/libmpdec++-dev.install new file mode 100644 index 0000000..f23e673 --- /dev/null +++ b/libmpdec++-dev.install @@ -0,0 +1,5 @@ +usr/include/*/decimal.hh +usr/lib/*/libmpdec++.a +usr/lib/*/libmpdec++.so +usr/lib/*/pkgconfig/libmpdec++.pc +usr/share/man/man3/libmpdec++.3 diff --git a/libmpdec++4.install b/libmpdec++4.install new file mode 100644 index 0000000..9695599 --- /dev/null +++ b/libmpdec++4.install @@ -0,0 +1 @@ +usr/lib/*/libmpdec++.so.* diff --git a/libmpdec-dev.docs b/libmpdec-dev.docs new file mode 100644 index 0000000..71dfd5b --- /dev/null +++ b/libmpdec-dev.docs @@ -0,0 +1 @@ +README.txt diff --git a/libmpdec-dev.install b/libmpdec-dev.install new file mode 100644 index 0000000..57c76e0 --- /dev/null +++ b/libmpdec-dev.install @@ -0,0 +1,6 @@ +usr/include/*/mpdecimal.h +usr/lib/*/libmpdec.a +usr/lib/*/libmpdec.so +usr/lib/*/pkgconfig/libmpdec.pc +usr/share/man/man3/libmpdec.3 +usr/share/man/man3/mpdecimal.3 diff --git a/libmpdec4.install b/libmpdec4.install new file mode 100644 index 0000000..2a53bf6 --- /dev/null +++ b/libmpdec4.install @@ -0,0 +1 @@ +usr/lib/*/libmpdec.so.* diff --git a/libmpdec4.symbols b/libmpdec4.symbols new file mode 100644 index 0000000..58be4ed --- /dev/null +++ b/libmpdec4.symbols @@ -0,0 +1,347 @@ +libmpdec.so.4 libmpdec4 + MPD_MINALLOC@Base 2.3 + mpd_abs@Base 2.3 + mpd_abs_uint@Base 2.3 + mpd_add@Base 2.3 + mpd_add_i32@Base 2.3 + mpd_add_i64@Base 2.3 + mpd_add_ssize@Base 2.3 + mpd_add_u32@Base 2.3 + mpd_add_u64@Base 2.3 + mpd_add_uint@Base 2.3 + mpd_addstatus_raise@Base 2.3 + mpd_adjexp@Base 2.3 + mpd_alloc@Base 2.3 + mpd_and@Base 2.3 + mpd_arith_sign@Base 2.3 + mpd_as_uint128_triple@Base 2.5.1~rc1 + mpd_basiccontext@Base 2.3 + mpd_calloc@Base 2.3 + mpd_callocfunc@Base 2.3 + mpd_callocfunc_em@Base 2.3 + mpd_canonical@Base 2.3 + mpd_ceil@Base 2.3 + mpd_check_nan@Base 2.3 + mpd_check_nans@Base 2.3 + mpd_clamp_string@Base 2.3 + mpd_class@Base 2.3 + mpd_clear_flags@Base 2.3 + mpd_cmp@Base 2.3 + mpd_cmp_total@Base 2.3 + mpd_cmp_total_mag@Base 2.3 + mpd_compare@Base 2.3 + mpd_compare_signal@Base 2.3 + mpd_compare_total@Base 2.3 + mpd_compare_total_mag@Base 2.3 + mpd_copy@Base 2.3 + mpd_copy_abs@Base 2.3 + mpd_copy_flags@Base 2.3 + mpd_copy_negate@Base 2.3 + mpd_copy_sign@Base 2.3 + mpd_defaultcontext@Base 2.3 + mpd_del@Base 2.3 + mpd_dflt_traphandler@Base 2.3 + mpd_digits_to_size@Base 2.3 + mpd_div@Base 2.3 + mpd_div_i32@Base 2.3 + mpd_div_i64@Base 2.3 + mpd_div_ssize@Base 2.3 + mpd_div_u32@Base 2.3 + mpd_div_u64@Base 2.3 + mpd_div_uint@Base 2.3 + mpd_divint@Base 2.3 + mpd_divmod@Base 2.3 + mpd_etiny@Base 2.3 + mpd_etop@Base 2.3 + mpd_exp@Base 2.3 + mpd_exp_digits@Base 2.3 + mpd_export_u16@Base 2.3 + mpd_export_u32@Base 2.3 + mpd_finalize@Base 2.3 + mpd_floor@Base 2.3 + mpd_fma@Base 2.3 + mpd_format@Base 2.3 + mpd_fprint@Base 2.3 + mpd_free@Base 2.3 + mpd_from_uint128_triple@Base 2.5.1~rc1 + mpd_get_i32@Base 2.3 + mpd_get_i64@Base 2.3 + mpd_get_ssize@Base 2.3 + mpd_get_u32@Base 2.3 + mpd_get_u64@Base 2.3 + mpd_get_uint@Base 2.3 + mpd_getclamp@Base 2.3 + mpd_getcr@Base 2.3 + mpd_getemax@Base 2.3 + mpd_getemin@Base 2.3 + mpd_getprec@Base 2.3 + mpd_getround@Base 2.3 + mpd_getstatus@Base 2.3 + mpd_gettraps@Base 2.3 + mpd_ieee_context@Base 2.3 + mpd_import_u16@Base 2.3 + mpd_import_u32@Base 2.3 + mpd_init@Base 2.3 + mpd_invert@Base 2.3 + mpd_invroot@Base 2.3 + mpd_iscanonical@Base 2.3 + mpd_isconst_data@Base 2.3 + mpd_isdynamic@Base 2.3 + mpd_isdynamic_data@Base 2.3 + mpd_iseven@Base 2.3 + mpd_isfinite@Base 2.3 + mpd_isinfinite@Base 2.3 + mpd_isinteger@Base 2.3 + mpd_isnan@Base 2.3 + mpd_isnegative@Base 2.3 + mpd_isnormal@Base 2.3 + mpd_isodd@Base 2.3 + mpd_isoddcoeff@Base 2.3 + mpd_isoddword@Base 2.3 + mpd_ispositive@Base 2.3 + mpd_isqnan@Base 2.3 + mpd_isshared_data@Base 2.3 + mpd_issigned@Base 2.3 + mpd_issnan@Base 2.3 + mpd_isspecial@Base 2.3 + mpd_isstatic@Base 2.3 + mpd_isstatic_data@Base 2.3 + mpd_issubnormal@Base 2.3 + mpd_iszero@Base 2.3 + mpd_iszerocoeff@Base 2.3 + mpd_ln@Base 2.3 + mpd_log10@Base 2.3 + mpd_logb@Base 2.3 + mpd_lsd@Base 2.3 + mpd_lsnprint_flags@Base 2.3 + mpd_lsnprint_signals@Base 2.3 + mpd_mallocfunc@Base 2.3 + mpd_max@Base 2.3 + mpd_max_mag@Base 2.3 + mpd_maxcoeff@Base 2.3 + mpd_maxcontext@Base 2.3 + mpd_min@Base 2.3 + mpd_min_mag@Base 2.3 + mpd_minalloc@Base 2.3 + mpd_minus@Base 2.3 + mpd_msd@Base 2.3 + mpd_msword@Base 2.3 + mpd_mul@Base 2.3 + mpd_mul_i32@Base 2.3 + mpd_mul_i64@Base 2.3 + mpd_mul_ssize@Base 2.3 + mpd_mul_u32@Base 2.3 + mpd_mul_u64@Base 2.3 + mpd_mul_uint@Base 2.3 + mpd_new@Base 2.3 + mpd_next_minus@Base 2.3 + mpd_next_plus@Base 2.3 + mpd_next_toward@Base 2.3 + mpd_or@Base 2.3 + mpd_parse_fmt_str@Base 2.3 + mpd_plus@Base 2.3 + mpd_pow@Base 2.3 + mpd_powmod@Base 2.3 + mpd_print@Base 2.3 + mpd_qabs@Base 2.3 + mpd_qabs_uint@Base 2.3 + mpd_qadd@Base 2.3 + mpd_qadd_i32@Base 2.3 + mpd_qadd_i64@Base 2.3 + mpd_qadd_ssize@Base 2.3 + mpd_qadd_u32@Base 2.3 + mpd_qadd_u64@Base 2.3 + mpd_qadd_uint@Base 2.3 + mpd_qand@Base 2.3 + mpd_qceil@Base 2.3 + mpd_qcheck_nan@Base 2.3 + mpd_qcheck_nans@Base 2.3 + mpd_qcmp@Base 2.3 + mpd_qcompare@Base 2.3 + mpd_qcompare_signal@Base 2.3 + mpd_qcopy@Base 2.3 + mpd_qcopy_abs@Base 2.3 + mpd_qcopy_cxx@Base 2.5 + mpd_qcopy_negate@Base 2.3 + mpd_qcopy_sign@Base 2.3 + mpd_qdiv@Base 2.3 + mpd_qdiv_i32@Base 2.3 + mpd_qdiv_i64@Base 2.3 + mpd_qdiv_ssize@Base 2.3 + mpd_qdiv_u32@Base 2.3 + mpd_qdiv_u64@Base 2.3 + mpd_qdiv_uint@Base 2.3 + mpd_qdivint@Base 2.3 + mpd_qdivmod@Base 2.3 + mpd_qexp@Base 2.3 + mpd_qexport_u16@Base 2.3 + mpd_qexport_u32@Base 2.3 + mpd_qfinalize@Base 2.3 + mpd_qfloor@Base 2.3 + mpd_qfma@Base 2.3 + mpd_qformat@Base 2.3 + mpd_qformat_spec@Base 2.3 + mpd_qget_i32@Base 2.3 + mpd_qget_i64@Base 2.3 + mpd_qget_ssize@Base 2.3 + mpd_qget_u32@Base 2.3 + mpd_qget_u64@Base 2.3 + mpd_qget_uint@Base 2.3 + mpd_qimport_u16@Base 2.3 + mpd_qimport_u32@Base 2.3 + mpd_qinvert@Base 2.3 + mpd_qinvroot@Base 2.3 + mpd_qln10@Base 2.4 + mpd_qln@Base 2.3 + mpd_qlog10@Base 2.3 + mpd_qlogb@Base 2.3 + mpd_qmax@Base 2.3 + mpd_qmax_mag@Base 2.3 + mpd_qmaxcoeff@Base 2.3 + mpd_qmin@Base 2.3 + mpd_qmin_mag@Base 2.3 + mpd_qminus@Base 2.3 + mpd_qmul@Base 2.3 + mpd_qmul_i32@Base 2.3 + mpd_qmul_i64@Base 2.3 + mpd_qmul_ssize@Base 2.3 + mpd_qmul_u32@Base 2.3 + mpd_qmul_u64@Base 2.3 + mpd_qmul_uint@Base 2.3 + mpd_qncopy@Base 2.3 + mpd_qnew@Base 2.3 + mpd_qnew_size@Base 2.3 + mpd_qnext_minus@Base 2.3 + mpd_qnext_plus@Base 2.3 + mpd_qnext_toward@Base 2.3 + mpd_qor@Base 2.3 + mpd_qplus@Base 2.3 + mpd_qpow@Base 2.3 + mpd_qpowmod@Base 2.3 + mpd_qquantize@Base 2.3 + mpd_qreduce@Base 2.3 + mpd_qrem@Base 2.3 + mpd_qrem_near@Base 2.3 + mpd_qrescale@Base 2.3 + mpd_qrescale_fmt@Base 2.4 + mpd_qresize@Base 2.3 + mpd_qresize_zero@Base 2.3 + mpd_qrotate@Base 2.3 + mpd_qround_to_int@Base 2.3 + mpd_qround_to_intx@Base 2.3 + mpd_qscaleb@Base 2.3 + mpd_qset_i32@Base 2.3 + mpd_qset_i64@Base 2.3 + mpd_qset_i64_exact@Base 2.5 + mpd_qset_ssize@Base 2.3 + mpd_qset_string@Base 2.3 + mpd_qset_string_exact@Base 2.5 + mpd_qset_u32@Base 2.3 + mpd_qset_u64@Base 2.3 + mpd_qset_u64_exact@Base 2.5 + mpd_qset_uint@Base 2.3 + mpd_qsetclamp@Base 2.3 + mpd_qsetcr@Base 2.3 + mpd_qsetemax@Base 2.3 + mpd_qsetemin@Base 2.3 + mpd_qsetprec@Base 2.3 + mpd_qsetround@Base 2.3 + mpd_qsetstatus@Base 2.3 + mpd_qsettraps@Base 2.3 + mpd_qshift@Base 2.3 + mpd_qshiftl@Base 2.3 + mpd_qshiftn@Base 2.3 + mpd_qshiftr@Base 2.3 + mpd_qshiftr_inplace@Base 2.3 + mpd_qsqrt@Base 2.3 + mpd_qsset_i32@Base 2.3 + (arch-bits=64)mpd_qsset_i64@Base 2.3 + mpd_qsset_ssize@Base 2.3 + mpd_qsset_u32@Base 2.3 + (arch-bits=64)mpd_qsset_u64@Base 2.3 + mpd_qsset_uint@Base 2.3 + mpd_qsub@Base 2.3 + mpd_qsub_i32@Base 2.3 + mpd_qsub_i64@Base 2.3 + mpd_qsub_ssize@Base 2.3 + mpd_qsub_u32@Base 2.3 + mpd_qsub_u64@Base 2.3 + mpd_qsub_uint@Base 2.3 + mpd_qtrunc@Base 2.3 + mpd_quantize@Base 2.3 + mpd_qxor@Base 2.3 + mpd_radix@Base 2.3 + mpd_realloc@Base 2.3 + mpd_reallocfunc@Base 2.3 + mpd_reduce@Base 2.3 + mpd_rem@Base 2.3 + mpd_rem_near@Base 2.3 + mpd_rescale@Base 2.3 + mpd_resize@Base 2.3 + mpd_resize_zero@Base 2.3 + mpd_rotate@Base 2.3 + mpd_round_string@Base 2.3 + mpd_round_to_int@Base 2.3 + mpd_round_to_intx@Base 2.3 + mpd_same_quantum@Base 2.3 + mpd_scaleb@Base 2.3 + mpd_set_const_data@Base 2.3 + mpd_set_dynamic@Base 2.3 + mpd_set_dynamic_data@Base 2.3 + mpd_set_flags@Base 2.3 + mpd_set_i32@Base 2.3 + mpd_set_i64@Base 2.3 + mpd_set_infinity@Base 2.3 + mpd_set_negative@Base 2.3 + mpd_set_positive@Base 2.3 + mpd_set_qnan@Base 2.3 + mpd_set_shared_data@Base 2.3 + mpd_set_sign@Base 2.3 + mpd_set_snan@Base 2.3 + mpd_set_ssize@Base 2.3 + mpd_set_static@Base 2.3 + mpd_set_static_data@Base 2.3 + mpd_set_string@Base 2.3 + mpd_set_u32@Base 2.3 + mpd_set_u64@Base 2.3 + mpd_set_uint@Base 2.3 + mpd_setdigits@Base 2.3 + mpd_seterror@Base 2.3 + mpd_setminalloc@Base 2.3 + mpd_setspecial@Base 2.3 + mpd_sh_alloc@Base 2.3 + mpd_shift@Base 2.3 + mpd_shiftl@Base 2.3 + mpd_shiftn@Base 2.3 + mpd_shiftr@Base 2.3 + mpd_sign@Base 2.3 + mpd_signcpy@Base 2.3 + mpd_sizeinbase@Base 2.3 + mpd_snprint_flags@Base 2.3 + mpd_sqrt@Base 2.3 + mpd_sset_i32@Base 2.3 + (arch-bits=64)mpd_sset_i64@Base 2.3 + mpd_sset_ssize@Base 2.3 + mpd_sset_u32@Base 2.3 + (arch-bits=64)mpd_sset_u64@Base 2.3 + mpd_sset_uint@Base 2.3 + mpd_sub@Base 2.3 + mpd_sub_i32@Base 2.3 + mpd_sub_i64@Base 2.3 + mpd_sub_ssize@Base 2.3 + mpd_sub_u32@Base 2.3 + mpd_sub_u64@Base 2.3 + mpd_sub_uint@Base 2.3 + mpd_to_eng@Base 2.3 + mpd_to_eng_size@Base 2.4 + mpd_to_sci@Base 2.3 + mpd_to_sci_size@Base 2.4 + mpd_trail_zeros@Base 2.3 + mpd_traphandler@Base 2.3 + mpd_trunc@Base 2.3 + mpd_uint_zero@Base 2.3 + mpd_validate_lconv@Base 2.4 + mpd_version@Base 2.4 + mpd_word_digits@Base 2.3 + mpd_xor@Base 2.3 + mpd_zerocoeff@Base 2.3 diff --git a/not-installed b/not-installed new file mode 100644 index 0000000..df28078 --- /dev/null +++ b/not-installed @@ -0,0 +1 @@ +usr/share/doc/mpdecimal/COPYRIGHT.txt diff --git a/patches/0001-Add-patch-to-support-for-GNU-Hurd.patch b/patches/0001-Add-patch-to-support-for-GNU-Hurd.patch new file mode 100644 index 0000000..7ba8f57 --- /dev/null +++ b/patches/0001-Add-patch-to-support-for-GNU-Hurd.patch @@ -0,0 +1,21 @@ +From: Stefan Krah +Date: Sun, 18 May 2025 13:55:04 +0200 +Subject: Add patch to support for GNU Hurd + +--- + libmpdec/mpdecimal.h.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libmpdec/mpdecimal.h.in b/libmpdec/mpdecimal.h.in +index 9e7f84a..3deac48 100644 +--- a/libmpdec/mpdecimal.h.in ++++ b/libmpdec/mpdecimal.h.in +@@ -47,7 +47,7 @@ extern "C" { + #endif + + +-#if (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)) && \ ++#if (defined(__linux__) || defined(__gnu_hurd__) || defined(__FreeBSD__) || defined(__APPLE__)) && \ + defined(__GNUC__) && __GNUC__ >= 4 && !defined(__INTEL_COMPILER) + #define MPD_PRAGMA(x) _Pragma(x) + #define MPD_HIDE_SYMBOLS_START "GCC visibility push(hidden)" diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..145a21d --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +0001-Add-patch-to-support-for-GNU-Hurd.patch diff --git a/rules b/rules new file mode 100755 index 0000000..7b939df --- /dev/null +++ b/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +SHELL = /bin/bash + +# see FEATURE AREAS in dpkg-buildflags(1) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +export LDXXFLAGS=$(LDFLAGS) + +export DPKG_GENSYMBOLS_CHECK_LEVEL=4 + +DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +ifneq ($(DEB_BUILD_MULTIARCH),$(DEB_HOST_MULTIARCH)) + confargs += \ + have_glibc_memmove_bug=no \ + have_ipa_pure_const_bug=no +endif + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) \ + --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ + $(confargs) + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + $(MAKE) -C tests + : # needs download of tests, just run additional.decTest + ln -sf testdata_dist tests/testdata + cd tests && ./runtest ./additional.decTest +endif diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..911d66a --- /dev/null +++ b/tests/control @@ -0,0 +1,13 @@ +Tests: official +Depends: libmpdec-dev, + build-essential, + unzip, + curl +Restrictions: needs-internet, build-needed + +Tests: official++ +Depends: libmpdec++-dev, + build-essential, + unzip, + curl +Restrictions: needs-internet, build-needed diff --git a/tests/official b/tests/official new file mode 100755 index 0000000..c3cee30 --- /dev/null +++ b/tests/official @@ -0,0 +1,12 @@ +#!/bin/sh -e + +rm -rf tests/testdata +mkdir -p tests/testdata +cp tests/testdata_dist/* tests/testdata + +curl -sSL -o /tmp/dectest.zip https://speleotrove.com/decimal/dectest.zip +unzip -qq -d tests/testdata /tmp/dectest.zip + +make -C tests runtest_shared +(cd tests && ./runtest_shared official.decTest) +(cd tests && ./runtest_shared additional.decTest) diff --git a/tests/official++ b/tests/official++ new file mode 100755 index 0000000..b73d287 --- /dev/null +++ b/tests/official++ @@ -0,0 +1,14 @@ +#!/bin/sh -e + +rm -rf tests++/testdata +mkdir -p tests++/testdata +cp tests/testdata_dist/* tests++/testdata + +curl -sSL -o /tmp/dectest.zip https://speleotrove.com/decimal/dectest.zip +unzip -qq -d tests++/testdata /tmp/dectest.zip + +make -C tests++ runtest_shared apitest_shared +(cd tests++ && ./runtest_shared official.topTest --thread) +(cd tests++ && ./runtest_shared additional.topTest --thread) +(cd tests++ && ./apitest_shared) +(cd tests++ && ./apitest_shared --thread) diff --git a/watch b/watch new file mode 100644 index 0000000..41fe7e3 --- /dev/null +++ b/watch @@ -0,0 +1,2 @@ +version=3 +http://www.bytereef.org/mpdecimal/download.html .*/mpdecimal-(\d.*)\.tar\.gz -- 2.30.2