[caldav] Add rpm spec file

This commit adds an rpm spec to allow building the package.
It also supports building the plugin in either out-of-process mode
or in-process (legacy client library) mode, depending on a qmake
define.