]>
Commit | Line | Data |
---|---|---|
45bc75eb ER |
1 | Summary: Small, safe and fast formatting library |
2 | Name: libfmt | |
3 | Version: 3.0.1 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Libraries | |
7 | Source0: http://mirrors.kodi.tv/build-deps/sources/fmt-%{version}.tar.gz | |
8 | # Source0-md5: b2c97427a696182b013d2cc0a2f939fe | |
9 | URL: https://github.com/fmtlib/fmt | |
10 | BuildRequires: cmake >= 2.8.12 | |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | A modern formatting library. | |
16 | ||
17 | %package devel | |
18 | Summary: Header files for %{name} library | |
19 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
20 | Group: Development/Libraries | |
21 | Requires: %{name} = %{version}-%{release} | |
22 | ||
23 | %description devel | |
24 | Header files for %{name} library. | |
25 | ||
26 | %description devel -l pl.UTF-8 | |
27 | Pliki nagłówkowe biblioteki %{name}. | |
28 | ||
29 | %package static | |
30 | Summary: Static %{name} library | |
31 | Summary(pl.UTF-8): Statyczna biblioteka %{name} | |
32 | Group: Development/Libraries | |
33 | Requires: %{name}-devel = %{version}-%{release} | |
34 | ||
35 | %description static | |
36 | Static %{name} library. | |
37 | ||
38 | %description static -l pl.UTF-8 | |
39 | Statyczna biblioteka %{name}. | |
40 | ||
41 | %prep | |
42 | %setup -q -n fmt-%{version} | |
43 | ||
44 | %build | |
45 | install -d build | |
46 | cd build | |
47 | %cmake \ | |
48 | -DFMT_CMAKE_DIR="%{_libdir}/cmake/fmt" \ | |
49 | -DFMT_LIB_DIR=%{_libdir} \ | |
50 | -DFMT_TEST=OFF \ | |
51 | -DBUILD_SHARED_LIBS=ON \ | |
52 | .. | |
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | %{__make} -C build install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc README.rst ChangeLog.rst LICENSE.rst | |
69 | %attr(755,root,root) %{_libdir}/libfmt.so.*.*.* | |
70 | %ghost %{_libdir}/libfmt.so.3 | |
71 | ||
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %dir %{_includedir}/fmt | |
75 | %{_includedir}/fmt/format.cc | |
76 | %{_includedir}/fmt/format.h | |
77 | %{_includedir}/fmt/ostream.cc | |
78 | %{_includedir}/fmt/ostream.h | |
79 | %{_includedir}/fmt/posix.h | |
80 | %{_includedir}/fmt/time.h | |
81 | %dir %{_libdir}/cmake/fmt | |
82 | %{_libdir}/cmake/fmt/fmt-config-version.cmake | |
83 | %{_libdir}/cmake/fmt/fmt-config.cmake | |
84 | %{_libdir}/cmake/fmt/fmt-targets-pld.cmake | |
85 | %{_libdir}/cmake/fmt/fmt-targets.cmake | |
86 | %{_libdir}/libfmt.so |