Add target logic, fix rpm bug
Merge pull request #2 from stagrlee/master

target