!4 [sync] PR-3: 修复依赖fmt-devel编译失败问题
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
19956ed359
17
fmt.spec
17
fmt.spec
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user