From ead26e43587ca2853daa346a953e652c078b91aeaa4d7cf01e3646cf061d000d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 11 May 2023 18:46:42 +0000 Subject: [PATCH 1/3] - Update to release 10 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=52 --- 10.0.0.tar.gz | 3 +++ 9.1.0.tar.gz | 3 --- baselibs.conf | 2 +- fmt.changes | 18 ++++++++++++++++++ fmt.spec | 35 ++++++++++++++++++----------------- 5 files changed, 40 insertions(+), 21 deletions(-) create mode 100644 10.0.0.tar.gz delete mode 100644 9.1.0.tar.gz diff --git a/10.0.0.tar.gz b/10.0.0.tar.gz new file mode 100644 index 0000000..d5aed65 --- /dev/null +++ b/10.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ede1b6b42188163a3f2e0f25ad5c0637eca564bd8df74d02e31a311dd6b37ad8 +size 851582 diff --git a/9.1.0.tar.gz b/9.1.0.tar.gz deleted file mode 100644 index 3f652c1..0000000 --- a/9.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5dea48d1fcddc3ec571ce2058e13910a0d4a6bab4cc09a809d8b1dd1c88ae6f2 -size 837901 diff --git a/baselibs.conf b/baselibs.conf index 9e3eeee..2bc8dea 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libfmt9 +libfmt10 diff --git a/fmt.changes b/fmt.changes index b77b18d..5a81d52 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Thu May 11 18:11:28 UTC 2023 - Jan Engelhardt + +- Update to release 10 + * New floating-point formatting algorithm for given precision. + The new algorithm is based on Dragonbox. + * Replaced snprintf-based hex float formatter with an internal + implementation. + * Made format_as work with any user-defined type and not just + enums. + * Removed deprecated implicit conversions for enums and + conversions to primitive types for compatibility with + std::format and to prevent potential ODR violations. Use + format_as instead. + * Implemented formatting of subseconds. + * Added formatters for std::priority_queue, std::queue, + std::stack, std;:optional. + ------------------------------------------------------------------- Fri Mar 10 08:14:22 UTC 2023 - Martin Liška diff --git a/fmt.spec b/fmt.spec index d92426e..6792a43 100644 --- a/fmt.spec +++ b/fmt.spec @@ -16,9 +16,9 @@ # -%define sover 9 +%define sover 10 Name: fmt -Version: 9.1.0 +Version: 10.0.0 Release: 0 Summary: A formatting library for C++ License: MIT @@ -31,17 +31,17 @@ BuildRequires: pkg-config %description Fmt is a formatting library for C++. It can be used as an -alternative to (s)printf and IOStreams. +alternative to (s)printf and iostreams. -%package -n libfmt%{sover} +%package -n libfmt%sover Summary: A formatting library for C++ -%description -n libfmt%{sover} +%description -n libfmt%sover Shared library for fmt, a formatting library for C++. %package devel Summary: Development files for fmt, a formatting library -Requires: libfmt%{sover} = %{version} +Requires: libfmt%sover = %version %description devel Development files for fmt, a formatting library for C++. @@ -51,8 +51,9 @@ Development files for fmt, a formatting library for C++. %build # X87 fix for excessive precision: https://github.com/fmtlib/fmt/issues/3337 -%global optflags %optflags -ffloat-store -%cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} +export CFLAGS="%optflags -ffloat-store" +export CXXFLAGS="$CFLAGS" +%cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH="%_includedir" %cmake_build %install @@ -60,21 +61,21 @@ Development files for fmt, a formatting library for C++. %check # path needs to be exported otherwise unit tests will fail -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%buildroot/%_libdir" %ctest -%post -n libfmt%{sover} -p /sbin/ldconfig -%postun -n libfmt%{sover} -p /sbin/ldconfig +%post -n libfmt%sover -p /sbin/ldconfig +%postun -n libfmt%sover -p /sbin/ldconfig -%files -n libfmt%{sover} +%files -n libfmt%sover %license LICENSE.rst -%{_libdir}/libfmt.so.%{sover}* +%_libdir/libfmt.so.%{sover}* %files devel %doc ChangeLog.rst README.rst -%{_includedir}/%{name} -%{_libdir}/cmake/%{name} -%{_libdir}/libfmt.so -%{_libdir}/pkgconfig/%{name}.pc +%_includedir/%name +%_libdir/cmake/%name +%_libdir/libfmt.so +%_libdir/pkgconfig/%name.pc %changelog From e65108bc69eafe12e80f36d919807d4dbbae90df5f41b2b7c10af648e4035196 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 12 Aug 2023 22:51:20 +0000 Subject: [PATCH 2/3] - Update to release 10.1 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=53 --- 10.0.0.tar.gz | 3 --- 10.1.0.tar.gz | 3 +++ fmt.changes | 8 ++++++++ fmt.spec | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 10.0.0.tar.gz create mode 100644 10.1.0.tar.gz diff --git a/10.0.0.tar.gz b/10.0.0.tar.gz deleted file mode 100644 index d5aed65..0000000 --- a/10.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ede1b6b42188163a3f2e0f25ad5c0637eca564bd8df74d02e31a311dd6b37ad8 -size 851582 diff --git a/10.1.0.tar.gz b/10.1.0.tar.gz new file mode 100644 index 0000000..064b382 --- /dev/null +++ b/10.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:deb0a3ad2f5126658f2eefac7bf56a042488292de3d7a313526d667f3240ca0a +size 849294 diff --git a/fmt.changes b/fmt.changes index 5a81d52..b05d877 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Aug 12 22:50:35 UTC 2023 - Jan Engelhardt + +- Update to release 10.1 + * Optimized format string compilation resulting in up to 40% + speed up in compiled format_to and ~4x speed up in compiled + format_to_n on a concatenation benchmark. + ------------------------------------------------------------------- Thu May 11 18:11:28 UTC 2023 - Jan Engelhardt diff --git a/fmt.spec b/fmt.spec index 6792a43..c5e3350 100644 --- a/fmt.spec +++ b/fmt.spec @@ -18,7 +18,7 @@ %define sover 10 Name: fmt -Version: 10.0.0 +Version: 10.1.0 Release: 0 Summary: A formatting library for C++ License: MIT From 69ab05a0fd885990c919e69c5d2ca8fd1279c2d8597d00552783e25bf944064e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 29 Aug 2023 08:19:09 +0000 Subject: [PATCH 3/3] - Update to release 10.1.1 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=54 --- 10.1.0.tar.gz | 3 --- 10.1.1.tar.gz | 3 +++ fmt.changes | 12 ++++++++++++ fmt.spec | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) delete mode 100644 10.1.0.tar.gz create mode 100644 10.1.1.tar.gz diff --git a/10.1.0.tar.gz b/10.1.0.tar.gz deleted file mode 100644 index 064b382..0000000 --- a/10.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:deb0a3ad2f5126658f2eefac7bf56a042488292de3d7a313526d667f3240ca0a -size 849294 diff --git a/10.1.1.tar.gz b/10.1.1.tar.gz new file mode 100644 index 0000000..743d637 --- /dev/null +++ b/10.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78b8c0a72b1c35e4443a7e308df52498252d1cefc2b08c9a97bc9ee6cfe61f8b +size 851454 diff --git a/fmt.changes b/fmt.changes index b05d877..5e8dc0e 100644 --- a/fmt.changes +++ b/fmt.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Aug 29 08:18:11 UTC 2023 - Jan Engelhardt + +- Update to release 10.1.1 + * Added formatters for std::atomic and atomic_flag. + * Fixed an error about partial specialization of + formatter after instantiation (GCC, C++20 mode). + * Made fmt::to_string work with types that have format_as + overloads. + * Made formatted_size work with integral format specifiers at + compile time. + ------------------------------------------------------------------- Sat Aug 12 22:50:35 UTC 2023 - Jan Engelhardt diff --git a/fmt.spec b/fmt.spec index c5e3350..234c1e2 100644 --- a/fmt.spec +++ b/fmt.spec @@ -18,7 +18,7 @@ %define sover 10 Name: fmt -Version: 10.1.0 +Version: 10.1.1 Release: 0 Summary: A formatting library for C++ License: MIT