From 8bdd9fb9d1eaec620b50560fdf969f7058485aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=96=87=E5=AE=87?= Date: Wed, 23 Nov 2022 02:52:11 +0000 Subject: [PATCH] Eliminate hard coding issues for vendor name in gdb/version.in gdb/version.in is generated with hard coding in gdb.spec: cat > gdb/version.in << _FOO openEuler %{version}-%{release} _FOO fix it by using rpm maroc %{_vendor} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘文宇 --- gdb.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb.spec b/gdb.spec index 36bfaf2..97cf9b9 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,6 +1,6 @@ Name: gdb Version: 11.1 -Release: 2 +Release: 3 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL-1.3 Source: ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.xz @@ -98,6 +98,7 @@ Patch82: 0001-Make-c-exp.y-work-with-Bison-3.8.patch %global gdb_src gdb-%{version} %global gdb_build build-%{_target_platform} %global __python %{__python3} +%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler} %undefine _debuginfo_subpackages @@ -178,7 +179,7 @@ find -name "*.info*"|xargs rm -f find -name "*.orig" | xargs rm -f cat > gdb/version.in << _FOO -openEuler %{version}-%{release} +%{vendor} %{version}-%{release} _FOO rm -f libdecnumber/gstdint.h @@ -365,6 +366,9 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py %{_infodir}/gdb.info* %changelog +* Wed Nov 23 2022 Wenyu Liu - 11.1-3 +- Eliminate hard coding issues for vendor name in gdb/version.in + * Tue Oct 25 2022 yaowenbin - 11.1-2 - upgrade GDB release to 2 -- Gitee