]> git.pld-linux.org Git - packages/libfmt.git/blame - libfmt.spec
- up to 8.0.1
[packages/libfmt.git] / libfmt.spec
CommitLineData
45bc75eb
ER
1Summary: Small, safe and fast formatting library
2Name: libfmt
628541a3 3Version: 8.0.1
45bc75eb
ER
4Release: 1
5License: BSD
6Group: Libraries
697c894e 7Source0: https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
628541a3 8# Source0-md5: 7d5af964c6633ef90cd6a47be3afe6a0
45bc75eb 9URL: https://github.com/fmtlib/fmt
697c894e 10BuildRequires: cmake >= 3.1.0
45bc75eb
ER
11BuildRequires: libstdc++-devel
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15A modern formatting library.
16
17%package devel
18Summary: Header files for %{name} library
19Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
20Group: Development/Libraries
21Requires: %{name} = %{version}-%{release}
22
23%description devel
24Header files for %{name} library.
25
26%description devel -l pl.UTF-8
27Pliki nagłówkowe biblioteki %{name}.
28
29%package static
30Summary: Static %{name} library
31Summary(pl.UTF-8): Statyczna biblioteka %{name}
32Group: Development/Libraries
33Requires: %{name}-devel = %{version}-%{release}
34
35%description static
36Static %{name} library.
37
38%description static -l pl.UTF-8
39Statyczna biblioteka %{name}.
40
41%prep
42%setup -q -n fmt-%{version}
43
44%build
45install -d build
46cd 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
56rm -rf $RPM_BUILD_ROOT
57%{__make} -C build install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -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.*.*.*
628541a3 70%ghost %{_libdir}/libfmt.so.8
45bc75eb
ER
71
72%files devel
73%defattr(644,root,root,755)
74%dir %{_includedir}/fmt
697c894e 75%{_includedir}/fmt/*.h
45bc75eb
ER
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
697c894e 82%{_pkgconfigdir}/fmt.pc
This page took 0.217655 seconds and 4 git commands to generate.