]> git.pld-linux.org Git - packages/libfmt.git/blob - libfmt.spec
- updated to 8.1.1, pl
[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:        8.1.1
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:  fe7f1585844b14c647bd332ad5562832
11 URL:            https://github.com/fmtlib/fmt
12 BuildRequires:  cmake >= 3.1.0
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  rpmbuild(macros) >= 1.605
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 A modern formatting library.
19
20 %description -l pl.UTF-8
21 Nowoczesna biblioteka formatująca
22
23 %package devel
24 Summary:        Header files for fmt library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki fmt
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for fmt library.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe biblioteki fmt.
34
35 %package static
36 Summary:        Static fmt library
37 Summary(pl.UTF-8):      Statyczna biblioteka fmt
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 Static fmt library.
43
44 %description static -l pl.UTF-8
45 Statyczna biblioteka fmt.
46
47 %prep
48 %setup -q -n fmt-%{version}
49
50 %build
51 install -d build
52 cd build
53 %cmake .. \
54         -DFMT_CMAKE_DIR="%{_libdir}/cmake/fmt" \
55         -DFMT_LIB_DIR=%{_libdir} \
56         -DFMT_TEST=OFF
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} -C build install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc README.rst ChangeLog.rst LICENSE.rst
75 %attr(755,root,root) %{_libdir}/libfmt.so.*.*.*
76 %ghost %{_libdir}/libfmt.so.8
77
78 %files devel
79 %defattr(644,root,root,755)
80 %{_libdir}/libfmt.so
81 %{_includedir}/fmt
82 %{_libdir}/cmake/fmt
83 %{_pkgconfigdir}/fmt.pc
This page took 0.076479 seconds and 4 git commands to generate.