added support for RPM building

Signed-off-by: Jan Dvořák <mordae@anilinux.org>