rpmbuild, how to specify a different source and destination path for files

I'd like to specify a different build and deployment path for files, by default the same path is used for both build and install, I wasn't able to find a way to make these different. With Solaris pkgadd, one can specify different paths in prototype, so I would assume something like that is possible with RPM. I have a directory of files on my build box at pathA (/source/path/on/build/box) ,and would like to install these on pathB (/install/box/path).

my files section:

%files subpackagetest
%defattr(0644,%{_package_owner},%{_package_owner},0755)

Thanks for any thoughts