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