Fix and improve RPM packaging