diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | sources | 1 | ||||
-rw-r--r-- | spdlog.spec | 67 |
3 files changed, 69 insertions, 0 deletions
@@ -0,0 +1 @@ +/spdlog-1.11.0.tar.gz @@ -0,0 +1 @@ +287c6492c25044fd2da9947ab120b2bd spdlog-1.11.0.tar.gz diff --git a/spdlog.spec b/spdlog.spec new file mode 100644 index 0000000..7a23ba9 --- /dev/null +++ b/spdlog.spec @@ -0,0 +1,67 @@ +Name: spdlog +Version: 1.11.0 +Release: 1%{?dist} + +License: MIT +Summary: Super fast C++ logging library. +Group: Development/Tools +Vendor: VMware, Inc. +URL: https://github.com/gabime/spdlog +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: fmt-devel +BuildRequires: gcc +BuildRequires: gcc-c++ + +%description +This is a packaged version of the gabime/spdlog C++ logging +library available at Github. + +%package devel +Summary: Development files for %{name} +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}. + +%global debug_package %{nil} + +%prep +%setup -q + +%build +mkdir -p build +cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DSPDLOG_BUILD_EXAMPLE=OFF \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_TESTS=OFF \ + -DSPDLOG_INSTALL=ON \ + -DSPDLOG_FMT_EXTERNAL=ON .. +make %{?_smp_mflags} + +%install +cd build +make DESTDIR=%{buildroot} install + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.1* + +%files devel +%doc example +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/%{name} +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Fri Apr 07 2023 kerneltravel <kjpioo2006@gmail.com> - 1.11.0 +- Initial package source version 1.11.0 from https://github.com/gabime/spdlog release. |