Compare commits

...

46 Commits
f28 ... rawhide

Author SHA1 Message Date
Vitaly Zaitsev 67462ed455
Added upstream patches. 2023-07-23 10:22:29 +02:00
Fedora Release Engineering bd9166f327 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 02:14:15 +00:00
Vitaly Zaitsev f04a777c6e
Adjusted minimal fmt version to 9.1.0 as required by upstream. 2023-07-08 20:00:37 +02:00
Vitaly Zaitsev 7e26e0d04c
Updated to version 1.12.0. 2023-07-08 19:57:23 +02:00
Vitaly Zaitsev 7525731b50
Added fixes for the tests. 2023-06-28 09:54:31 +02:00
Vitaly Zaitsev 27d6aa363b
Rebuilt due to fmt library update. 2023-06-28 08:14:31 +02:00
Vitaly Zaitsev ee7fee3e1a
Explicitly remove old bundled catchv2. 2023-03-01 14:40:59 +01:00
Vitaly Zaitsev 36b9abed09
Ported to catch v3. Fixed FTBFS in ELN. 2023-03-01 14:38:26 +01:00
Vitaly Zaitsev a9c749ba6d
Fixed FTBFS in EPEL/ELN due to catch v3 update. 2023-02-28 12:07:35 +01:00
Vitaly Zaitsev f3047916d4
Fixed FTBFS due to catch v3 update. 2023-02-28 11:45:59 +01:00
Fedora Release Engineering 6493c6dbdc Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 03:47:25 +00:00
Vitaly Zaitsev 992fcd2562
Converted license tag to SPDX format. 2022-12-13 16:55:25 +01:00
Vitaly Zaitsev 2ff25311a5
Updated to version 1.11.0. 2022-11-03 08:37:21 +01:00
Fedora Release Engineering 9f2e9fb652 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 09:09:06 +00:00
Vitaly Zaitsev be8cd7fe94
Rebuilt due to fmt library update. 2022-07-10 19:44:42 +02:00
Vitaly Zaitsev 24618e20bd
Removed obsolete __cmake_in_source_build definition. 2022-05-23 13:13:37 +02:00
Vitaly Zaitsev d57fd2a40a
Set minimal version of fmt to 8.1.1. 2022-04-18 16:58:47 +02:00
Vitaly Zaitsev 5d91739f72
Updated to version 1.10.0. 2022-04-18 16:57:49 +02:00
Fedora Release Engineering 35e9e2432e - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 01:24:18 +00:00
Vitaly Zaitsev 83dd849719
Rebuilt due to google-benchmark 1.6.0 update. 2021-09-15 15:22:08 +02:00
Vitaly Zaitsev 800161182e
Updated to version 1.9.2. 2021-08-13 17:35:56 +02:00
Vitaly Zaitsev e2f65330c7
Updated to version 1.9.1. 2021-07-27 15:11:14 +02:00
Fedora Release Engineering 97b0c209a9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 18:02:17 +00:00
Vitaly Zaitsev 9672664a68
Updated to version 1.9.0. 2021-07-21 14:15:47 +02:00
Vitaly Zaitsev 0548d7d953
Backported more upstream patches. 2021-07-05 13:46:34 +02:00
Vitaly Zaitsev b110b2a3cd
Backported patch with fmt 8.x build fixes. 2021-07-04 17:03:10 +02:00
Vitaly Zaitsev b5e6c6db6e
Rebuilt due to fmt library update. 2021-07-04 16:45:37 +02:00
Vitaly Zaitsev 72db46db6d
Use packaged version of catch for the tests. 2021-04-02 14:32:44 +02:00
Vitaly Zaitsev cd1732582b
Updated to version 1.8.5. 2021-04-02 13:46:04 +02:00
Fedora Release Engineering fd87698173 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 20:49:33 +00:00
Vitaly Zaitsev daa8b18b9e
Updated to version 1.8.2. 2020-12-12 14:26:11 +01:00
Vitaly Zaitsev f6e62b6e80
Updated to version 1.8.1. 2020-10-13 15:01:54 +02:00
Vitaly Zaitsev c2c717f63e
Updated to version 1.8.0. 2020-09-05 13:09:19 +02:00
Vitaly Zaitsev 17e81392b9
Updated to version 1.7.0. 2020-07-21 10:32:56 +02:00
Vitaly Zaitsev 219df52d9c
Updated to version 1.6.1. 2020-06-02 15:39:03 +02:00
Fedora Release Engineering 4bbd747660 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 23:59:49 +00:00
Vitaly Zaitsev e84ca53e4e
Updated to version 1.5.0. 2020-01-27 20:34:01 +01:00
Vitaly Zaitsev 701d2f03e7
Fixed linkage against external fmtlib. 2019-12-18 16:08:14 +01:00
Vitaly Zaitsev 0947214aad
Updated URLs. 2019-12-18 15:55:07 +01:00
Vitaly Zaitsev a1a7653aa6
Fixed build due to recent changes. 2019-12-18 15:50:21 +01:00
Vitaly Zaitsev 97df4e0a08
Updated to version 1.4.2. 2019-12-18 14:51:07 +01:00
Fedora Release Engineering 1cbe63afb9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 23:50:21 +00:00
Fedora Release Engineering e1b769c5a5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 08:15:43 +00:00
Vitaly Zaitsev 2d367264e1
Uploaded new sources. 2019-01-20 11:00:45 +01:00
Vitaly Zaitsev 53ff9f0953
Unbundled fmt library. Added tests support. 2019-01-20 10:59:16 +01:00
Vitaly Zaitsev 561e1d232f
Updated to version 1.3.1. 2019-01-20 10:40:42 +01:00
5 changed files with 186 additions and 39 deletions

