]>
Commit | Line | Data |
---|---|---|
45bc75eb | 1 | Summary: Small, safe and fast formatting library |
bf974495 | 2 | Summary(pl.UTF-8): Mała, bezpieczna i szybka biblioteka do formatowania |
45bc75eb | 3 | Name: libfmt |
94a2dc4d | 4 | Version: 10.1.1 |
45bc75eb ER |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
bf974495 | 8 | #Source0Download: https://github.com/fmtlib/fmt/releases |
697c894e | 9 | Source0: https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz |
94a2dc4d | 10 | # Source0-md5: 0d41a16f1b3878d44e6fd7ff1f6cc45a |
45bc75eb | 11 | URL: https://github.com/fmtlib/fmt |
8530a915 JB |
12 | BuildRequires: cmake >= 3.8 |
13 | BuildRequires: libstdc++-devel >= 6:4.7 | |
bf974495 | 14 | BuildRequires: rpmbuild(macros) >= 1.605 |
45bc75eb ER |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | A modern formatting library. | |
19 | ||
bf974495 JB |
20 | %description -l pl.UTF-8 |
21 | Nowoczesna biblioteka formatująca | |
22 | ||
45bc75eb | 23 | %package devel |
bf974495 JB |
24 | Summary: Header files for fmt library |
25 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fmt | |
45bc75eb ER |
26 | Group: Development/Libraries |
27 | Requires: %{name} = %{version}-%{release} | |
8530a915 | 28 | Requires: libstdc++-devel >= 6:4.7 |
45bc75eb ER |
29 | |
30 | %description devel | |
bf974495 | 31 | Header files for fmt library. |
45bc75eb ER |
32 | |
33 | %description devel -l pl.UTF-8 | |
bf974495 | 34 | Pliki nagłówkowe biblioteki fmt. |
45bc75eb ER |
35 | |
36 | %package static | |
bf974495 JB |
37 | Summary: Static fmt library |
38 | Summary(pl.UTF-8): Statyczna biblioteka fmt | |
45bc75eb ER |
39 | Group: Development/Libraries |
40 | Requires: %{name}-devel = %{version}-%{release} | |
41 | ||
42 | %description static | |
bf974495 | 43 | Static fmt library. |
45bc75eb ER |
44 | |
45 | %description static -l pl.UTF-8 | |
bf974495 | 46 | Statyczna biblioteka fmt. |
45bc75eb ER |
47 | |
48 | %prep | |
49 | %setup -q -n fmt-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
bf974495 | 54 | %cmake .. \ |
45bc75eb ER |
55 | -DFMT_CMAKE_DIR="%{_libdir}/cmake/fmt" \ |
56 | -DFMT_LIB_DIR=%{_libdir} \ | |
bf974495 JB |
57 | -DFMT_TEST=OFF |
58 | ||
45bc75eb ER |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
bf974495 | 63 | |
45bc75eb ER |
64 | %{__make} -C build install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc README.rst ChangeLog.rst LICENSE.rst | |
76 | %attr(755,root,root) %{_libdir}/libfmt.so.*.*.* | |
8530a915 | 77 | %ghost %{_libdir}/libfmt.so.10 |
45bc75eb ER |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
45bc75eb | 81 | %{_libdir}/libfmt.so |
bf974495 JB |
82 | %{_includedir}/fmt |
83 | %{_libdir}/cmake/fmt | |
697c894e | 84 | %{_pkgconfigdir}/fmt.pc |