Compare commits
10 Commits
b83f20e26b
...
9e45a158c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e45a158c4 | ||
|
|
1c9a0a2b49 | ||
|
|
f9f872c96e | ||
|
|
1799be81f9 | ||
|
|
a8f2034eb8 | ||
|
|
dc709508c1 | ||
|
|
1fd0d2257c | ||
|
|
896512c9f8 | ||
|
|
0e0987f19d | ||
|
|
464031c327 |
@ -3,18 +3,13 @@
|
||||
%define debug_package %{nil}
|
||||
Name: custom_build_tool
|
||||
Summary: custom build tool for obs
|
||||
License: Mulan PSL v2
|
||||
License: MulanPSL-2.0
|
||||
Group: System/Management
|
||||
Version: 1.0.0
|
||||
Release: 1
|
||||
Release: 22
|
||||
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
|
||||
@ -87,11 +82,9 @@ 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: ALL" >> /etc/sudoers
|
||||
echo "abuild ALL=(ALL) NOPASSWD: /opt/custom_build_tool/rpmbuild-nocheck" >> /etc/sudoers
|
||||
|
||||
%if %{with_ub}
|
||||
%post uploadbuild
|
||||
@ -116,7 +109,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,7 +257,25 @@ rm -rf %{_tmppath}/%{name}
|
||||
rm -rf $RPM_BUILD_DIR/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Oct 16 2020 zhuchunyi <zhuchunyi@huawei.com> - 1.0.0-1
|
||||
* 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
|
||||
- Type:new package
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user