add debug package
This commit is contained in:
parent
489c73fa45
commit
f7b3ce0d4c
@ -1,7 +1,6 @@
|
||||
%define debug_package %{nil}
|
||||
Name: oeAware-collector
|
||||
Version: v1.0.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: %{name} provides low-overhead metrics collection capabilities, including microarchitecture, system, and kernel information.
|
||||
License: MulanPSL2
|
||||
URL: https://gitee.com/openeuler/%{name}
|
||||
@ -51,7 +50,7 @@ mkdir build
|
||||
cd build
|
||||
cmake .. -DLIB_KPERF_LIBPATH=%{_builddir}/%{name}-%{version}/pmu/3rdlib/bin/ \
|
||||
-DLIB_KPERF_INCPATH=%{_builddir}/%{name}-%{version}/pmu/3rdlib/include/ \
|
||||
-DCMAKE_SKIP_RPATH=TRUE
|
||||
-DCMAKE_SKIP_RPATH=TRUE -WITH_DEBUG=TRUE
|
||||
make
|
||||
%endif
|
||||
|
||||
@ -59,17 +58,17 @@ make
|
||||
cd %{_builddir}/%{name}-%{version}/thread_collector/
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/collector/
|
||||
%ifarch aarch64
|
||||
install -b -m640 ./pmu/3rdlib/bin/*.so ${RPM_BUILD_ROOT}%{_libdir}
|
||||
install -b -m640 ./pmu/build/libpmu.so ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/collector/
|
||||
install -b -m740 ./pmu/3rdlib/bin/*.so ${RPM_BUILD_ROOT}%{_libdir}
|
||||
install -b -m740 ./pmu/build/libpmu.so ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/collector/
|
||||
%endif
|
||||
install -b -m640 ./thread_collector/build/libthread_collector.so ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/collector/
|
||||
install -b -m740 ./thread_collector/build/libthread_collector.so ${RPM_BUILD_ROOT}%{_libdir}/oeAware-plugin/collector/
|
||||
|
||||
%files
|
||||
%defattr (-, root, root)
|
||||
@ -80,5 +79,8 @@ install -b -m640 ./thread_collector/build/libthread_collector.so ${RPM_BUIL
|
||||
%attr(0440, root, root) %{_libdir}/oeAware-plugin/collector/*.so
|
||||
|
||||
%changelog
|
||||
* Thu Apr 18 2024 liuchanggeng<liuchanggeng@huawei.com> - v1.0.0-2
|
||||
- add debug package
|
||||
|
||||
* Wed Apr 17 2024 liuchanggeng<liuchanggeng@huawei.com> - v1.0.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user