Accepting request 1109008 from devel:libraries:c_c++
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1109008 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=22
This commit is contained in:
BIN
10.1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
10.1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
9.1.0.tar.gz
(Stored with Git LFS)
BIN
9.1.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
@@ -1 +1 @@
|
|||||||
libfmt9
|
libfmt10
|
||||||
|
38
fmt.changes
38
fmt.changes
@@ -1,3 +1,41 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 29 08:18:11 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release 10.1.1
|
||||||
|
* Added formatters for std::atomic and atomic_flag.
|
||||||
|
* Fixed an error about partial specialization of
|
||||||
|
formatter<string> 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 <jengelh@inai.de>
|
||||||
|
|
||||||
|
- 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 <jengelh@inai.de>
|
||||||
|
|
||||||
|
- 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 <mliska@suse.cz>
|
Fri Mar 10 08:14:22 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
35
fmt.spec
35
fmt.spec
@@ -16,9 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define sover 9
|
%define sover 10
|
||||||
Name: fmt
|
Name: fmt
|
||||||
Version: 9.1.0
|
Version: 10.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A formatting library for C++
|
Summary: A formatting library for C++
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -31,17 +31,17 @@ BuildRequires: pkg-config
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
Fmt is a formatting library for C++. It can be used as an
|
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++
|
Summary: A formatting library for C++
|
||||||
|
|
||||||
%description -n libfmt%{sover}
|
%description -n libfmt%sover
|
||||||
Shared library for fmt, a formatting library for C++.
|
Shared library for fmt, a formatting library for C++.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for fmt, a formatting library
|
Summary: Development files for fmt, a formatting library
|
||||||
Requires: libfmt%{sover} = %{version}
|
Requires: libfmt%sover = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files for fmt, a formatting library for C++.
|
Development files for fmt, a formatting library for C++.
|
||||||
@@ -51,8 +51,9 @@ Development files for fmt, a formatting library for C++.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# X87 fix for excessive precision: https://github.com/fmtlib/fmt/issues/3337
|
# X87 fix for excessive precision: https://github.com/fmtlib/fmt/issues/3337
|
||||||
%global optflags %optflags -ffloat-store
|
export CFLAGS="%optflags -ffloat-store"
|
||||||
%cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir}
|
export CXXFLAGS="$CFLAGS"
|
||||||
|
%cmake -DCMAKE_INSTALL_INCLUDEDIR:PATH="%_includedir"
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -60,21 +61,21 @@ Development files for fmt, a formatting library for C++.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# path needs to be exported otherwise unit tests will fail
|
# 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
|
%ctest
|
||||||
|
|
||||||
%post -n libfmt%{sover} -p /sbin/ldconfig
|
%post -n libfmt%sover -p /sbin/ldconfig
|
||||||
%postun -n libfmt%{sover} -p /sbin/ldconfig
|
%postun -n libfmt%sover -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libfmt%{sover}
|
%files -n libfmt%sover
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{_libdir}/libfmt.so.%{sover}*
|
%_libdir/libfmt.so.%{sover}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc ChangeLog.rst README.rst
|
%doc ChangeLog.rst README.rst
|
||||||
%{_includedir}/%{name}
|
%_includedir/%name
|
||||||
%{_libdir}/cmake/%{name}
|
%_libdir/cmake/%name
|
||||||
%{_libdir}/libfmt.so
|
%_libdir/libfmt.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%_libdir/pkgconfig/%name.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user