OSDN Git Service
(root)
/
resuse
/
doc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c12a9
)
Finished %setup
author
He Chenlan
<210hcl@gmail.com>
Tue, 19 Jan 2021 13:45:47 +0000
(21:45 +0800)
committer
He Chenlan
<210hcl@gmail.com>
Tue, 19 Jan 2021 13:45:47 +0000
(21:45 +0800)
RPM参考指南.txt
patch
|
blob
|
history
diff --git
a/RPM参考指南.txt
b/RPM参考指南.txt
index
37dd147
..
24b8a1d
100644
(file)
--- a/
RPM参考指南.txt
+++ b/
RPM参考指南.txt
@@
-106,4
+106,13
@@
ExcludeArch: 无法打包的架构。 ##暂不使用
%{-f*} 标记f的参数,如果在调用时出现
%1, %2 参数自己 (在getopt处理之后)
4.4.2%setup
-%setup -q为静默输出
\ No newline at end of file
+默认的%setup会自动清理工作空间,解压源代码包,以及让工作空间的权限正常。
+%setup -q为静默工作。
+%setup -n name 强制将解压出来的一级文件夹重命名为name(适用于一级文件夹带版本号)
+%setup -D 不清理工作空间(比如需要二次解压某个文件)
+%setup -b 在进入工作空间前解压某个源代码包
+%setup -a 在进入工作空间后解压某个源代码包
+%setup -c 与 %setup -T见PDF P63,不常用
+4.4.3%files
+%license 许可证文件
+%doc 帮助文档,范例之类的