9
.gitignore vendored
View File

@ -1,8 +1 @@
/gabime-spdlog-211ce99.tar.gz
/gabime-spdlog-cbc8ba7.tar.gz
/gabime-spdlog-34bb86b.tar.gz
/v0.10.0.tar.gz
/v0.17.0.tar.gz
/v1.0.0.tar.gz
/v1.1.0.tar.gz
/v1.2.1.tar.gz
/spdlog-*.tar.gz

View File

@ -1 +1 @@
SHA512 (v1.2.1.tar.gz) = 418f91efc207fa227558212d82c41639c0bb59e84ea47447e0b6276c4842e97f1f8aaf5802c071ef15d80ec525e317e70b6a39661a6c96ab39d33d9bd1570da1
SHA512 (spdlog-1.12.0.tar.gz) = db9a4f13b6c39ffde759db99bcdfe5e2dbe4231e73b29eb906a3fa78d6b8ec66920b8bd4371df17ae21b7b562472a236bc4435678f3af92b6496be090074181d

View File

@ -0,0 +1,22 @@
From d8d23a660601a406a1e1aa07380b5b1c5781c190 Mon Sep 17 00:00:00 2001
From: Gabi Melman <gmelman1@gmail.com>
Date: Fri, 21 Jul 2023 00:37:03 +0300
Subject: [PATCH] Fix #2820
---
include/spdlog/details/circular_q.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h
index e4fd5fd4a..d40e14189 100644
--- a/include/spdlog/details/circular_q.h
+++ b/include/spdlog/details/circular_q.h
@@ -82,7 +82,7 @@ class circular_q
}
else
{
- return max_items_ - (head_ - tail_);
+ return max_items_ - 1 - (head_ - tail_);
}
}

View File

