开发者

Can rpmbuild ignore files in buildroot?

I have a target directory t开发者_如何学JAVAhat is checked into svn. I use the target as the --buildroot when I run rpmbuild. This causes rpmbuild to loose it mind because of the .svn directories in each directory. Is there a way to tell rpmbuild to relax?

I looked at svn export target target-build, but it only knows about files tracked by rpm. Perhaps not a bad way to do it, but I'm not quite sure that is the best way.


What you can do is build the filelist during the install stage in rpm spec (ignoring the files you need to ignore), then use this file list in the %files section instead of just specifying the whole directory.

You can find a sample of this in the stock RedHat/CentOS php rpm - the part where php extensions are built.


You should not have overridden buildroot in the first place. Recent versions of rpm can automatically clean (i.e. do rm -rf) buildroot during rpm build process.

If nothing else you risk losing your work. And no, whatever rpm finds in buildroot it assumes it was put there during build and should be installed (i.e. something was forgotten in %install section).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