[rpm] using statefs macros

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>