2016-10-31 14:47:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package libpsm2
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
#The tarball is generated using
|
|
|
|
# git clone https://github.com/01org/opa-psm2
|
|
|
|
# cd opa-psm2
|
|
|
|
# git checkout 85c07c656198204c4056e1984779fde98b00ba39
|
|
|
|
# make dist
|
|
|
|
|
|
|
|
%define psm_so 2
|
|
|
|
Name: libpsm2
|
2017-03-09 09:15:44 +01:00
|
|
|
Version: 10.3.2
|
2016-10-31 14:47:12 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Intel PSM Libraries
|
|
|
|
License: BSD-2-Clause or GPL-2.0
|
|
|
|
Group: Development/Libraries
|
2016-12-06 17:38:19 +01:00
|
|
|
Url: https://github.com/01org/opa-psm2/
|
2016-10-31 14:47:12 +01:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2016-12-06 17:38:19 +01:00
|
|
|
Source1: libpsm2.changelog
|
2016-10-31 14:47:12 +01:00
|
|
|
Patch2: libpsm2-use_RPM_OPT_FLAGS.patch
|
2016-12-06 17:38:19 +01:00
|
|
|
Patch3: libpsm2-use-exported-variable-for-version-and-release.patch
|
2016-10-31 14:47:12 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: udev
|
|
|
|
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}
|
|
|
|
Summary: Runtime PSM library
|
|
|
|
Group: System/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Development files for Intel PSM
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-%{psm_so} = %{version}
|
|
|
|
Requires: libuuid-devel
|
|
|
|
Conflicts: opa-devel
|
|
|
|
|
|
|
|
%package compat
|
|
|
|
Summary: Development files for Intel PSM
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-%{psm_so} = %{version}
|
|
|
|
#Obsoletes: hfi-psm-compat
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for the libpsm2 library
|
|
|
|
|
|
|
|
%description compat
|
|
|
|
Support for MPIs linked with PSM versions < 2
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch2
|
2017-03-06 09:35:11 +01:00
|
|
|
%patch3 -p1
|
|
|
|
|
2016-12-06 17:38:19 +01:00
|
|
|
cp %{S:1} ChangeLog
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
export RPM_OPT_FLAGS
|
|
|
|
export VERSION=${Version} RELEASE=${Release}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
export DESTDIR=%{buildroot}
|
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
mkdir -p -m 0755 -p %{buildroot}/%{_libdir}/psm2
|
|
|
|
install -m0644 %{buildroot}/%{_libdir}/psm2-compat/libpsm_infinipath.so.1 %{buildroot}/%{_libdir}/psm2/libpsm_infinipath.so.1
|
|
|
|
# removing file to get rid of rpm errors
|
|
|
|
rm %{buildroot}/%{_libdir}/psm2-compat/libpsm_infinipath.so.1
|
2016-12-06 17:38:19 +01:00
|
|
|
rm %{buildroot}/%{_libexecdir}/%name/libpsm2-compat.cmds
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%post -n %{name}-%{psm_so} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}-%{psm_so} -p /sbin/ldconfig
|
|
|
|
%post devel -p /sbin/ldconfig
|
|
|
|
%postun devel -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}-%{psm_so}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpsm2.so.*
|
|
|
|
%{_udevrulesdir}/40-psm.rules
|
2016-12-06 17:38:19 +01:00
|
|
|
%doc COPYING README ChangeLog
|
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/
|
|
|
|
%dir %{_includedir}/hfi1diag/ptl_ips/
|
|
|
|
|
|
|
|
%{_includedir}/hfi1diag/ptl_ips/ipserror.h
|
|
|
|
%{_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
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
%files compat
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_libdir}/psm2/
|
|
|
|
%dir %{_sysconfdir}/modprobe.d
|
|
|
|
|
|
|
|
%{_libdir}/psm2/libpsm_infinipath.so.*
|
|
|
|
%{_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
|