fix builddir != srcdir
fix usage of %attr in specfile