@ -0,0 +1,23 @@
From 2ee8bac78e6525a8ad9a9196e65d502ce390d83a Mon Sep 17 00:00:00 2001
From: xvitaly <vitaly@easycoding.org>
Date: Sun, 23 Jul 2023 10:15:25 +0200
Subject: [PATCH] Added missing square bracket to fix the level_to_string_view
test. (#2827)
---
tests/test_misc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp
index 9f3cb1744..6199641ff 100644
--- a/tests/test_misc.cpp
+++ b/tests/test_misc.cpp
@@ -43,7 +43,7 @@ TEST_CASE("log_levels", "[log_levels]")
REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello");
}
-TEST_CASE("level_to_string_view", "[convert_to_string_view")
+TEST_CASE("level_to_string_view", "[convert_to_string_view]")
{
REQUIRE(spdlog::level::to_string_view(spdlog::level::trace) == "trace");
REQUIRE(spdlog::level::to_string_view(spdlog::level::debug) == "debug");

View File

@ -1,60 +1,169 @@
%global user gabime
%global debug_package %{nil}
Name: spdlog
Version: 1.2.1
Release: 1%{?dist}
Summary: Super fast C++ logging library
Group: Development/Libraries
License: MIT
URL: https://github.com/%{user}/%{name}/
Source0: https://github.com/%{user}/%{name}/archive/v%{version}.tar.gz
Version: 1.12.0
Release: 2%{?dist}
BuildRequires: ninja-build
BuildRequires: gcc-c++
License: MIT
Summary: Super fast C++ logging library
URL: https://github.com/gabime/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/gabime/spdlog/commit/d8d23a660601a406a1e1aa07380b5b1c5781c190
Patch100: %{name}-1.12.0-circular_q-size-fix.patch
# https://github.com/gabime/spdlog/commit/2ee8bac78e6525a8ad9a9196e65d502ce390d83a
Patch101: %{name}-1.12.0-level_to_string_view-fix.patch
BuildRequires: catch-devel >= 3.0.0
BuildRequires: cmake
BuildRequires: fmt-devel >= 9.1.0
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: google-benchmark-devel
BuildRequires: ninja-build
%description
This is a packaged version of the gabime/spdlog header-only C++
logging library available at Github.
This is a packaged version of the gabime/spdlog C++ logging
library available at Github.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Provides: %{name}-static = %{version}-%{release}
Provides: %{name} = %{version}-%{release}
Requires: libstdc++-devel
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libstdc++-devel%{?_isa}
Requires: fmt-devel%{?_isa}
%description devel
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.
%prep
%autosetup
mkdir -p %{_target_platform}
find . -name '.gitignore' -exec rm {} \;
sed -i -e "s,\r,," README.md
%autosetup -p1
find . -name '.gitignore' -delete
sed -e "s,\r,," -i README.md
rm -f tests/catch.hpp
%build
pushd %{_target_platform}
%cmake -G Ninja \
%cmake -G Ninja \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
-DCMAKE_BUILD_TYPE=Release \
..
popd
%ninja_build -C %{_target_platform}
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_BUILD_EXAMPLE=OFF \
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_INSTALL=ON \
-DSPDLOG_FMT_EXTERNAL=ON
%cmake_build
%check
%ctest
%install
%ninja_install -C %{_target_platform}
%cmake_install
%files
%license LICENSE
%doc README.md
%{_libdir}/lib%{name}.so.1*
%files devel
%doc README.md example/
%license LICENSE
%doc example
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jul 08 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 1.12.0-1
- Updated to version 1.12.0.
* Mon May 29 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 1.11.0-6
- Rebuilt due to fmt library update.
* Wed Mar 01 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 1.11.0-5
- Ported to catch v3. Fixed FTBFS in ELN.
* Tue Feb 28 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 1.11.0-4
- Fixed FTBFS in EPEL/ELN due to catch v3 update.
* Tue Feb 28 2023 Vitaly Zaitsev <vitaly@easycoding.org> - 1.11.0-3
- Fixed FTBFS due to catch v3 update.
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Nov 03 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 1.11.0-1
- Updated to version 1.11.0.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sun Jul 10 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 1.10.0-2
- Rebuilt due to fmt library update.
* Mon Apr 18 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 1.10.0-1
- Updated to version 1.10.0.
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Sep 15 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.9.2-2
- Rebuilt due to google-benchmark 1.6.0 update.
* Fri Aug 13 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.9.2-1
- Updated to version 1.9.2.
* Tue Jul 27 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.9.1-1
- Updated to version 1.9.1.
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jul 21 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.9.0-1
- Updated to version 1.9.0.
* Sun Jul 04 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.8.5-2
- Rebuilt due to fmt library update.
* Fri Apr 02 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.8.5-1
- Updated to version 1.8.5.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Dec 12 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.8.2-1
- Updated to version 1.8.2.
* Tue Oct 13 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.8.1-1
- Updated to version 1.8.1.
* Sat Sep 05 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.8.0-1
- Updated to version 1.8.0.
* Tue Jul 21 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.7.0-1
- Updated to version 1.7.0.
* Tue Jun 02 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.6.1-1
- Updated to version 1.6.1.
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Jan 27 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.0-1
- Updated to version 1.5.0.
* Wed Dec 18 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 1.4.2-1
- Updated to version 1.4.2.
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Jan 20 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 1.3.1-1
- Updated to version 1.3.1.
* Mon Nov 05 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 1.2.1-1
- Updated to version 1.2.1.