]> git.pld-linux.org Git - SPECS.git/blob - spdlog.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / spdlog.spec
1 Summary:        Very fast C++ logging library
2 Summary(pl.UTF-8):      Bardzo szybka biblioteka C++ do logowania
3 Name:           spdlog
4 Version:        1.8.5
5 Release:        1
6 Epoch:          1
7 License:        MIT
8 Group:          Development/Libraries
9 #Source0Download: https://github.com/gabime/spdlog/releases
10 Source0:        https://github.com/gabime/spdlog/archive/v%{version}/%{name}-%{version}.tar.gz
11 # Source0-md5:  8755cdbc857794730a022722a66d431a
12 URL:            https://github.com/COMBINE-lab/spdlog
13 BuildRequires:  cmake >= 3.10
14 BuildRequires:  libfmt-devel >= 5.3.0
15 BuildRequires:  pkgconfig
16 BuildRequires:  rpmbuild(macros) >= 1.605
17 Requires:       libfmt >= 5.3.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Very fast C++ logging library.
22
23 %description -l pl.UTF-8
24 Bardzo szybka, składająca się z samych nagłówków biblioteka C++ do
25 logowania.
26
27 %package devel
28 Summary:        Very fast C++ logging library
29 Summary(pl.UTF-8):      Bardzo szybka biblioteka C++ do logowania
30 Group:          Development/Libraries
31 Requires:       %{name} = %{epoch}:%{version}-%{release}
32 Requires:       libstdc++-devel >= 6:4.7
33
34 %description devel
35 Very fast C++ logging library.
36
37 %description devel -l pl.UTF-8
38 Bardzo szybka, składająca się z samych nagłówków biblioteka C++ do
39 logowania.
40
41 %prep
42 %setup -q
43
44 %build
45 install -d build
46 cd build
47 %cmake .. \
48         -DSPDLOG_FMT_EXTERNAL=ON
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} -C build install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post    -p /sbin/ldconfig
62 %postun    -p /sbin/ldconfig
63
64 %files
65 %defattr(644,root,root,755)
66 %doc LICENSE README.md
67 %attr(755,root,root) %{_libdir}/libspdlog.so.*.*.*
68 %ghost %{_libdir}/libspdlog.so.1
69
70 %files devel
71 %defattr(644,root,root,755)
72 %{_libdir}/libspdlog.so
73 %{_includedir}/spdlog
74 %{_pkgconfigdir}/spdlog.pc
75 %{_libdir}/cmake/spdlog
This page took 1.624456 seconds and 3 git commands to generate.