2016-10-19 16:34:09 +02:00
|
|
|
#
|
2017-04-05 12:20:17 +02:00
|
|
|
# spec file for package libfabric
|
2016-10-19 16:34:09 +02:00
|
|
|
#
|
2024-03-25 09:50:35 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-10-19 16:34:09 +02: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-02-22 08:38:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-19 16:34:09 +02:00
|
|
|
#
|
2017-04-05 12:20:17 +02:00
|
|
|
|
|
|
|
|
2017-05-11 20:23:17 +02:00
|
|
|
#
|
2024-04-03 17:32:26 +02:00
|
|
|
%define git_ver .0.f67fad269327
|
|
|
|
|
|
|
|
%ifarch aarch64 %power64 x86_64 s390x
|
|
|
|
%if 0%{?suse_version} > 1530
|
|
|
|
%define with_ucx 1
|
|
|
|
%endif
|
|
|
|
%define with_efa 1
|
|
|
|
%endif
|
2017-05-11 20:23:17 +02:00
|
|
|
|
2016-10-19 16:34:09 +02:00
|
|
|
Name: libfabric
|
2024-04-03 17:32:26 +02:00
|
|
|
Version: 1.21.0
|
2019-02-22 08:38:34 +01:00
|
|
|
Release: 0
|
2016-10-19 16:34:09 +02:00
|
|
|
Summary: User-space RDMA Fabric Interfaces
|
2021-02-16 10:10:48 +01:00
|
|
|
License: BSD-2-Clause OR GPL-2.0-only
|
2017-03-24 10:28:17 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-05-16 17:52:20 +02:00
|
|
|
Source: %{name}-%{version}%{git_ver}.tar.bz2
|
2016-10-19 16:34:09 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch0: libfabric-libtool.patch
|
2019-02-22 08:38:34 +01:00
|
|
|
URL: http://www.github.com/ofiwg/libfabric
|
2017-04-05 12:20:17 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libibverbs-devel
|
|
|
|
BuildRequires: libnl3-devel
|
2017-06-30 10:06:57 +02:00
|
|
|
%ifarch x86_64
|
2021-11-03 09:07:55 +01:00
|
|
|
BuildRequires: libnuma-devel
|
2017-04-05 12:20:17 +02:00
|
|
|
BuildRequires: libpsm2-devel
|
2017-06-30 10:06:57 +02:00
|
|
|
%endif
|
2017-08-10 10:57:14 +02:00
|
|
|
BuildRequires: fdupes
|
2017-04-05 12:20:17 +02:00
|
|
|
BuildRequires: librdmacm-devel
|
|
|
|
BuildRequires: libtool
|
2024-04-03 17:32:26 +02:00
|
|
|
%if 0%{?with_ucx}
|
|
|
|
BuildRequires: libucm-devel
|
|
|
|
BuildRequires: libucp-devel
|
|
|
|
# 1.10 Needed for UCS_MEMORY_TYPE_UNKNOWN
|
|
|
|
BuildRequires: libucs-devel >= 1.10
|
|
|
|
BuildRequires: libuct-devel
|
|
|
|
%endif
|
2017-04-05 12:20:17 +02:00
|
|
|
BuildRequires: pkg-config
|
2016-10-19 16:34:09 +02:00
|
|
|
%define lib_major 1
|
|
|
|
|
|
|
|
%description
|
|
|
|
libfabric provides a user-space API to access high-performance fabric
|
|
|
|
services, such as RDMA. This package only contains the fi_info binary.
|
|
|
|
|
|
|
|
%package -n libfabric%{lib_major}
|
2019-02-22 08:38:34 +01:00
|
|
|
Summary: User-space RDMA fabric interfaces
|
2017-04-05 12:20:17 +02:00
|
|
|
Group: System/Libraries
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%description -n libfabric%{lib_major}
|
|
|
|
libfabric provides a user-space API to access high-performance fabric
|
|
|
|
services, such as RDMA. This package contains the runtime library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the libfabric library
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-08-11 21:26:50 +02:00
|
|
|
Requires: libfabric%{lib_major} = %{version}
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%description devel
|
2017-08-10 10:57:14 +02:00
|
|
|
libfabric provides a user-space API to access high-performance fabric
|
|
|
|
services, such as RDMA. This package contains the development files.
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%prep
|
2024-03-05 14:40:29 +01:00
|
|
|
%autosetup -p1 -n %{name}-%{version}%{git_ver}
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-16 18:23:36 +02:00
|
|
|
rm -f config/libtool.m4
|
2016-10-19 16:34:09 +02:00
|
|
|
autoreconf -fi
|
|
|
|
# defaults: with-dlopen and without-valgrind can be over-rode:
|
|
|
|
%configure %{?_without_dlopen} %{?_with_valgrind} \
|
2017-08-10 10:57:14 +02:00
|
|
|
--enable-sockets --enable-verbs --enable-usnic \
|
2024-04-03 17:32:26 +02:00
|
|
|
%if 0%{?with_efa}
|
|
|
|
--enable-efa \
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_ucx}
|
|
|
|
--enable-ucx \
|
|
|
|
%endif
|
2017-06-30 10:06:57 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-psm2 \
|
2021-11-03 09:07:55 +01:00
|
|
|
--enable-psm3 \
|
2017-06-30 10:06:57 +02:00
|
|
|
%endif
|
2017-07-05 13:53:11 +02:00
|
|
|
--disable-static
|
2022-08-23 14:14:10 +02:00
|
|
|
%make_build
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%install
|
2019-02-22 08:38:34 +01:00
|
|
|
%make_install
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
# remove unpackaged files from the buildroot
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2017-08-10 10:57:14 +02:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%post -n libfabric%{lib_major} -p /sbin/ldconfig
|
|
|
|
%postun -n libfabric%{lib_major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2017-01-26 15:54:01 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
2019-04-09 09:08:43 +02:00
|
|
|
%doc NEWS.md
|
|
|
|
%license COPYING
|
2017-08-10 10:57:14 +02:00
|
|
|
|
|
|
|
%files -n libfabric%{lib_major}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/%{name}.so.%{lib_major}*
|
2019-04-09 09:08:43 +02:00
|
|
|
%doc AUTHORS README
|
|
|
|
%license COPYING
|
2017-08-10 10:57:14 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%dir %{_includedir}/rdma
|
|
|
|
%{_includedir}/rdma/fabric.h
|
|
|
|
%{_includedir}/rdma/fi_atomic.h
|
|
|
|
%{_includedir}/rdma/fi_cm.h
|
2019-11-25 15:46:04 +01:00
|
|
|
%{_includedir}/rdma/fi_collective.h
|
2017-08-10 10:57:14 +02:00
|
|
|
%{_includedir}/rdma/fi_domain.h
|
2022-10-03 09:34:47 +02:00
|
|
|
%{_includedir}/rdma/fi_endpoint.h
|
2017-08-10 10:57:14 +02:00
|
|
|
%{_includedir}/rdma/fi_eq.h
|
2022-10-03 09:34:47 +02:00
|
|
|
%{_includedir}/rdma/fi_errno.h
|
2021-07-09 12:59:38 +02:00
|
|
|
%{_includedir}/rdma/fi_ext.h
|
2023-11-19 19:58:48 +01:00
|
|
|
%{_includedir}/rdma/fi_profile.h
|
2017-08-10 10:57:14 +02:00
|
|
|
%{_includedir}/rdma/fi_rma.h
|
|
|
|
%{_includedir}/rdma/fi_tagged.h
|
|
|
|
%{_includedir}/rdma/fi_trigger.h
|
2022-10-03 09:34:47 +02:00
|
|
|
%dir %{_includedir}/rdma/providers
|
|
|
|
%{_includedir}/rdma/providers/fi_log.h
|
2023-04-18 22:47:57 +02:00
|
|
|
%{_includedir}/rdma/providers/fi_peer.h
|
2022-10-03 09:34:47 +02:00
|
|
|
%{_includedir}/rdma/providers/fi_prov.h
|
2017-08-10 10:57:14 +02:00
|
|
|
%{_includedir}/rdma/fi_ext_usnic.h
|
2021-03-15 10:05:41 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
%{_includedir}/rdma/fi_ext_psm2.h
|
|
|
|
%endif
|
2024-04-03 17:32:26 +02:00
|
|
|
%if 0%{?with_efa}
|
|
|
|
%{_includedir}/rdma/fi_ext_efa.h
|
|
|
|
%endif
|
2019-02-08 17:06:13 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man7/*
|
2016-10-19 16:34:09 +02:00
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2017-04-05 12:20:17 +02:00
|
|
|
|
2016-10-19 16:34:09 +02:00
|
|
|
%changelog
|