Blame SPECS/libpsm2.spec

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