Add an rpm spec file.

Signed-off-by: Peter Jones <pjones@redhat.com>
Give open a mode if we give it O_CREAT

Signed-off-by: Peter Jones <pjones@redhat.com>
Bump version to 0.4

Signed-off-by: Peter Jones <pjones@redhat.com>