tags:

views:

119

answers:

1

I have a target directory that 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.

+1  A: 

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.

m1tk4
But that still requires that any files left over are not in the buildroot. I will take a look at the php rpm for some enlightenment.
Noah Campbell