]> git.pld-linux.org Git - packages/libfmt.git/blob - libfmt.spec
- up to 8.0.1
[packages/libfmt.git] / libfmt.spec
1 Summary:        Small, safe and fast formatting library
2 Name:           libfmt
3 Version:        8.0.1
4 Release:        1
5 License:        BSD
6 Group:          Libraries
7 Source0:        https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  7d5af964c6633ef90cd6a47be3afe6a0
9 URL:            https://github.com/fmtlib/fmt
10 BuildRequires:  cmake >= 3.1.0
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.8
71
72 %files devel
73 %defattr(644,root,root,755)
74 %dir %{_includedir}/fmt
75 %{_includedir}/fmt/*.h
76 %dir %{_libdir}/cmake/fmt
77 %{_libdir}/cmake/fmt/fmt-config-version.cmake
78 %{_libdir}/cmake/fmt/fmt-config.cmake
79 %{_libdir}/cmake/fmt/fmt-targets-pld.cmake
80 %{_libdir}/cmake/fmt/fmt-targets.cmake
81 %{_libdir}/libfmt.so
82 %{_pkgconfigdir}/fmt.pc
This page took 0.065958 seconds and 3 git commands to generate.