!10 增加debug包

From: @licihua 
Reviewed-by: @jingxiaolu 
Signed-off-by: @jingxiaolu
This commit is contained in:
openeuler-ci-bot 2024-06-24 02:53:45 +00:00 committed by Gitee
commit 7971e83b71
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Summary : An open source CoreSight(tm) Trace Decode library
Name : OpenCSD
Version : 1.3.3
Release : 2
Release : 3
License : BSD
Source : %{name}-%{version}.tar.gz
BuildRoot : %{_tmppath}/%{name}-%{version}-${release}-root
@ -15,20 +15,20 @@ BuildRequires : gcc-c++ make
3. Packet Decode : Convert the packets into fully decoded trace describing the program flow on a core.
The library is implemented in C++ with an optional "C" API.
%global debug_package %{nil}
%prep
%setup -q
%build
make -C decoder/build/linux -j
export CFLAGS="$RPM_OPT_FLAGS -fPIE -pie"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIE -pie"
make -C decoder/build/linux %{?_smp_mflags}
%install
rm -rf %{buildroot}
make -C decoder/build/linux install PREFIX=%{buildroot}/usr LIB_PATH=lib64
make -C decoder/build/linux install PREFIX=%{buildroot}/usr LIB_PATH=%{_lib} DEF_SO_PERM=755
%clean
rm -rf %{buildroot}
@ -44,6 +44,10 @@ rm -rf %{buildroot}
%changelog
* Wed Apr 03 2024 guoqinglan <guoqinglan@kylinsec.com.cn> - 1.3.3-3
- enable debug package
- change permission from 644 to 755
* Tue Feb 28 2023 liweiganga <liweiganga@uniontech.com> - 1.3.3-2
- fix #I6I3EM and #I6I31E