initial port from Fedora SRPM