forked from pool/libfabric
- Add -Wno-incompatible-pointer-types to CFLAGS to enable building
for 32bit with GCC 14. If this request is ok, please forward it soon to factory so that it is ready when the default compiler is switched. OBS-URL: https://build.opensuse.org/package/show/science:HPC/libfabric?expand=0&rev=103
This commit is contained in:
commit
08f2f39cab
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>fabtests</package>
|
||||
</multibuild>
|
||||
|
18
_service
Normal file
18
_service
Normal file
@ -0,0 +1,18 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/ofiwg/libfabric.git</param>
|
||||
<param name="package-meta">no</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="filename">libfabric</param>
|
||||
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.%h</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
<param name="revision">f67fad269327a1a25731d89fb94548d89ae7ae63</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">libfabric*.tar</param>
|
||||
<param name="compression">bz2</param>
|
||||
</service>
|
||||
|
||||
</services>
|
4
baselibs.conf
Normal file
4
baselibs.conf
Normal file
@ -0,0 +1,4 @@
|
||||
libfabric1
|
||||
libfabric-devel
|
||||
requires -libibmad-<targettype>
|
||||
requires "libfabric1-<targettype> = <version>"
|
6
fabtests-rpmlintrc
Normal file
6
fabtests-rpmlintrc
Normal file
@ -0,0 +1,6 @@
|
||||
# This line is mandatory to access the configuration functions
|
||||
from Config import *
|
||||
|
||||
addFilter("no-manual-page-for-binary fi_.*")
|
||||
addFilter("no-manual-page-for-binary runfabtests.sh")
|
||||
addFilter("no-manual-page-for-binary rft_yaml_to_junit_xml")
|
64
fabtests.spec
Normal file
64
fabtests.spec
Normal file
@ -0,0 +1,64 @@
|
||||
#
|
||||
# spec file for package fabtests
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define git_ver .0.f67fad269327
|
||||
|
||||
Name: fabtests
|
||||
Version: 1.21.0
|
||||
Release: 0
|
||||
Summary: Test suite for libfabric API
|
||||
License: BSD-2-Clause OR GPL-2.0-only
|
||||
Group: Development/Tools/Other
|
||||
URL: http://www.github.com/ofiwg/libfabric
|
||||
Source: libfabric-%{version}%{git_ver}.tar.bz2
|
||||
Source1: fabtests-rpmlintrc
|
||||
Patch0: libfabric-libtool.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libfabric-devel = %{version}
|
||||
BuildRequires: libtool
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Fabtests provides a set of examples that uses libfabric, a fabric software library.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n libfabric-%{version}%{git_ver}
|
||||
|
||||
%build
|
||||
cd fabtests
|
||||
./autogen.sh
|
||||
%configure %{?_with_libfabric}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install -C fabtests
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/fabtests/
|
||||
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man7/*
|
||||
%{_datadir}/fabtests/*
|
||||
|
||||
%doc AUTHORS README NEWS.md
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
3
libfabric-1.21.0.0.f67fad269327.tar.bz2
Normal file
3
libfabric-1.21.0.0.f67fad269327.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:766162bc9b3fbd6d57c40d230c076f7314a64ce28bee9eadf2fb1b046355a148
|
||||
size 3463094
|
13
libfabric-libtool.patch
Normal file
13
libfabric-libtool.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d137250..4e67035 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -89,7 +89,7 @@ AC_HEADER_STDC
|
||||
dnl Check for compiler features
|
||||
AC_C_TYPEOF
|
||||
|
||||
-LT_INIT
|
||||
+LT_INIT([disable-static])
|
||||
LT_OUTPUT
|
||||
|
||||
dnl dlopen support is optional
|
2236
libfabric.changes
Normal file
2236
libfabric.changes
Normal file
File diff suppressed because it is too large
Load Diff
160
libfabric.spec
Normal file
160
libfabric.spec
Normal file
@ -0,0 +1,160 @@
|
||||
#
|
||||
# spec file for package libfabric
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
%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
|
||||
|
||||
Name: libfabric
|
||||
Version: 1.21.0
|
||||
Release: 0
|
||||
Summary: User-space RDMA Fabric Interfaces
|
||||
License: BSD-2-Clause OR GPL-2.0-only
|
||||
Group: Development/Libraries/C and C++
|
||||
Source: %{name}-%{version}%{git_ver}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
Patch0: libfabric-libtool.patch
|
||||
URL: http://www.github.com/ofiwg/libfabric
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libibverbs-devel
|
||||
BuildRequires: libnl3-devel
|
||||
%ifarch x86_64
|
||||
BuildRequires: libnuma-devel
|
||||
BuildRequires: libpsm2-devel
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: librdmacm-devel
|
||||
BuildRequires: libtool
|
||||
%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
|
||||
BuildRequires: pkg-config
|
||||
%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}
|
||||
Summary: User-space RDMA fabric interfaces
|
||||
Group: System/Libraries
|
||||
|
||||
%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++
|
||||
Requires: libfabric%{lib_major} = %{version}
|
||||
|
||||
%description devel
|
||||
libfabric provides a user-space API to access high-performance fabric
|
||||
services, such as RDMA. This package contains the development files.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}%{git_ver}
|
||||
|
||||
%build
|
||||
export CFLAGS=-Wno-incompatible-pointer-types
|
||||
rm -f config/libtool.m4
|
||||
autoreconf -fi
|
||||
# defaults: with-dlopen and without-valgrind can be over-rode:
|
||||
%configure %{?_without_dlopen} %{?_with_valgrind} \
|
||||
--enable-sockets --enable-verbs --enable-usnic \
|
||||
%if 0%{?with_efa}
|
||||
--enable-efa \
|
||||
%endif
|
||||
%if 0%{?with_ucx}
|
||||
--enable-ucx \
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
--enable-psm2 \
|
||||
--enable-psm3 \
|
||||
%endif
|
||||
--disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# remove unpackaged files from the buildroot
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%post -n libfabric%{lib_major} -p /sbin/ldconfig
|
||||
%postun -n libfabric%{lib_major} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%doc NEWS.md
|
||||
%license COPYING
|
||||
|
||||
%files -n libfabric%{lib_major}
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/%{name}.so.%{lib_major}*
|
||||
%doc AUTHORS README
|
||||
%license COPYING
|
||||
|
||||
%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
|
||||
%{_includedir}/rdma/fi_collective.h
|
||||
%{_includedir}/rdma/fi_domain.h
|
||||
%{_includedir}/rdma/fi_endpoint.h
|
||||
%{_includedir}/rdma/fi_eq.h
|
||||
%{_includedir}/rdma/fi_errno.h
|
||||
%{_includedir}/rdma/fi_ext.h
|
||||
%{_includedir}/rdma/fi_profile.h
|
||||
%{_includedir}/rdma/fi_rma.h
|
||||
%{_includedir}/rdma/fi_tagged.h
|
||||
%{_includedir}/rdma/fi_trigger.h
|
||||
%dir %{_includedir}/rdma/providers
|
||||
%{_includedir}/rdma/providers/fi_log.h
|
||||
%{_includedir}/rdma/providers/fi_peer.h
|
||||
%{_includedir}/rdma/providers/fi_prov.h
|
||||
%{_includedir}/rdma/fi_ext_usnic.h
|
||||
%ifarch x86_64
|
||||
%{_includedir}/rdma/fi_ext_psm2.h
|
||||
%endif
|
||||
%if 0%{?with_efa}
|
||||
%{_includedir}/rdma/fi_ext_efa.h
|
||||
%endif
|
||||
%{_mandir}/man3/*
|
||||
%{_mandir}/man7/*
|
||||
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
8
pre_checkin.sh
Normal file
8
pre_checkin.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# This script has to be run prior to a check-in if changes were done
|
||||
# to spec and/or changes
|
||||
GIT_VER=$(grep "%define git_ver" libfabric.spec)
|
||||
VERSION=$(egrep "^Version:" libfabric.spec)
|
||||
sed -i -e 's/^%define git_ver.*$/'"$GIT_VER/" -e 's/^Version:.*$/'"$VERSION/" fabtests.spec
|
||||
osc service localrun format_spec_file
|
||||
|
Loading…
Reference in New Issue
Block a user