Split rs.spec into generic and native-specific functions.

Change-Id: I14afc06a1ebfc94b20498c5e627c63e3cf0e4fbe
3 files changed