当前位置:  技术问答>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
   ................省略...............

怎么才能使安装后,安装目录只包含可执行文件?

|
不懂,没操作过。用checkinstall简单打过包

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Redhat/Centos下rpmbuild命令从spec文件或者tar包建立rpm
  • rpmbuild命令到哪里找啊??
  • 关于rpmbuild中的.spec文件


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3