Update the spec file with fixes for empty files

Closes rhbz#985776