Add .gitattributes to specify line-ending style for certain files

To avoid strange errors when using the git version on Windows, add a .gitattributes file to explicitly specify that *.spec and *.sh should always have LF line-ending style.