From c5a263ab0b64383db0d5ea250390908d39d0fe09 Mon Sep 17 00:00:00 2001 From: zhangqiumiao Date: Mon, 7 Jun 2021 15:41:30 +0800 Subject: [PATCH] replace openEuler by %{_vendor} (cherry picked from commit 056e5b3f86732b160caf247c58e84af71ed20fd2) --- anaconda.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/anaconda.spec b/anaconda.spec index 190deca..965a5fe 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: 22 +Release: 23 Summary: Graphical system installer License: GPLv2+ and MIT URL: http://fedoraproject.org/wiki/Anaconda @@ -236,6 +239,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 @@ -323,6 +329,12 @@ update-desktop-database &> /dev/null || : %{_datadir}/gtk-doc %changelog +* Mon Jun 7 2021 zhangqiumiao - 33.19-23 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:replace openEuler by %{_vendor} + * Wed May 19 2021 liuxin - 33.19-22 - Type:bugfix - ID:NA -- Gitee