summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--spdlog.spec62
3 files changed, 64 insertions, 0 deletions
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 <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