(cherry picked from commit aa12edf9311734e450caa44638de17847199dd31)
This commit is contained in:
yangchenguang 2022-08-26 15:50:43 +08:00 committed by openeuler-sync-bot
parent 0f89a303ec
commit 97cbe7d8a0

View File

@ -1,7 +1,7 @@
%undefine __cmake_in_source_build
Name: fmt
Version: 8.0.1
Release: 1
Release: 2
License: MIT
Summary: Small, safe and fast formatting library for C++
URL: https://github.com/fmtlib/fmt
@ -28,17 +28,7 @@ This package contains the header file for using %{name}.
cmake --build ./ %{?_smp_flags} --verbose
%install
install -d -m 0755 %{buildroot}/%{_includedir}/%{name}
install -d -m 0755 %{buildroot}/%{_libdir}
install -d -m 0755 %{buildroot}/%{_libdir}/cmake/%{name}
install -d -m 0755 %{buildroot}/%{_libdir}/pkgconfig
cp -arf include/fmt/* %{buildroot}/%{_includedir}/%{name}
cp -arf lib%{name}.so %{buildroot}/%{_libdir}
cp -arf lib%{name}.so.8.0.1 %{buildroot}/%{_libdir}
cp -arf lib%{name}.so.8 %{buildroot}/%{_libdir}
cp -arf fmt.pc %{buildroot}/%{_libdir}/pkgconfig
cp -arf *.cmake %{buildroot}/%{_libdir}/cmake/%{name}
DESTDIR="%{buildroot}" cmake --install ./
%check
ctest -VV %{?_smp_flags}
@ -55,5 +45,8 @@ ctest -VV %{?_smp_flags}
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Aug 26 2022 yangchenguang <yangchenguang@uniontech.com> - 8.0.1-2
- fix dependency compile failed
* Sat Aug 7 2021 liyanan <liyanan32@huawei.com> - 8.0.1-1
- package init