Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
custom_build_tool
提交
68f6ecad
C
custom_build_tool
项目概览
openeuler
/
custom_build_tool
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
custom_build_tool
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
68f6ecad
编写于
7月 14, 2020
作者:
W
wangchong56
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mv the self-developed package: custom_build_tool to openeuler
上级
4360b0ec
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
39 deletion
+4
-39
custom_build_tool-1.0/rpmbuild-gcov
custom_build_tool-1.0/rpmbuild-gcov
+1
-0
custom_build_tool-1.0/rpmbuild-sign
custom_build_tool-1.0/rpmbuild-sign
+0
-11
custom_build_tool.spec
custom_build_tool.spec
+3
-28
未找到文件。
custom_build_tool-1.0/rpmbuild-gcov
0 → 100644
浏览文件 @
68f6ecad
sed -i 's/"rpmbuild"/"rpmbuild-gcov"/g' /.build.command
custom_build_tool-1.0/rpmbuild-sign
已删除
100644 → 0
浏览文件 @
4360b0ec
if test -f /.build.command; then
sed -i 's/--nosignature/--sign/g' /.build.command
grep cups.spec /.build.command > /dev/null
if [ $? -eq 0 ]; then
sed -i 's/--sign/--nosignature/g' /.build.command
sed -i 's/exec //g' /.build.command
sed -i '$aexec "find" "/home/abuild/rpmbuild" "-name" "*.rpm" | "xargs" "-r" "rpmsign" "--addsign"' /.build.command
fi
chown -R abuild:abuild /home/abuild/.gnupg
/home/abuild/chmod 700 /home/abuild/.gnupg
fi
custom_build_tool.spec
浏览文件 @
68f6ecad
...
...
@@ -5,7 +5,7 @@
%define debug_package %{nil}
%endif
Name: custom_build_tool
Summary:
EulerOS
custom build tool for obs
Summary: custom build tool for obs
License: GPL
Group: System/Management
Version: 1.0
...
...
@@ -16,7 +16,6 @@ BuildRequires: util-linux coreutils
BuildRequires: -custom_build_tool-nocheck
BuildRequires: -obs-env
BuildRequires: -gcc_secure
BuildRequires: -custom_build_tool-sign
BuildRequires: -bep-env
BuildRequires: -custom_build_tool-gcov
BuildRequires: -custom_build_tool-san
...
...
@@ -35,15 +34,6 @@ Summary: add nocheck to rpmbuild
%description nocheck
%package sign
Group: Development/Libraries
BuildArch: noarch
Requires:bash rpm-build rpm-sign sed util-linux coreutils gnupg2
Requires:custom_build_tool
Summary: add sign to rpmbuild
%description sign
%package nodebug
Group: Development/Libraries
BuildArch: noarch
...
...
@@ -115,10 +105,7 @@ mkdir -p %{buildroot}/home/abuild/.gnupg/
mkdir -p %{buildroot}/root/.gnupg/
install -m 700 %{name}-%{version}/*.sh %{buildroot}/opt/custom_build_tool/
install -m 600 %{name}-%{version}/rpmbuild-nocheck %{buildroot}/opt/custom_build_tool/
install -m 600 %{name}-%{version}/rpmbuild-sign %{buildroot}/opt/custom_build_tool/
install -m 600 %{name}-%{version}/rpmbuild-target %{buildroot}/opt/custom_build_tool/
cp -a %{name}-%{version}/gpg/* %{buildroot}/root/.gnupg/
cp -a %{name}-%{version}/gpg/* %{buildroot}/home/abuild/.gnupg/
%if %{with_gcov}
install -m 600 %{name}-%{version}/rpmbuild-gcov %{buildroot}/opt/custom_build_tool/
%endif
...
...
@@ -134,8 +121,6 @@ install -m 600 %{name}-%{version}/rpmbuild-ub %{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 sign
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-sign' /usr/bin/rpmbuild
%post nodebug
sed -i 's/strict=true/strict=false/' /usr/lib/rpm/find-debuginfo.sh
%post target
...
...
@@ -160,7 +145,7 @@ ret=\$?
if [ \$ret -eq 0 ]; then
source /opt/custom_build_tool/upload.sh
echo "Gcov version has been compiled
ddddddddddddddddddddddddddd
"
echo "Gcov version has been compiled"
else
if file /usr/bin/gcc | grep ELF; then
exit \$ret
...
...
@@ -287,7 +272,7 @@ export ASAN_OPTIONS=detect_leaks=0:halt_on_error=0
${old_rpmbuild} "\$@"
ret=\$?
echo "SAN version has been compiled
ddddddddddddddddddddddddddd
"
echo "SAN version has been compiled"
exit \$ret
END1
...
...
@@ -358,8 +343,6 @@ fi
rm -rf /opt/custom_build_tool/custom_build_tool.sh
%postun nocheck
rm -rf /opt/custom_build_tool/rpmbuild-nocheck
%postun sign
rm -rf /opt/custom_build_tool/rpmbuild-sign
%postun target
rm -rf /opt/custom_build_tool/rpmbuild-target
%if %{with_gcov}
...
...
@@ -387,14 +370,6 @@ rm -rf /opt/custom_build_tool/rpmbuild-ub
%dir /opt/custom_build_tool
/opt/custom_build_tool/rpmbuild-nocheck
%files sign
%defattr(-,root,root)
%dir /opt
%dir /opt/custom_build_tool
/root/.gnupg/*
/home/abuild/.gnupg/*
/opt/custom_build_tool/rpmbuild-sign
%files nodebug
%defattr(-,root,root)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录