opa-psm2/libpsm2.spec
lyn1001 0aad106fc0 Add D_FORTIFY_SOURCE compile option
(cherry picked from commit 8fa31860176771a0c3ad63d1ed34901724fec41b)
2023-09-04 18:25:00 +08:00

106 lines
3.0 KiB
RPMSpec

Name: libpsm2
Version: 10.3.58
Release: 11
Summary: Intel PSM Libraries
License: BSD or GPLv2
URL: https://github.com/01org/opa-psm2/
Source0: https://github.com/intel/opa-psm2/archive/PSM2_10.3.58.tar.gz
#extend fdesc array
Patch0: 0000-extend-fdesc-array.patch
Patch1: fix-stringop-truncation-build-error.patch
Patch2: Fix-opa-psm2-gcc10.patch
Patch3: Fix-missing-extern.patch
Patch4: Fix-opa-psm2-gcc12-ips_cmpxchg-remove-compile-breaking-bad.patch
Patch5: Add-D_FORTIFY_SOURCE-compile-option.patch
ExclusiveArch: x86_64
BuildRequires: libuuid-devel numactl-devel gcc systemd-udev
Obsoletes: hfi1-psm < 1.0.0
%package devel
Summary: Development files for Intel PSM
Requires: libpsm2 = %{version}-%{release} libuuid-devel
%package compat
Summary: Compat library for Intel PSM
Requires: libpsm2 = %{version}-%{release} systemd-udev
%global _privatelibs libpsm_infinipath[.]so[.]1.*
%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$
%description
The PSM Messaging API, or PSM API, is the low-level user-level communications interface for the Intel OPA
family of products. PSM users are enabled with mechanisms necessary to implement higher level communications
interfaces in parallel environments. The PSM2 library supports a number of fabric media and stack.
%description devel
Development package for the Intel PSM library
%description compat
Support for MPIs linked with PSM versions less than 2
%prep
%autosetup -n opa-psm2-PSM2_10.3.58 -p1
%build
%make_build
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.a
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%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
%{_libdir}/psm2-compat
%{_udevrulesdir}/40-psm-compat.rules
%{_prefix}/lib/libpsm2
%{_sysconfdir}/modprobe.d/libpsm2-compat.conf
%changelog
* Mon Sep 4 2023 liyanan <thistleslyn@163.com> - 10.3.58-11
- Add D_FORTIFY_SOURC compile option to solve self-compilation failure problem
* Fri Jul 14 2023 yaoxin <yao_xin001@hoperun.com> - 10.3.58-10
- Fix complication failed due to gcc update to 12.3.1
* Fri Aug 06 2021 wangyong <wangyong187@huawei.com> - 10.3.58-9
- Fix downstream missing lib problem
* Mon Aug 02 2021 wangyong <wangyong187@huawei.com> - 10.3.58-8
- Fix build error caused by GCC upgrade to GCC-10
* Wed Jun 16 2021 wulei <wulei80@huawei.com> - 10.3.58-7
- Fix build error
* Thu Jul 02 2020 senlin <xiasenlin1@huawei.com> - 10.3.58-6
- Fix stringop-truncation build error
* Tue Mar 17 2020 yanglijin<yanglijin@huawei.com> - 10.3.58-5
- fix provides
* Mon Mar 16 2020 gulining<gulining1@huawei.com> - 10.3.58-4
- fix install error with wrong release
* Wed Mar 4 2020 zhangtao <zhangtao221@huawei.com> - 10.3.58-3
- Package init