add a line  "BuildRoot" to packetbeat.spec

add a line  " BuildRoot: %{_tmppath}/%{name}"  to fix rpm build errs on some systems ;please see here for detail:  http://stackoverflow.com/questions/1879734/rpm-build-error