Use dash-compatible script syntax
Implemented RPM build rules