Added packaged files and binary to RPM spec
Merge branch 'master' of https://github.com/tristianc/libzmq
Added militant API checking on zmq_getsockopt
Problem: when libgssapi isn't available, GSSAPI options 'seem' to work

Solution: use same approach as for libsodium/CURVE, i.e. return EINVAL
if the library isn't present when libzmq builds, and the application
still tries to use these options in zmq_getsockopt/setsockopt.
Problem: need way to probe library capabilities

As libzmq is compiled with optional transports and security mechanisms,
there is no clean way for applications to determine what capabilities
are actually available in a given libzmq instance.

Solution: provide an API specifically for capability reporting. The
zmq_has () method is meant to be open ended. It accepts a string so
that we can add arbitrary capabilities without breaking existing
applications.

zmq.h also defines ZMQ_HAS_CAPABILITIES when this method is provided.
Trivial whitespace fixup
Fixed compile error if Kerberos installed
Merge pull request #1101 from hurtonm/master

Fix memory leak in socks connecter
Fix windows build
Merge pull request #1097 from hintjens/master

Added capabilities API
Merge pull request #1104 from tristianc/master

Updated spec file for libzmq 4.0.4
Merge pull request #1103 from ricnewton/master

Fix windows build
Fixed typo in doc example
Merge pull request #1105 from hintjens/master

Fixed typo in doc example
Problem: zmq_connect() does not validate TCP addresses

Since https://github.com/zeromq/libzmq/commit/350a1a, TCP addresses
get resolved asynchronously, so zmq_connect no longer returned an
error on incorrect addresses.

This is troublesome since we rely on some error checking to catch
blatant errors.

Solution add some upfront syntax checking that catches at least the
obvious kinds of errors (invalid characters, wrong or missing port
number).
Problem: tcp_address.cpp allowed [ and ] around address

This syntax is undocumented and has no known meaning. It was in libzmq
since 3.x.

Solution: remove this code.
Merge pull request #1106 from hintjens/master

Problem: zmq_connect() does not validate TCP addresses
Allow change of pthread priority

Rationale: In a real-time environment it is sometime mandatory to tune
threads priority and scheduling policy. This is required by our users
who mixes real-time and server threads within
the same process. It's not planned to support this on non-pthread
platforms (e.g. Windows).
Merge pull request #1107 from jlauenercern/master

Allow change of pthread priority
Code cleanups