Summary: Intel PSM Libraries
Name: libpsm2
Version: 10.2.33
Release: 1%{?dist}
License: GPLv2 or BSD
URL: https://github.com/01org/opa-psm2
# Source tarball obtained by:
# git clone https://github.com/01org/opa-psm2
# cd opa-psm2
# git checkout 10.2
# git archive --prefix=libpsm2-10.2.33/ --format=tar 855c3871d57239904f993166dd65bf0e1c12b9f4 | gzip > libpsm2-10.2.33.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildRequires: kernel-headers >= 3.10.0-455
BuildRequires: gcc
BuildRequires: libuuid-devel
BuildRequires: pkgconfig(udev)
# OPA HFI is Intel's thing
ExclusiveArch: x86_64
%description
The PSM Messaging API, or PSM API, is Intel's low-level
user-level communications interface for the Intel(R) OPA
family of products. PSM users are enabled with mechanisms
necessary to implement higher level communications
interfaces in parallel environments.
%package devel
Summary: Development files for Intel PSM
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: libuuid-devel
%description devel
Development files for the libpsm2 library
%package compat
Summary: Support for MPIs linked with PSM1
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description compat
Support for MPIs linked with PSM1.
The compat library is installed in a non-standard directory to avoid
conflicting with infinipath-psm. To use it, set:
LD_LIBRARY_PATH=%{_libdir}/psm2-compat
%prep
%setup -q
%build
CFLAGS="%{optflags}" make %{?_smp_mflags}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README
%license COPYING
%{_libdir}/libpsm2.so.2.1
%{_libdir}/libpsm2.so.2
%{_udevrulesdir}/40-psm.rules
%files devel
%{_libdir}/libpsm2.so
%{_includedir}/psm2.h
%{_includedir}/psm2_mq.h
%{_includedir}/psm2_am.h
%{_includedir}/hfi1diag
%files compat
%{_udevrulesdir}/40-psm-compat.rules
%{_libdir}/psm2-compat
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
%{_prefix}/lib/libpsm2
%changelog
* Fri Aug 5 2016 Honggang Li <honli@redhat.com> - 10.2.33-1
- Rebase to upstream latest release 10.2.33.
- Related: bz1273155
* Thu Jun 30 2016 Honggang Li <honli@redhat.com> - 10.2.23-1
- Rebase to upstream latest release 10.2.23.
- Related: bz1273155
* Mon May 30 2016 Honggang Li <honli@redhat.com> - 10.2.1-1
- Rebase to upstream latest release 10.2.1.
- Related: bz1273155
* Tue Sep 01 2015 Michal Schmidt <mschmidt@redhat.com> - 0.7-4
- Prevent executable stack.
- Related: bz1173296
* Wed Aug 19 2015 Michal Schmidt <mschmidt@redhat.com> - 0.7-3
- Move the compat lib to /usr/lib64/psm2, drop Conflict with infinipath-psm.
* Tue Aug 18 2015 Michal Schmidt <mschmidt@redhat.com> - 0.7-2
- Conflict with rather than Obsolete infinipath-psm.
* Wed Aug 12 2015 Michal Schmidt <mschmidt@redhat.com> - 0.7-1
- Initial packaging for RHEL, based on upstream spec.