hue
hue

Reputation: 1779

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-object/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.

Upvotes: 3

Views: 4706

Answers (1)

glglgl
glglgl

Reputation: 91017

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.

Upvotes: 3

Related Questions