开发者

rpmbuild failure: error: Installed (but unpackaged) file(s) found:

Not sure if this is the right place to post the question. I am trying to create rpm's for my project, this is the first time I am writing a spec file. When I am building the spec the file with the command

rpmbuild -ba name.spec

error: Installed (but unpackaged) file(s) found:
   etc/gluster-object/account-server/1.conf
   etc/gluster-object/cert.crt
   etc/gluster-object/cert.key
   etc/gluster-object/container-server/1.conf
   etc/gluster-object/fs.conf
   etc/gluster-object/gluster-object.conf
   etc/gluster-ob开发者_运维知识库ject/object-server/1.conf
   etc/gluster-object/proxy-server.conf

Please find the link ( http://pastie.org/2426321 ) to spec file. Any help on this is greatly appreciated. Thanks in advance.


It seems you put the files into %{_conf_dir}/gluster-object, but tell rpmbuild to include the files from %{_conf_dir}/%{_obj_dir}/*. That seems to be a difference.

%files
%defattr(-,root,root)
%{_conf_dir}/gluster-object/*

would be the way to go.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