当前位置: 技术问答>linux和unix
rpmbuild 打包的问题?
来源: 互联网 发布时间:2016-10-19
本文导语: 使用rpmbuild -bb 成功打包,但是安装rpm包时安装目录里面有源码,怎么去掉包含的源码? 我在%files段这样编写的: %files /usr/local/%{name}-%{version}/ 我将%files段只描写编译出的可执行文件就会报错: %files /usr/local/%{name}-%...
使用rpmbuild -bb 成功打包,但是安装rpm包时安装目录里面有源码,怎么去掉包含的源码?
我在%files段这样编写的:
%files
/usr/local/%{name}-%{version}/
我将%files段只描写编译出的可执行文件就会报错:
%files
/usr/local/%{name}-%{version}/CLIS
错误信息:
error: Installed (but unpackaged) file(s) found:
/usr/local/CLI-0.1/CAuthorisation.cpp
/usr/local/CLI-0.1/CSerialConsole.cpp
/usr/local/CLI-0.1/CSession.cpp
/usr/local/CLI-0.1/CmdBase.cpp
/usr/local/CLI-0.1/CmdCD.cpp
/usr/local/CLI-0.1/CmdCreate.cpp
/usr/local/CLI-0.1/CmdDelete.cpp
/usr/local/CLI-0.1/CmdDump.cpp
/usr/local/CLI-0.1/CmdExit.cpp
/usr/local/CLI-0.1/CmdHelp.cpp
................省略...............
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/local/CLI-0.1/CAuthorisation.cpp
/usr/local/CLI-0.1/CSerialConsole.cpp
/usr/local/CLI-0.1/CSession.cpp
/usr/local/CLI-0.1/CmdBase.cpp
/usr/local/CLI-0.1/CmdCD.cpp
/usr/local/CLI-0.1/CmdCreate.cpp
/usr/local/CLI-0.1/CmdDelete.cpp
/usr/local/CLI-0.1/CmdDump.cpp
/usr/local/CLI-0.1/CmdExit.cpp
/usr/local/CLI-0.1/CmdHelp.cpp
/usr/local/CLI-0.1/CmdLoad.cpp
/usr/local/CLI-0.1/CmdParser.cpp
/usr/local/CLI-0.1/CmdReset.cpp
/usr/local/CLI-0.1/CmdSet.cpp
................省略...............
怎么才能使安装后,安装目录只包含可执行文件?
我在%files段这样编写的:
%files
/usr/local/%{name}-%{version}/
我将%files段只描写编译出的可执行文件就会报错:
%files
/usr/local/%{name}-%{version}/CLIS
错误信息:
error: Installed (but unpackaged) file(s) found:
/usr/local/CLI-0.1/CAuthorisation.cpp
/usr/local/CLI-0.1/CSerialConsole.cpp
/usr/local/CLI-0.1/CSession.cpp
/usr/local/CLI-0.1/CmdBase.cpp
/usr/local/CLI-0.1/CmdCD.cpp
/usr/local/CLI-0.1/CmdCreate.cpp
/usr/local/CLI-0.1/CmdDelete.cpp
/usr/local/CLI-0.1/CmdDump.cpp
/usr/local/CLI-0.1/CmdExit.cpp
/usr/local/CLI-0.1/CmdHelp.cpp
................省略...............
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/local/CLI-0.1/CAuthorisation.cpp
/usr/local/CLI-0.1/CSerialConsole.cpp
/usr/local/CLI-0.1/CSession.cpp
/usr/local/CLI-0.1/CmdBase.cpp
/usr/local/CLI-0.1/CmdCD.cpp
/usr/local/CLI-0.1/CmdCreate.cpp
/usr/local/CLI-0.1/CmdDelete.cpp
/usr/local/CLI-0.1/CmdDump.cpp
/usr/local/CLI-0.1/CmdExit.cpp
/usr/local/CLI-0.1/CmdHelp.cpp
/usr/local/CLI-0.1/CmdLoad.cpp
/usr/local/CLI-0.1/CmdParser.cpp
/usr/local/CLI-0.1/CmdReset.cpp
/usr/local/CLI-0.1/CmdSet.cpp
................省略...............
怎么才能使安装后,安装目录只包含可执行文件?
|
不懂,没操作过。用checkinstall简单打过包