juhp/cabal-rpm — pull request #5 by yaccz (2014-06-05 12:45:12+00:00)
Title: Add OS detection

where
detectOS is being strict as -> Maybe OS

detectOSFallback is -> OS which falls back to Fedora and prints
a warning message to stderr if the detection fails and fallback
is performed

new command detect-os is provided for inspection

tested on openSUSE 13.1, Fedora 20 and Gentoo