Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
perlporter
提交
444b1e78
P
perlporter
项目概览
openeuler
/
perlporter
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
perlporter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
444b1e78
编写于
6月 09, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
6月 09, 2020
浏览文件
操作
浏览文件
下载
差异文件
!3 add help package & do /usr/bin/ check
Merge pull request !3 from myeuler/master
上级
f698c0a4
83cd3f67
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
6 deletion
+33
-6
perlporter
perlporter
+33
-6
未找到文件。
perlporter
浏览文件 @
444b1e78
...
...
@@ -766,6 +766,7 @@ sub build_spec(%) {
my
@doc
=
@
{
$args
{
doc
}};
print
$spec
<<END;
\%global _empty_manifest_terminate_build 0
Name: $g_prefix$args{name}
Version: $args{version}
Release: $g_release$g_disttag
...
...
@@ -828,24 +829,33 @@ END
my
$buildpath
=
$args
{
path
};
$buildpath
=~
s/$args{version}/\%{version}/
;
print
$spec
<<END;
print
$spec
<<END;
\%description
$args{desc}
END
print
$spec
<<END;
\%package help
Summary : $args{summary}
Provides: $g_prefix$args{name}-doc
\%description help
$args{desc}
END
print
$spec
<<END;
\%prep
\%setup -q@{[(" -n $buildpath")]}
END
if
(
grep
{
$_
eq
"
pm_to_blib
"
}
$args
{
files
})
{
print
$spec
<<'END';
rm -f pm_to_blib
END
}
print
$spec
<<END;
\%build
export PERL_MM_OPT=""
END
...
...
@@ -892,13 +902,26 @@ END
print
$spec
<<END;
find $macro{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \\;
END
}
}
print
$spec
<<END;
find $macro{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \\;
\%{_fixperms} $macro{buildroot}/*
END
print
$spec
<<END;
pushd \%{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/\%h/\%f\\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/\%h/\%f\\n" >> filelist.lst
fi
popd
mv \%{buildroot}/filelist.lst .
END
print
$spec
<<END;
...
...
@@ -915,7 +938,7 @@ END
\%clean
rm -rf $macro{buildroot}
\%files
\%files
-f filelist.lst
\%defattr(-,root,root,-)
\%doc @doc
END
...
...
@@ -933,7 +956,11 @@ END
my
$date
=
strftime
("
%a %b %d %Y
",
localtime
);
print
$spec
<<END;
\%{_mandir}/man3/*
\%files help
\%{_mandir}/*
END
print
$spec
<<END;
\%changelog
* $date Perl_Bot <Perl_Bot\@openeuler.org> $args{version}-$g_release
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录