2016-10-19 14:34:09 +00:00
|
|
|
#
|
2017-04-05 10:20:17 +00:00
|
|
|
# spec file for package libfabric
|
2016-10-19 14:34:09 +00:00
|
|
|
#
|
2022-04-20 11:30:05 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-10-19 14:34:09 +00: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 07:38:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-19 14:34:09 +00:00
|
|
|
#
|
2017-04-05 10:20:17 +00:00
|
|
|
|
|
|
|
|
2017-05-11 18:23:17 +00:00
|
|
|
#
|
2022-07-18 13:06:07 +00:00
|
|
|
%define git_ver .0.abb0b891e97a
|
2017-05-11 18:23:17 +00:00
|
|
|
|
2016-10-19 14:34:09 +00:00
|
|
|
Name: libfabric
|
2022-07-18 13:06:07 +00:00
|
|
|
Version: 1.15.1
|
2019-02-22 07:38:34 +00:00
|
|
|
Release: 0
|
2016-10-19 14:34:09 +00:00
|
|
|
Summary: User-space RDMA Fabric Interfaces
|
2021-02-16 09:10:48 +00:00
|
|
|
License: BSD-2-Clause OR GPL-2.0-only
|
2017-03-24 09:28:17 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-05-16 15:52:20 +00:00
|
|
|
Source: %{name}-%{version}%{git_ver}.tar.bz2
|
2016-10-19 14:34:09 +00:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch0: libfabric-libtool.patch
|
2022-07-18 13:06:07 +00:00
|
|
|
Patch1: prov-opx-Correctly-disable-OPX-if-unsupported.patch
|
2022-08-23 12:14:10 +00:00
|
|
|
Patch2: disable-flatten-attr.patch
|
2019-02-22 07:38:34 +00:00
|
|
|
URL: http://www.github.com/ofiwg/libfabric
|
2017-04-05 10:20:17 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libibverbs-devel
|
|
|
|
BuildRequires: libnl3-devel
|
2017-06-30 08:06:57 +00:00
|
|
|
%ifarch x86_64
|
2021-11-03 08:07:55 +00:00
|
|
|
BuildRequires: libnuma-devel
|
2017-04-05 10:20:17 +00:00
|
|
|
BuildRequires: libpsm2-devel
|
2017-06-30 08:06:57 +00:00
|
|
|
%endif
|
2017-07-05 11:53:11 +00:00
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
BuildRequires: infinipath-psm-devel
|
|
|
|
%endif
|
2017-08-10 08:57:14 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-05 10:20:17 +00:00
|
|
|
BuildRequires: librdmacm-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2016-10-19 14:34:09 +00: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 07:38:34 +00:00
|
|
|
Summary: User-space RDMA fabric interfaces
|
2017-04-05 10:20:17 +00:00
|
|
|
Group: System/Libraries
|
2016-10-19 14:34:09 +00: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 19:26:50 +00:00
|
|
|
Requires: libfabric%{lib_major} = %{version}
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
%description devel
|
2017-08-10 08:57:14 +00: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 14:34:09 +00:00
|
|
|
|
|
|
|
%prep
|
2017-05-11 18:23:17 +00:00
|
|
|
%setup -q -n %{name}-%{version}%{git_ver}
|
2016-10-19 14:34:09 +00:00
|
|
|
%patch0 -p1
|
2022-07-18 13:06:07 +00:00
|
|
|
%patch1
|
2022-08-23 12:14:10 +00:00
|
|
|
%patch2 -p1
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-16 16:23:36 +00:00
|
|
|
rm -f config/libtool.m4
|
2016-10-19 14:34:09 +00:00
|
|
|
autoreconf -fi
|
|
|
|
# defaults: with-dlopen and without-valgrind can be over-rode:
|
|
|
|
%configure %{?_without_dlopen} %{?_with_valgrind} \
|
2017-08-10 08:57:14 +00:00
|
|
|
--enable-sockets --enable-verbs --enable-usnic \
|
2017-07-05 11:53:11 +00:00
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
--enable-psm \
|
|
|
|
%endif
|
2017-06-30 08:06:57 +00:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-psm2 \
|
2021-11-03 08:07:55 +00:00
|
|
|
--enable-psm3 \
|
2017-06-30 08:06:57 +00:00
|
|
|
%endif
|
2017-07-05 11:53:11 +00:00
|
|
|
--disable-static
|
2022-08-23 12:14:10 +00:00
|
|
|
%make_build
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
%install
|
2019-02-22 07:38:34 +00:00
|
|
|
%make_install
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
# remove unpackaged files from the buildroot
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2017-08-10 08:57:14 +00:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
%post -n libfabric%{lib_major} -p /sbin/ldconfig
|
|
|
|
%postun -n libfabric%{lib_major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2017-01-26 14:54:01 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
2019-04-09 07:08:43 +00:00
|
|
|
%doc NEWS.md
|
|
|
|
%license COPYING
|
2017-08-10 08:57:14 +00:00
|
|
|
|
|
|
|
%files -n libfabric%{lib_major}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/%{name}.so.%{lib_major}*
|
2019-04-09 07:08:43 +00:00
|
|
|
%doc AUTHORS README
|
|
|
|
%license COPYING
|
2017-08-10 08:57:14 +00: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 14:46:04 +00:00
|
|
|
%{_includedir}/rdma/fi_collective.h
|
2017-08-10 08:57:14 +00:00
|
|
|
%{_includedir}/rdma/fi_domain.h
|
|
|
|
%{_includedir}/rdma/fi_eq.h
|
2021-07-09 10:59:38 +00:00
|
|
|
%{_includedir}/rdma/fi_ext.h
|
2017-08-10 08:57:14 +00:00
|
|
|
%{_includedir}/rdma/fi_rma.h
|
|
|
|
%{_includedir}/rdma/fi_endpoint.h
|
|
|
|
%{_includedir}/rdma/fi_errno.h
|
|
|
|
%{_includedir}/rdma/fi_tagged.h
|
|
|
|
%{_includedir}/rdma/fi_trigger.h
|
|
|
|
%{_includedir}/rdma/fi_ext_usnic.h
|
2021-03-15 09:05:41 +00:00
|
|
|
%ifarch x86_64
|
|
|
|
%{_includedir}/rdma/fi_ext_psm2.h
|
|
|
|
%endif
|
2019-02-08 16:06:13 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man7/*
|
2016-10-19 14:34:09 +00:00
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2017-04-05 10:20:17 +00:00
|
|
|
|
2016-10-19 14:34:09 +00:00
|
|
|
%changelog
|