Added scripts for OBS packaging + fix for ticket #340 + misc