2016-10-31 14:47:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package libpsm2
|
|
|
|
#
|
2021-09-06 16:36:37 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-10-31 14:47:12 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-04 09:18:21 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-31 14:47:12 +01:00
|
|
|
#
|
2017-03-29 13:56:52 +02:00
|
|
|
|
2016-10-31 14:47:12 +01:00
|
|
|
|
2017-09-05 20:00:15 +02:00
|
|
|
%define git_ver %{nil}
|
|
|
|
|
2016-10-31 14:47:12 +01:00
|
|
|
%define psm_so 2
|
|
|
|
Name: libpsm2
|
2021-09-06 16:36:37 +02:00
|
|
|
Version: 11.2.203
|
2016-10-31 14:47:12 +01:00
|
|
|
Release: 0
|
2017-03-14 07:26:49 +01:00
|
|
|
Summary: Intel PSM Messaging API libraries
|
2018-10-25 12:48:45 +02:00
|
|
|
License: BSD-2-Clause OR GPL-2.0-only
|
2017-03-14 07:26:49 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-09-06 16:36:37 +02:00
|
|
|
URL: https://github.com/cornelisnetworks/opa-psm2/
|
2017-09-05 20:00:15 +02:00
|
|
|
Source0: %{name}-%{version}%{git_ver}.tar.bz2
|
2016-12-06 17:38:19 +01:00
|
|
|
Source1: libpsm2.changelog
|
2017-06-30 10:06:38 +02:00
|
|
|
Source2: libpsm2-rpmlintrc
|
2016-10-31 14:47:12 +01:00
|
|
|
Patch2: libpsm2-use_RPM_OPT_FLAGS.patch
|
2017-03-29 13:56:52 +02:00
|
|
|
Patch3: libpsm2-use-exported-variable-for-version-and-release.patch
|
2017-08-12 11:58:39 +02:00
|
|
|
BuildRequires: libnuma-devel
|
2016-10-31 14:47:12 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pkg-config
|
2017-07-07 14:03:30 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2016-10-31 14:47:12 +01:00
|
|
|
Conflicts: opa-libs
|
|
|
|
Obsoletes: hfi-psm
|
|
|
|
Obsoletes: hfi-psm-debuginfo
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#Currently *only* builds on x86_64
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
%description
|
|
|
|
The PSM Messaging API, or PSM API, is Intel's low-level
|
|
|
|
user-level communications interface for the Truescale
|
|
|
|
family of products. PSM users are enabled with mechanisms
|
|
|
|
necessary to implement higher level communications
|
|
|
|
interfaces in parallel environments.
|
|
|
|
|
|
|
|
%package -n %{name}-%{psm_so}
|
2017-03-14 07:26:49 +01:00
|
|
|
Summary: Intel PSM Messaging API library
|
2016-10-31 14:47:12 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-19 13:11:35 +02:00
|
|
|
Provides: %{name} = %{version}
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%description -n %{name}-%{psm_so}
|
|
|
|
libpsm2 provides PSM Messaging API, or PSM API, is Intel's low-level
|
|
|
|
user-level communications interface for the Truescale
|
|
|
|
family of products. This package contains the runtime library.
|
|
|
|
|
|
|
|
%package devel
|
2017-03-14 07:26:49 +01:00
|
|
|
Summary: Development files for the Intel PSM Messaging API
|
2016-10-31 14:47:12 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-%{psm_so} = %{version}
|
|
|
|
Requires: libuuid-devel
|
|
|
|
Conflicts: opa-devel
|
|
|
|
|
|
|
|
%package compat
|
2017-03-29 13:56:52 +02:00
|
|
|
Summary: Compatibility library providing the old PSM API/ABI
|
2017-03-14 07:26:49 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-10-31 14:47:12 +01:00
|
|
|
Requires: %{name}-%{psm_so} = %{version}
|
2017-06-30 10:06:38 +02:00
|
|
|
Conflicts: libpsm_infinipath1
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%description devel
|
2017-03-14 07:26:49 +01:00
|
|
|
Development files for the libpsm2 library.
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%description compat
|
2017-03-14 07:26:49 +01:00
|
|
|
Support for MPIs linked with PSM versions < 2.
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%prep
|
2017-09-05 20:00:15 +02:00
|
|
|
%setup -q -n %{name}-%{version}%{git_ver}
|
2016-10-31 14:47:12 +01:00
|
|
|
%patch2
|
2017-11-21 10:16:22 +01:00
|
|
|
%patch3
|
2017-03-06 09:35:11 +01:00
|
|
|
|
2016-12-06 17:38:19 +01:00
|
|
|
cp %{S:1} ChangeLog
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%build
|
2020-04-27 21:31:24 +02:00
|
|
|
%global optflags %{optflags} -fcommon
|
2016-10-31 14:47:12 +01:00
|
|
|
export RPM_OPT_FLAGS
|
|
|
|
export VERSION=${Version} RELEASE=${Release}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
export DESTDIR=%{buildroot}
|
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2020-06-07 15:29:59 +02:00
|
|
|
install -m0644 %{buildroot}%{_libdir}/psm2-compat/libpsm_infinipath.so.1 %{buildroot}%{_libdir}/libpsm_infinipath.so.1
|
2016-10-31 14:47:12 +01:00
|
|
|
# removing file to get rid of rpm errors
|
2020-06-07 15:29:59 +02:00
|
|
|
rm %{buildroot}%{_libdir}/psm2-compat/libpsm_infinipath.so.1
|
|
|
|
rm %{buildroot}/usr/lib/%name/libpsm2-compat.cmds
|
2017-12-08 09:53:30 +01:00
|
|
|
# remove static library
|
2020-06-07 15:29:59 +02:00
|
|
|
rm %{buildroot}%{_libdir}/libpsm2.a
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%post -n %{name}-%{psm_so} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}-%{psm_so} -p /sbin/ldconfig
|
2017-06-30 10:06:38 +02:00
|
|
|
%post compat -p /sbin/ldconfig
|
|
|
|
%postun compat -p /sbin/ldconfig
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%files -n %{name}-%{psm_so}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpsm2.so.*
|
|
|
|
%{_udevrulesdir}/40-psm.rules
|
2019-10-04 09:18:21 +02:00
|
|
|
%doc README ChangeLog
|
|
|
|
%license COPYING
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpsm2.so
|
|
|
|
%{_includedir}/psm2.h
|
|
|
|
%{_includedir}/psm2_mq.h
|
|
|
|
%{_includedir}/psm2_am.h
|
|
|
|
|
|
|
|
# The following files were part of the devel-noship and moved to devel:
|
|
|
|
%dir %{_includedir}/hfi1diag/
|
|
|
|
%dir %{_includedir}/hfi1diag/linux-x86_64/
|
|
|
|
%{_includedir}/hfi1diag/linux-x86_64/bit_ops.h
|
|
|
|
%{_includedir}/hfi1diag/linux-x86_64/sysdep.h
|
2016-12-06 17:38:19 +01:00
|
|
|
%_includedir/hfi1diag/hfi1_deprecated.h
|
2016-10-31 14:47:12 +01:00
|
|
|
%{_includedir}/hfi1diag/opa_udebug.h
|
|
|
|
%{_includedir}/hfi1diag/opa_debug.h
|
|
|
|
%{_includedir}/hfi1diag/opa_intf.h
|
|
|
|
%{_includedir}/hfi1diag/opa_user.h
|
|
|
|
%{_includedir}/hfi1diag/opa_service.h
|
|
|
|
%{_includedir}/hfi1diag/opa_common.h
|
|
|
|
%{_includedir}/hfi1diag/opa_byteorder.h
|
2017-03-06 14:26:08 +01:00
|
|
|
%{_includedir}/hfi1diag/opa_revision.h
|
|
|
|
%{_includedir}/hfi1diag/psm2_mock_testing.h
|
2017-03-09 10:05:58 +01:00
|
|
|
%{_includedir}/hfi1diag/psmi_wrappers.h
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%files compat
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_sysconfdir}/modprobe.d
|
|
|
|
|
2017-06-30 10:06:38 +02:00
|
|
|
%{_libdir}/libpsm_infinipath.so.*
|
2016-10-31 14:47:12 +01:00
|
|
|
%{_udevrulesdir}/40-psm-compat.rules
|
2016-12-06 17:38:19 +01:00
|
|
|
%config %{_sysconfdir}/modprobe.d/libpsm2-compat.conf
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%changelog
|