Rpm spec

Simple RPM spec to construct a RPM out of kafkacat. It requires the RPMP provided in librdkafka. For future reference for RPM builders, this is the trick to build a tar.gz

git archive --format=tar.gz --prefix=kafkacat-1.1.0/ 1.1.0 > ~/kafkacat-1.1.0.tar.gz
I can't, in my case it's extremely important that we tee ONLY if the message was successfully sent. We're using this feature to 'commit' which offset of a file was sent. We've been running this on many machines that outputs 5k/sec or 8-9mb/sec events and didn't encounter and error.

If we truly want to fix this, we could either double copy when Tee is used or remove the specialized branch when Tee is used.