本页保存一些Open Build System使用记录。
目录
OBS Software Packaging
- 只在Tumbleweed下执行命令
%if 0%{?suse_version} > 1600
<COMMAND_TO_EXECUTE_IN_TUMBLEWEED>
%endif
OBS RPM Lint
W:unstripped-binary-or-object
W:no-soname
There is no DT_SONAME field defined in the so file.
RPM 宏定义查询
- RPM Macros - /usr/lib/rpm/macros
osc 常用命令
- 修改project的build target - osc meta prj -e home:nuklly
- 修改project中某个package的metadata - osc meta pkg -e home:nuklly hplip
- 删除project中的一个package - osc rdelete <package>
RPM
Macros
%setup
-q: quiet mode
-T: disable unpacking the first source tarball
-D: disable deleting the first source directory
-n: specify the name of the tarball and its directory
-b <n>: unpack %{S:n} before entering the first source directory
-a <n>: unpack %{S:n} after entering the first source directory
Command Line Options
列出一个package的文件列表
- rpm -ql $PACKAGE_NAME
查询一个package的dependency
- rpm -qR $PACKAGE_NAME
给一个文件(夹),查询它属于哪个package
- rpm -qf $FILE_NAME