diff --git a/opengauss-server.spec b/opengauss-server.spec index c548f9d2a289b876d3c0f20e179484dc40a1ead8..e1a0bd0446f5b3eb2423b279808c2707c7187513 100755 --- a/opengauss-server.spec +++ b/opengauss-server.spec @@ -12,7 +12,7 @@ Name: opengauss Version: 2.1.0 -Release: 11 +Release: 12 Summary: openGauss is an open source relational database management system License: MulanPSL-2.0 and MIT and BSD and zlib and TCL and Apache-2.0 and BSL-1.0 URL: https://gitee.com/opengauss/openGauss-server @@ -65,8 +65,6 @@ Requires: numactl-devel %description openGauss kernel : openGauss is an open source relational database management system. -%global debug_package %{nil} - %prep %setup -q -c -n %{name}-%{version} %setup -q -D -T -a 1 @@ -209,6 +207,10 @@ install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{?_localstatedir}/lib/opengauss/.bash_ install -m 644 %{SOURCE6} %{buildroot}/%{apppath}/script/opengauss.service install -m 700 %{SOURCE7} %{buildroot}/%{apppath}/script/autostart.sh +# make x-sharedlib executable so that debug symbol extraction happens. +find %{buildroot}%{apppath} -type f -print0 | \ +xargs -0 -P $RPM_BUILD_NCPUS -I {} sh -c 'case "$(file -bi "{}")" in application/x-sharedlib*) chmod +x "{}";; esac' + %pre /usr/sbin/groupadd opengauss >/dev/null 2>&1 || : /usr/sbin/useradd -M -N -g opengauss -d %{datapath} -s /bin/bash \ @@ -327,6 +329,9 @@ fi %changelog +* Wed May 08 2024 guoqinglan - 2.1.0-12 +- enable debuginfo package + * Fri Aug 18 2023 panchenbo - 2.1.0-11 - add sw_64 support