!11 use %{_vendor} instead of openeuler hardcode

From: @wonleing 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-01-05 07:21:14 +00:00 committed by Gitee
commit d954a5d315
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Name: glib
Epoch: 1
Version: 1.2.10
Release: 56
Release: 57
License: LGPLv2+
Summary: GLib is the core library that forms the basis for projects
URL: http://www.gtk.org/
@ -41,8 +41,8 @@ Help document for the glib package.
%prep
%autosetup -n %{name}-%{version} -p1
install -p -m 0644 /usr/lib/rpm/openEuler/config.guess config.guess
install -p -m 0644 /usr/lib/rpm/openEuler/config.sub config.sub
install -p -m 0644 /usr/lib/rpm/%{_vendor}/config.guess config.guess
install -p -m 0644 /usr/lib/rpm/%{_vendor}/config.sub config.sub
%build
%configure LIBTOOL=%{_bindir}/libtool
%make_build LIBTOOL=%{_bindir}/libtool
@ -74,6 +74,9 @@ make check LIBTOOL=%{_bindir}/libtool
%exclude %{_infodir}
%changelog
* Thu Dec 22 2022 wanglin <wangl29@chinatelecom.cn> - 1:1.2.10-57
- Fix openEuler hard code problem
* Wed Jan 05 2022 xu_ping <xuping33@huawei.com> - 1:1.2.10-56
- fix config.guess and config.sub path error