Merge "Split rs.spec into generic and native-specific functions." into jb-mr2-dev