Correction of bad behavior
(cherry picked from commit 896512c9f8fdd167f99ff4af53e079d389595c9c)
This commit is contained in:
parent
0e0987f19d
commit
e657758d2b
@ -6,7 +6,7 @@ Summary: custom build tool for obs
|
||||
License: Mulan PSL v2
|
||||
Group: System/Management
|
||||
Version: 1.0.0
|
||||
Release: 18
|
||||
Release: 19
|
||||
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
|
||||
@ -91,7 +91,7 @@ sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-nocheck' /usr
|
||||
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: ALL" >> /etc/sudoers
|
||||
echo "abuild ALL=(ALL) NOPASSWD: /opt/custom_build_tool/rpmbuild-nocheck" >> /etc/sudoers
|
||||
|
||||
%if %{with_ub}
|
||||
%post uploadbuild
|
||||
@ -116,7 +116,6 @@ chmod 755 ${cmd_rpmbuild}
|
||||
%if %{with_san}
|
||||
%post san
|
||||
cp -a /usr/bin/mv /usr/bin/gmv
|
||||
chmod 4777 /usr/bin/gmv
|
||||
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-san' /usr/bin/rpmbuild
|
||||
old_gcc=/usr/bin/gcc
|
||||
old_gplus=/usr/bin/g++
|
||||
@ -265,6 +264,12 @@ rm -rf %{_tmppath}/%{name}
|
||||
rm -rf $RPM_BUILD_DIR/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Jan 24 2022 senlin <xiasenlin1@huawei.com> - 1.0.0-19
|
||||
- Type: Correction of bad behavior
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: Specify the specific sudo commands for abuild users
|
||||
|
||||
* Fri Oct 16 2020 zhuchunyi <zhuchunyi@huawei.com> - 1.0.0-18
|
||||
- Type:new package
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user