added target dist, some standardization work and bugfixes to the rpm spec file