From bba30458fff328bea1b425ae34d8d6a37a269969 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Tue, 27 Oct 2026 11:04:36 +0800 Subject: [PATCH] import spdlog-1.10.0-1.an23.src.rpm --- README.en.md | 36 ---------------------------- README.md | 39 ------------------------------- download | 1 + spdlog.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 75 deletions(-) delete mode 100644 README.en.md delete mode 100644 README.md create mode 100644 download create mode 100644 spdlog.spec diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 7cfc5ef..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# spdlog - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 6e8c339..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# spdlog - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/download b/download new file mode 100644 index 0000000..5a021a5 --- /dev/null +++ b/download @@ -0,0 +1 @@ +effea813cd81cfb5588806c5754e14f1 v1.10.0.tar.gz diff --git a/spdlog.spec b/spdlog.spec new file mode 100644 index 0000000..3a4e000 --- /dev/null +++ b/spdlog.spec @@ -0,0 +1,66 @@ +%define anolis_release 1 + +Name: spdlog +Version: 1.10.0 +Release: %{anolis_release}%{?dist} +Summary: Super fast C++ logging library + +License: MIT +URL: https://github.com/gabime/%{name} +Source0: %{url}/archive/v%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: fmt-devel >= 8.1.1 +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: ninja-build + +%description +This is a packaged version of the gabime/spdlog C++ logging library available +on Github. Built against the system fmt library. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libstdc++-devel +Requires: fmt-devel + +%description devel +The %{name}-devel package contains C++ header files for developing +applications that use %{name}. + +%prep +%autosetup -p1 +find . -name '.gitignore' -delete +sed -e "s,\r,," -i README.md + +%build +%cmake -G Ninja \ + -DCMAKE_INSTALL_LIBDIR=%{_lib} \ + -DCMAKE_BUILD_TYPE=Release \ + -DSPDLOG_BUILD_SHARED=ON \ + -DSPDLOG_BUILD_EXAMPLE=OFF \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_TESTS=OFF \ + -DSPDLOG_INSTALL=ON \ + -DSPDLOG_FMT_EXTERNAL=ON \ + %{nil} +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.1* + +%files devel +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/%{name} +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Mon Oct 12 2026 PengLAI Code - 1.10.0-1 +- Initial Anolis 23 build -- Gitee