blob: 7a23ba9fa675d6b8f7e85ed379eb4a6ddbe8754b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.
|