fix install custom_build_tool warning due to new rpm-build not provides find-debuginfo.sh

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 35dbcdb2f586228a12896eac798dc6a29866e38f)
This commit is contained in:
cherry530 2022-07-29 15:35:59 +08:00 committed by openeuler-sync-bot
parent 1fd0d2257c
commit dc709508c1

View File

@ -6,7 +6,7 @@ Summary: custom build tool for obs
License: Mulan PSL v2
Group: System/Management
Version: 1.0.0
Release: 19
Release: 20
BuildRoot: %{_tmppath}/%{name}
Source0: https://gitee.com/openeuler/custom_build_tool/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: util-linux coreutils
@ -87,8 +87,6 @@ install -m 600 %{name}/rpmbuild-san %{buildroot}/opt/custom_build_tool/
bash /opt/custom_build_tool/custom_build_tool.sh
%post nocheck
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-nocheck' /usr/bin/rpmbuild
%post nodebug
sed -i 's/strict=true/strict=false/' /usr/lib/rpm/find-debuginfo.sh
%post target
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-target' /usr/bin/rpmbuild
echo "abuild ALL=(ALL) NOPASSWD: /opt/custom_build_tool/rpmbuild-nocheck" >> /etc/sudoers
@ -264,6 +262,12 @@ rm -rf %{_tmppath}/%{name}
rm -rf $RPM_BUILD_DIR/%{name}
%changelog
* Fri Jul 29 2022 xu_ping <xuping33@h-partners.com> - 1.0.0-20
- Type: fix warning
- ID: NA
- SUG: NA
- DESC: fix install custom_build_tool warning due to new rpm-build not provides find-debuginfo.sh
* Mon Jan 24 2022 senlin <xiasenlin1@huawei.com> - 1.0.0-19
- Type: Correction of bad behavior
- ID: NA