Can we please move the OS-specific logic out of this file, and keep it all in the .spec file? This would respect POLA a lot more... And avoid nasty debugging in the future, I think.