Compare commits

..

No commits in common. "9e45a158c44b6d42e75501180a1c39b3c2928ad2" and "b83f20e26b665a3f86cc53bee8c9a28cc100feba" have entirely different histories.

View File

@ -3,13 +3,18 @@
%define debug_package %{nil}
Name: custom_build_tool
Summary: custom build tool for obs
License: MulanPSL-2.0
License: Mulan PSL v2
Group: System/Management
Version: 1.0.0
Release: 22
Release: 1
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
BuildRequires: -custom_build_tool-nocheck
BuildRequires: -obs-env
BuildRequires: -gcc_secure
BuildRequires: -bep-env
BuildRequires: -custom_build_tool-san
Requires: bash rpm-build sed util-linux coreutils
%description
@ -82,9 +87,11 @@ 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
echo "abuild ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
%if %{with_ub}
%post uploadbuild
@ -109,6 +116,7 @@ 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++
@ -257,25 +265,7 @@ rm -rf %{_tmppath}/%{name}
rm -rf $RPM_BUILD_DIR/%{name}
%changelog
* Tue Aug 15 2023 xiasenlin <xiasenlin1@huawei.com> - 1.0.0-22
- fix warning in EulerMaker
* Fri Aug 05 2022 fushanqing <fushanqing@kylinos.cn> - 1.0.0-21
- Unified license name specification
* 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
- SUG: NA
- DESC: Specify the specific sudo commands for abuild users
* Fri Oct 16 2020 zhuchunyi <zhuchunyi@huawei.com> - 1.0.0-18
* Fri Oct 16 2020 zhuchunyi <zhuchunyi@huawei.com> - 1.0.0-1
- Type:new package
- ID:NA
- SUG:NA