Clean up spec file.

Include missing psm_am.h header in dist tarball.
Don't define %{buildroot}: this is only needed on RPM <= 4.6.
Use bz2 tarball.
Fix other minor rpmlint errors (currently only a few on RHEL7, RHEL6.4).

Allow --with options to be specified on rpmbuild command line like:

rpmbuild --with valgrind -ba ...  # build with valgrind
rpmbuild --without dlopen -ba ... # build without dlopen -ldl

Allow RPM installation under specified prefix (works like DESTDIR):

rpm --prefix=$HOME/local -ivh ...

Signed-off-by: pmmccorm <patrick.m.mccormick@intel.com>
man: clarification when both cntr and CQ attached

When both counter and CQ are attached to the endpoint it
makes sense to just update the counter on success and
generate completion entries for errors.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Merge pull request #338 from pmmccorm/rpm

Clean up spec file.
prov/psm: remove FI_EP_MSG from supported ep types

Originally there was a type FID_MSG for reliable message based
transport, which was similar to RDM and was marked as one of the
supported types of the PSM provider. Later the transport types
were redefined. The new type FI_EP_MSG, although named similarly,
has totally different meaning (it means RC).

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge pull request #414 from sayantansur/pr-cntr-cq

man: clarification when both cntr and CQ attached
Updated nroff-generated man pages
man: Update fabric.7 to reference CQ

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
man/cq: Document completion flags

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #415 from j-xiong/master

prov/psm: remove FI_EP_MSG from supported ep types
Merge pull request #416 from shefty/master

Updates to CQ documentation
Updated nroff-generated man pages
prov/psm: fix the return value of fi_av_insert

The function should return the number of addresses resolved.
Addresses that have failed to resolve are indicated by the value
FI_ADDR_NOTAVAIL in the result fi_addr array. Negative error code
is returned when errors other than "failed address resolution"
have happened.

This fixes bug #413.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Fix up small type-os.
Merge pull request #419 from sungeunchoi/man-page-edits

Fix up small type-os.
Merge pull request #420 from j-xiong/master

prov/psm: fix the return value of fi_av_insert
Updated nroff-generated man pages