replace openEuler by %{_vendor}

This commit is contained in:
zhangqiumiao 2021-06-07 15:41:30 +08:00
parent 1ba0d4b9d1
commit 056e5b3f86

View File

@ -1,7 +1,10 @@
%define _empty_manifest_terminate_build 0 %define _empty_manifest_terminate_build 0
%if "0%{?_vendor}" == "0"
%define _vendor openEuler
%endif
Name: anaconda Name: anaconda
Version: 33.19 Version: 33.19
Release: 22 Release: 23
Summary: Graphical system installer Summary: Graphical system installer
License: GPLv2+ and MIT License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda URL: http://fedoraproject.org/wiki/Anaconda
@ -236,6 +239,9 @@ documentation for working with this library.
%delete_la %delete_la
# install openEuler conf for anaconda # 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/ install -m 0755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/product.d/
# Create an empty directory for addons # Create an empty directory for addons
@ -323,6 +329,12 @@ update-desktop-database &> /dev/null || :
%{_datadir}/gtk-doc %{_datadir}/gtk-doc
%changelog %changelog
* Mon Jun 7 2021 zhangqiumiao <zhangqiumiao1@huawei.com> - 33.19-23
- Type:requirement
- ID:NA
- SUG:NA
- DESC:replace openEuler by %{_vendor}
* Wed May 19 2021 liuxin <liuxin264@huawei.com> - 33.19-22 * Wed May 19 2021 liuxin <liuxin264@huawei.com> - 33.19-22
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA