From 35f1d4c9d24c23bbc132592677d5e63de96b9846 Mon Sep 17 00:00:00 2001 From: zhangqiumiao Date: Mon, 21 Jun 2021 15:33:01 +0800 Subject: [PATCH] replace openEuler by %{_vendor} --- anaconda.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/anaconda.spec b/anaconda.spec index ed46903..773c26b 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,7 +1,10 @@ %define _empty_manifest_terminate_build 0 +%if "0%{?_vendor}" == "0" +%define _vendor openEuler +%endif Name: anaconda Version: 33.19 -Release: 23 +Release: 24 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -237,6 +240,9 @@ documentation for working with this library. %delete_la # install openEuler conf for anaconda +if [ %{_vendor} != "openEuler" ]; then + sed -i "s#openEuler#%{_vendor}#g" %{SOURCE1} +fi install -m 0755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/product.d/ # Create an empty directory for addons @@ -324,6 +330,12 @@ update-desktop-database &> /dev/null || : %{_datadir}/gtk-doc %changelog +* Mon Jun 21 2021 zhangqiumiao - 33.19-24 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:replace openEuler by %{_vendor} + * Mon Jun 21 2021 liuxin - 33.19-23 - Type:bugfix - ID:NA