Modified all /lib by the variable {%_lib} for installing files on the right place needed by the differents architectures.
Deleted duplicated lines.
Added an if statement for building the package from tar.gz file (and without svn for taking the revision number).