From ffbb49e5968c18be23ae489e2f2a4e5aad9ba070 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 13 Oct 2026 08:22:46 +0000 Subject: automatic import of spdlog --- .gitignore | 1 + sources | 1 + spdlog.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 sources create mode 100644 spdlog.spec diff --git a/.gitignore b/.gitignore index e69de29..3e6323c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/spdlog-1.17.0.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..5699d2e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +fa21d71204562682ad079a3b73c9c685 spdlog-1.17.0.tar.gz diff --git a/spdlog.spec b/spdlog.spec new file mode 100644 index 0000000..4c48780 --- /dev/null +++ b/spdlog.spec @@ -0,0 +1,62 @@ +# topdir: spdlog-1.17.0 +Name: spdlog +Version: 1.17.0 +Release: 1%{?dist} +Summary: Fast C++ logging library + +License: MIT +URL: https://github.com/gabime/spdlog +Source0: https://github.com/gabime/spdlog/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz + +Group: Development/Libraries +Packager: openEuler Builder + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +spdlog is a very fast, header-only/compiled, C++ logging library. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Packager: openEuler Builder +Requires: %{name} = %{version}-%{release} + +%description devel +Header files, CMake configuration files and development libraries for %{name}. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%cmake \ + -DSPDLOG_BUILD_SHARED=ON \ + -DSPDLOG_BUILD_TESTS=OFF \ + -DSPDLOG_BUILD_TESTS_HO=OFF \ + -DSPDLOG_BUILD_EXAMPLE=OFF \ + -DSPDLOG_BUILD_EXAMPLE_HO=OFF \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_WARNINGS=OFF \ + -DSPDLOG_FMT_EXTERNAL=OFF \ + -DSPDLOG_FMT_EXTERNAL_HO=OFF \ + -DSPDLOG_INSTALL=ON +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_libdir}/libspdlog.so.* + +%files devel +%{_includedir}/spdlog/ +%{_libdir}/libspdlog.so +%{_libdir}/cmake/spdlog/ +%{_libdir}/pkgconfig/spdlog.pc + +%changelog +* Tue Oct 13 2026 openEuler Builder - 1.17.0-1 +- Initial package -- cgit v1.2.3