summaryrefslogtreecommitdiff
path: root/spdlog.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-13 08:22:46 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-13 08:22:46 +0000
commitffbb49e5968c18be23ae489e2f2a4e5aad9ba070 (patch)
tree5f5d2b320928b30e29d0d954361b566ebe8e0a75 /spdlog.spec
parent65f7ccf992510386888ff0d8c416b3379799fd15 (diff)
automatic import of spdlog
Diffstat (limited to 'spdlog.spec')
-rw-r--r--spdlog.spec62
1 files changed, 62 insertions, 0 deletions
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 <builder@openeuler.org>
+
+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 <builder@openeuler.org>
+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 <builder@openeuler.org> - 1.17.0-1
+- Initial package