]> git.pld-linux.org Git - packages/libfmt.git/blob - libfmt.spec
up to 10.1.1
[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.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:  0d41a16f1b3878d44e6fd7ff1f6cc45a
11 URL:            https://github.com/fmtlib/fmt
12 BuildRequires:  cmake >= 3.8
13 BuildRequires:  libstdc++-devel >= 6:4.7
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 Requires:       libstdc++-devel >= 6:4.7
29
30 %description devel
31 Header files for fmt library.
32
33 %description devel -l pl.UTF-8
34 Pliki nagłówkowe biblioteki fmt.
35
36 %package static
37 Summary:        Static fmt library
38 Summary(pl.UTF-8):      Statyczna biblioteka fmt
39 Group:          Development/Libraries
40 Requires:       %{name}-devel = %{version}-%{release}
41
42 %description static
43 Static fmt library.
44
45 %description static -l pl.UTF-8
46 Statyczna biblioteka fmt.
47
48 %prep
49 %setup -q -n fmt-%{version}
50
51 %build
52 install -d build
53 cd build
54 %cmake .. \
55         -DFMT_CMAKE_DIR="%{_libdir}/cmake/fmt" \
56         -DFMT_LIB_DIR=%{_libdir} \
57         -DFMT_TEST=OFF
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
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.*.*.*
77 %ghost %{_libdir}/libfmt.so.10
78
79 %files devel
80 %defattr(644,root,root,755)
81 %{_libdir}/libfmt.so
82 %{_includedir}/fmt
83 %{_libdir}/cmake/fmt
84 %{_pkgconfigdir}/fmt.pc
This page took 0.103085 seconds and 4 git commands to generate.