babf19f
#
babf19f
#  This file is provided under a dual BSD/GPLv2 license.  When using or
babf19f
#  redistributing this file, you may do so under either license.
babf19f
#
babf19f
#  GPL LICENSE SUMMARY
babf19f
#
babf19f
#  Copyright(c) 2015 Intel Corporation.
babf19f
#
babf19f
#  This program is free software; you can redistribute it and/or modify
babf19f
#  it under the terms of version 2 of the GNU General Public License as
babf19f
#  published by the Free Software Foundation.
babf19f
#
babf19f
#  This program is distributed in the hope that it will be useful, but
babf19f
#  WITHOUT ANY WARRANTY; without even the implied warranty of
babf19f
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
babf19f
#  General Public License for more details.
babf19f
#
babf19f
#  Contact Information:
babf19f
#  Intel Corporation, www.intel.com
babf19f
#
babf19f
#  BSD LICENSE
babf19f
#
babf19f
#  Copyright(c) 2015 Intel Corporation.
babf19f
#
babf19f
#  Redistribution and use in source and binary forms, with or without
babf19f
#  modification, are permitted provided that the following conditions
babf19f
#  are met:
babf19f
#
babf19f
#    * Redistributions of source code must retain the above copyright
babf19f
#      notice, this list of conditions and the following disclaimer.
babf19f
#    * Redistributions in binary form must reproduce the above copyright
babf19f
#      notice, this list of conditions and the following disclaimer in
babf19f
#      the documentation and/or other materials provided with the
babf19f
#      distribution.
babf19f
#    * Neither the name of Intel Corporation nor the names of its
babf19f
#      contributors may be used to endorse or promote products derived
babf19f
#      from this software without specific prior written permission.
babf19f
#
babf19f
#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
babf19f
#  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
babf19f
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
babf19f
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
babf19f
#  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
babf19f
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
babf19f
#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
babf19f
#  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
babf19f
#  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
babf19f
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
babf19f
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
babf19f
#
babf19f
# Copyright (c) 2014-2015 Intel Corporation. All rights reserved.
babf19f
#
babf19f
Summary: Intel PSM Libraries
babf19f
Name: libpsm2
3e7516c
Version: 11.2.86
d27398a
Release: 7%{?dist}
babf19f
License: BSD or GPLv2
babf19f
URL: https://github.com/01org/opa-psm2/
babf19f
babf19f
# The tarball can be created by:
babf19f
# git clone https://github.com/01org/opa-psm2
babf19f
# cd opa-psm2
3e7516c
# git checkout 4f0ad8cf4d6b44fcce5f745e946a056659ba54c0
babf19f
# make dist
babf19f
Source0: %{name}-%{version}.tar.gz
74f12e1
Patch0: 0001-Fix-multiple-definition-issues.patch
7883f31
Patch1: makefile-distro-from-environment.patch
d27398a
Patch2: %{name}-gcc11.patch
babf19f
babf19f
# The OPA product is supported on x86 64 only:
babf19f
ExclusiveArch: x86_64
babf19f
BuildRequires: libuuid-devel
a849b8c
BuildRequires: numactl-devel
babf19f
BuildRequires: systemd
babf19f
BuildRequires: gcc
97e51e7
BuildRequires: make
babf19f
Obsoletes: hfi1-psm < 1.0.0
babf19f
babf19f
%package devel
babf19f
Summary: Development files for Intel PSM
babf19f
Requires: %{name}%{?_isa} = %{version}-%{release}
babf19f
Requires: libuuid-devel
babf19f
babf19f
%package compat
babf19f
Summary: Compat library for Intel PSM
babf19f
Requires: %{name}%{?_isa} = %{version}-%{release}
babf19f
Requires: systemd-udev
babf19f
f35f893
%global _privatelibs libpsm_infinipath[.]so[.]1.*
f35f893
%global __provides_exclude ^(%{_privatelibs})$
f35f893
%global __requires_exclude ^(%{_privatelibs})$
f35f893
babf19f
%description
babf19f
The PSM Messaging API, or PSM API, is the low-level
57654b2
user-level communications interface for the Intel OPA
babf19f
family of products. PSM users are enabled with mechanisms
babf19f
necessary to implement higher level communications
babf19f
interfaces in parallel environments.
babf19f
babf19f
%description devel
babf19f
Development files for the Intel PSM library
babf19f
babf19f
%description compat
babf19f
Support for MPIs linked with PSM versions < 2
babf19f
babf19f
%prep
57654b2
%setup -q
74f12e1
%patch0 -p1
7883f31
%patch1 -p1
d27398a
%patch2 -p1
babf19f
babf19f
%build
3fdde10
%{set_build_flags}
3170cbf
%{make_build}
babf19f
babf19f
%install
7883f31
%if 0%{?fedora}
7883f31
export DISTRO=fedora
7883f31
%endif
7883f31
%if 0%{?rhel}
7883f31
export DISTRO=rhel
7883f31
%endif
babf19f
%make_install
2118803
rm -f %{buildroot}%{_libdir}/*.a
babf19f
ac8f79f
%ldconfig_scriptlets
babf19f
babf19f
%files
babf19f
%license COPYING
babf19f
%{_libdir}/libpsm2.so.2.1
babf19f
%{_libdir}/libpsm2.so.2
124b8b4
%if 0%{?rhel} >= 8
124b8b4
%{_udevrulesdir}/40-psm.rules
124b8b4
%endif
babf19f
babf19f
babf19f
%files devel
babf19f
%{_libdir}/libpsm2.so
babf19f
%{_includedir}/psm2.h
babf19f
%{_includedir}/psm2_mq.h
babf19f
%{_includedir}/psm2_am.h
babf19f
%{_includedir}/hfi1diag
babf19f
babf19f
%files compat
babf19f
%{_libdir}/psm2-compat
babf19f
%{_udevrulesdir}/40-psm-compat.rules
babf19f
%{_prefix}/lib/libpsm2
124b8b4
%if 0%{?fedora}
124b8b4
%{_prefix}/lib/modprobe.d/libpsm2-compat.conf
124b8b4
%endif
124b8b4
%if 0%{?rhel} >= 8
124b8b4
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
124b8b4
%endif
babf19f
babf19f
%changelog
d27398a
* Mon Oct 19 2020 Jeff Law <law@redhat.com> - 11.2.86-7
d27398a
- Avoid out of bounds array index diagnostic with gcc-11
d27398a
820ce82
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11.2.86-6
820ce82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
820ce82
7883f31
* Mon Jul 13 2020 Merlin Mathesius <mmathesi@redhat.com> - 11.2.86-5
7883f31
- Minor updates to enable building for ELN
7883f31
74f12e1
* Mon Feb 10 2020 Honggang Li <honli@redhat.com> - 11.2.86-4
74f12e1
- Fix FTBFS in Fedora rawhide/f32
74f12e1
- Resolves: bz1799597
74f12e1
b0d5af6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11.2.86-3
b0d5af6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b0d5af6
3170cbf
* Fri Jan 17 2020 Tom Stellard <tstellar@redhat.com> - 11.2.86-2
3170cbf
- Use make_build macro
3170cbf
3e7516c
* Thu Oct 03 2019 Honggang Li <honli@redhat.com> - 11.2.86-1
3e7516c
- Rebase to latest upstream release PSM2_11.2.86
3e7516c
- Resolves: bz1758390
3e7516c
99e21a3
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 11.2.78-3
99e21a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
99e21a3
49f35bd
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 11.2.78-2
49f35bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
49f35bd
e5b53f2
* Thu Jan 31 2019 Honggang Li <honli@redhat.com> - 11.2.78-1
e5b53f2
- Rebase to latest upstream release PSM2_11.2.77
e5b53f2
- Resolves: bz1671190
e5b53f2
f6ed31e
* Mon Oct  8 2018 Honggang Li <honli@redhat.com> - 11.2.23-1
f6ed31e
- Rebase to latest upstream release 11.2.23
f6ed31e
- Resolves: bz1637273
f6ed31e
0aba77d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.3.58-2
0aba77d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0aba77d
2118803
* Fri Jun 22 2018 Honggang Li <honli@redhat.com> - 10.3.58-1
2118803
- Rebase to latest upstream release 10.3.58.
2118803
- Resolves: bz1594073
2118803
3fdde10
* Thu Mar 15 2018 - 10.3.8-5
3fdde10
- Fix partial injection of Fedora build flags.
3fdde10
- Double the sizeof array fdesc to fix a gcc compiling issue.
3fdde10
- Resolves: bz1556062
3fdde10
babfb41
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.3.8-4
babfb41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
babfb41
f35f893
* Thu Jan  4 2018 Honggang Li <honli@redhat.com> - 10.3.8-3
f35f893
- Filter PSM1 library as private library
f35f893
- Resolves: bz1530979
f35f893
124b8b4
* Fri Dec 15 2017 Honggang Li <honli@redhat.com> - 10.3.8-2
124b8b4
- Minor enhancement
124b8b4
- Resolves: bz1526261
124b8b4
a849b8c
* Tue Dec 12 2017 Honggang Li <honli@redhat.com> - 10.3.8-1
a849b8c
- Rebase to latest upstream release
a849b8c
- Resolves: bz1524846
a849b8c
46bb95f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2.103_1-3
46bb95f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
46bb95f
54fb92f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2.103_1-2
54fb92f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
54fb92f
6656dd9
* Thu Apr 13 2017 Honggang Li <honli@redhat.com> - 10.2.103_1-1
6656dd9
- Rebase to latest upstream master branch.
6656dd9
- Fix build failures caught by gcc 7.x.
6656dd9
- Resolves: bz1423872
6656dd9
9fd73a7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 10.2.2-3
9fd73a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9fd73a7
57654b2
* Mon Jun 13 2016 Michal Schmidt <mschmidt@redhat.com> - 10.2.2-2
57654b2
- Remove redundant %%setup -n argument.
57654b2
- Packaging Guidelines: Never use "(R)" in description.
57654b2
8ea4ec6
* Tue Jun 07 2016 Paul Reger <paul.j.reger@intel.com> - 10.2.2-1
8ea4ec6
- Fix build failures only.
8ea4ec6
8ea4ec6
* Tue Apr 05 2016 Paul Reger <paul.j.reger@intel.com> - 10.2.1-1
babf19f
- Upstream PSM2 source code for Fedora.