From 1adcb36c233e0350699248cd5f2daa86ababff523201d48c57e493252fad767c Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Mon, 21 Jun 2021 14:55:27 +0000 Subject: [PATCH 1/2] Accepting request 901190 from home:alois:branches:devel:libraries:c_c++ - Update to version 8.0.0 * Enabled compile-time format string check by default. * Added compile-time formatting. * Optimized handling of format specifiers during format string compilation. * Added the ``_cf`` user-defined literal to represent a compiled format string. It can be used instead of the ``FMT_COMPILE`` macro. * Format string compilation now requires ``format`` functions of ``formatter`` specializations for user-defined types to be ``const``. * Added UDL-based named argument support to format string compilation. * Added format string compilation support to ``fmt::print``. * Added initial support for compiling {fmt} as a C++20 module. * Made symbols private by default reducing shared library size * Optimized includes making the result of preprocessing ``fmt/format.h``. * Added support of ranges with non-const ``begin`` / ``end`` * Added support of ``std::byte`` and other formattable types to ``fmt::join``. * Implemented the default format for ``std::chrono::system_clock``. * Made more chrono specifiers locale independent by default. Use the ``'L'`` specifier to get localized formatting. * Improved locale handling in chrono formatting. * Deprecated ``fmt/locale.h`` moving the formatting functions that take a locale to ``fmt/format.h`` (``char``) and ``fmt/xchar`` (other overloads). This doesn't introduce a dependency on ```` so there is virtually no compile time effect. * Made parameter order in ``vformat_to`` consistent with ``format_to``. * Added support for time points with arbitrary durations. * Formatting floating-point numbers no longer produces trailing zeros by default. for consistency with ``std::format``. * Dropped a limit on the number of elements in a range and replaced ``{}`` with ``[]`` as range delimiters for consistency with Python's ``str.format``. * The ``'L'`` specifier for locale-specific numeric formatting can now be combined with presentation specifiers as in ``std::format``. * Made the ``0`` specifier ignored for infinity and NaN. * Made the hexfloat formatting use the right alignment by default. * Removed the deprecated numeric alignment (``'='``). Use the ``'0'`` specifier instead. * Removed the deprecated ``fmt/posix.h`` header that has been replaced with ``fmt/os.h``. * Removed the deprecated ``format_to_n_context``, ``format_to_n_args`` and ``make_format_to_n_args``. They have been replaced with ``format_context``, ``format_args` and ``make_format_args`` respectively. * Moved ``wchar_t``-specific functions and types to ``fmt/wchar.h``. You can define ``FMT_DEPRECATED_INCLUDE_WCHAR`` to automatically include ``fmt/wchar.h`` from ``fmt/format.h`` but this will be disabled in the next major release. * Fixed handling of the ``'+'`` specifier in localized formatting. * Added support for the ``'s'`` format specifier that gives textual representation of ``bool``. * Made ``fmt::ptr`` work with function pointers. * Fixed ``fmt::formatted_size`` with format string compilation * Fixed handling of empty format strings during format string compilation. * Fixed handling of enums in ``fmt::to_string``. * Improved width computation. * The experimental fast output stream (``fmt::ostream``) is now truncated by default for consistency with ``fopen``. * Fixed moving of ``fmt::ostream`` that holds buffered data * Replaced the ``fmt::system_error`` exception with a function of the same name that constructs ``std::system_error``. * Replaced the ``fmt::windows_error`` exception with a function of the same name that constructs ``std::system_error`` with the category returned by ``fmt::system_category()``. * Replaced ``fmt::error_code`` with ``std::error_code`` and made it formattable. * Added speech synthesis support. * Made ``format_to`` work with a memory buffer that has a custom allocator. * Added ``Allocator::max_size`` support to ``basic_memory_buffer``. * Added wide string support to ``fmt::join`` * Made iterators passed to ``formatter`` specializations via a format context satisfy C++20 ``std::output_iterator`` requirements. * Optimized the ``printf`` implementation. * Improved detection of ``constexpr`` ``char_traits``. * Fixed exception propagation from iterators. * Improved ``strftime`` error handling. * Stopped using deprecated GCC UDL template extension. * Added ``fmt/args.h`` to the install target. * Error messages are now passed to assert when exceptions are disabled. * Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install targets when {fmt} is included via ``add_subdirectory``. * Improved build configuration. * Fixed various warnings and compilation issues. * Improved documentation. * Continuous integration and test improvements. - Bump soversion to 8 OBS-URL: https://build.opensuse.org/request/show/901190 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=40 --- baselibs.conf | 2 +- fmt-7.1.3.tar.gz | 3 -- fmt-8.0.0.tar.gz | 3 ++ fmt.changes | 109 +++++++++++++++++++++++++++++++++++++++++++++++ fmt.spec | 6 +-- 5 files changed, 116 insertions(+), 7 deletions(-) delete mode 100644 fmt-7.1.3.tar.gz create mode 100644 fmt-8.0.0.tar.gz diff --git a/baselibs.conf b/baselibs.conf index b9ca48f..c533e55 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libfmt7 +libfmt8 diff --git a/fmt-7.1.3.tar.gz b/fmt-7.1.3.tar.gz deleted file mode 100644 index b6dcd4c..0000000 --- a/fmt-7.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cae7072042b3043e12d53d50ef404bbb76949dad1de368d7f993a15c8c05ecc -size 770029 diff --git a/fmt-8.0.0.tar.gz b/fmt-8.0.0.tar.gz new file mode 100644 index 0000000..202b33f --- /dev/null +++ b/fmt-8.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bce0e9e022e586b178b150002e7c2339994e3c2bbe44027e9abb0d60f9cce83 +size 804902 diff --git a/fmt.changes b/fmt.changes index 37d94bc..ffb3b22 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,112 @@ +------------------------------------------------------------------- +Mon Jun 21 14:48:42 UTC 2021 - Luigi Baldoni + +- Update to version 8.0.0 + * Enabled compile-time format string check by default. + * Added compile-time formatting. + * Optimized handling of format specifiers during format string + compilation. + * Added the ``_cf`` user-defined literal to represent a + compiled format string. It can be used instead of the + ``FMT_COMPILE`` macro. + * Format string compilation now requires ``format`` functions + of ``formatter`` specializations for user-defined types to + be ``const``. + * Added UDL-based named argument support to format string + compilation. + * Added format string compilation support to ``fmt::print``. + * Added initial support for compiling {fmt} as a C++20 module. + * Made symbols private by default reducing shared library size + * Optimized includes making the result of preprocessing + ``fmt/format.h``. + * Added support of ranges with non-const ``begin`` / ``end`` + * Added support of ``std::byte`` and other formattable types + to ``fmt::join``. + * Implemented the default format for + ``std::chrono::system_clock``. + * Made more chrono specifiers locale independent by default. + Use the ``'L'`` specifier to get localized formatting. + * Improved locale handling in chrono formatting. + * Deprecated ``fmt/locale.h`` moving the formatting functions + that take a locale to ``fmt/format.h`` (``char``) and + ``fmt/xchar`` (other overloads). This doesn't introduce a + dependency on ```` so there is virtually no compile + time effect. + * Made parameter order in ``vformat_to`` consistent with + ``format_to``. + * Added support for time points with arbitrary durations. + * Formatting floating-point numbers no longer produces + trailing zeros by default. + for consistency with ``std::format``. + * Dropped a limit on the number of elements in a range and + replaced ``{}`` with ``[]`` as range delimiters for + consistency with Python's ``str.format``. + * The ``'L'`` specifier for locale-specific numeric formatting + can now be combined with presentation specifiers as in + ``std::format``. + * Made the ``0`` specifier ignored for infinity and NaN. + * Made the hexfloat formatting use the right alignment by + default. + * Removed the deprecated numeric alignment (``'='``). Use the + ``'0'`` specifier instead. + * Removed the deprecated ``fmt/posix.h`` header that has been + replaced with ``fmt/os.h``. + * Removed the deprecated ``format_to_n_context``, + ``format_to_n_args`` and ``make_format_to_n_args``. They + have been replaced with ``format_context``, ``format_args` + and ``make_format_args`` respectively. + * Moved ``wchar_t``-specific functions and types to + ``fmt/wchar.h``. You can define + ``FMT_DEPRECATED_INCLUDE_WCHAR`` to automatically include + ``fmt/wchar.h`` from ``fmt/format.h`` but this will be + disabled in the next major release. + * Fixed handling of the ``'+'`` specifier in localized + formatting. + * Added support for the ``'s'`` format specifier that gives + textual representation of ``bool``. + * Made ``fmt::ptr`` work with function pointers. + * Fixed ``fmt::formatted_size`` with format string compilation + * Fixed handling of empty format strings during format string + compilation. + * Fixed handling of enums in ``fmt::to_string``. + * Improved width computation. + * The experimental fast output stream (``fmt::ostream``) is + now truncated by default for consistency with ``fopen``. + * Fixed moving of ``fmt::ostream`` that holds buffered data + * Replaced the ``fmt::system_error`` exception with a function + of the same name that constructs ``std::system_error``. + * Replaced the ``fmt::windows_error`` exception with a + function of the same name that constructs + ``std::system_error`` with the category returned by + ``fmt::system_category()``. + * Replaced ``fmt::error_code`` with ``std::error_code`` and + made it formattable. + * Added speech synthesis support. + * Made ``format_to`` work with a memory buffer that has a + custom allocator. + * Added ``Allocator::max_size`` support to + ``basic_memory_buffer``. + * Added wide string support to ``fmt::join`` + * Made iterators passed to ``formatter`` specializations via a + format context satisfy C++20 ``std::output_iterator`` + requirements. + * Optimized the ``printf`` implementation. + * Improved detection of ``constexpr`` ``char_traits``. + * Fixed exception propagation from iterators. + * Improved ``strftime`` error handling. + * Stopped using deprecated GCC UDL template extension. + * Added ``fmt/args.h`` to the install target. + * Error messages are now passed to assert when exceptions are + disabled. + * Added the ``FMT_MASTER_PROJECT`` CMake option to control + build and install targets when {fmt} is included via + ``add_subdirectory``. + * Improved build configuration. + * Fixed various warnings and compilation issues. + * Improved documentation. + * Continuous integration and test improvements. +- Bump soversion to 8 + ------------------------------------------------------------------- Wed Nov 25 14:55:58 UTC 2020 - aloisio@gmx.com diff --git a/fmt.spec b/fmt.spec index 4ff4e15..21b8d09 100644 --- a/fmt.spec +++ b/fmt.spec @@ -1,7 +1,7 @@ # # spec file for package fmt # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,9 @@ # -%define sover 7 +%define sover 8 Name: fmt -Version: 7.1.3 +Version: 8.0.0 Release: 0 Summary: A formatting library for C++ License: MIT From b5d0698153fa97946c0cd154708455d559effe457cb548bf57e3da0ce9be85d8 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sat, 3 Jul 2021 05:33:39 +0000 Subject: [PATCH 2/2] Accepting request 903801 from home:alois:branches:devel:libraries:c_c++ - Update to version 8.0.1 * Fixed the version number in the inline namespace. * Added a missing presentation type check for std::string. * Fixed a linkage error when mixing code built with clang and gcc. * Fixed documentation issues. * Removed dead code in FP formatter. * Fixed various warnings and compilation issues. OBS-URL: https://build.opensuse.org/request/show/903801 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=41 --- fmt-8.0.0.tar.gz | 3 --- fmt-8.0.1.tar.gz | 3 +++ fmt.changes | 12 ++++++++++++ fmt.spec | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) delete mode 100644 fmt-8.0.0.tar.gz create mode 100644 fmt-8.0.1.tar.gz diff --git a/fmt-8.0.0.tar.gz b/fmt-8.0.0.tar.gz deleted file mode 100644 index 202b33f..0000000 --- a/fmt-8.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7bce0e9e022e586b178b150002e7c2339994e3c2bbe44027e9abb0d60f9cce83 -size 804902 diff --git a/fmt-8.0.1.tar.gz b/fmt-8.0.1.tar.gz new file mode 100644 index 0000000..733cba6 --- /dev/null +++ b/fmt-8.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01 +size 805616 diff --git a/fmt.changes b/fmt.changes index ffb3b22..4034021 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Jul 3 05:28:37 UTC 2021 - Luigi Baldoni + +- Update to version 8.0.1 + * Fixed the version number in the inline namespace. + * Added a missing presentation type check for std::string. + * Fixed a linkage error when mixing code built with clang and + gcc. + * Fixed documentation issues. + * Removed dead code in FP formatter. + * Fixed various warnings and compilation issues. + ------------------------------------------------------------------- Mon Jun 21 14:48:42 UTC 2021 - Luigi Baldoni diff --git a/fmt.spec b/fmt.spec index 21b8d09..5b1a80b 100644 --- a/fmt.spec +++ b/fmt.spec @@ -18,7 +18,7 @@ %define sover 8 Name: fmt -Version: 8.0.0 +Version: 8.0.1 Release: 0 Summary: A formatting library for C++ License: MIT