From 9b9d6baccdcf2b99619272f4e824c7d5cab5d665 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Thu, 17 Nov 2022 19:19:26 +0800 Subject: [PATCH] Replace openEuler with vendor (cherry picked from commit d86e1b5690554c689e00e906a882d85addba7509) --- antlr3.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/antlr3.spec b/antlr3.spec index 146c143..b33747f 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -1,7 +1,8 @@ %global antlr_version 3.5.2 %global c_runtime_version 3.4 %global javascript_runtime_version 3.1 -%global baserelease 23 +%global baserelease 24 +%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler} Name: antlr3 Epoch: 1 @@ -109,7 +110,7 @@ C++ runtime support for ANTLR-generated parsers. %prep %setup -q -n antlr3-%{antlr_version} -a 1 -sed -i "s,\${buildNumber},`cat %{_sysconfdir}/openEuler-release` `date`," \ +sed -i "s,\${buildNumber},`cat %{_sysconfdir}/%{vendor}-release` `date`," \ tool/src/main/resources/org/antlr/antlr.properties %patch0001 -p1 @@ -223,6 +224,9 @@ install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/ %changelog +* Thu Nov 17 2022 yaoxin - 1:3.5.2-24 +- Replace openEuler with vendor + * Sat Dec 12 2020 wutao - 1:3.5.2-23 - fix rpm dist problem -- Gitee