Fix build when qreal is set to float

[rpm] Fix build when qreal is set to float