%{!?configopts: %global configopts LDFLAGS=-Wl,--build-id} %{!?provider: %define provider psm3} %{!?provider_formal: %define provider_formal PSM3} # Disable setting SOURCE_DATE_EPOCH from changelog %define source_date_epoch_from_changelog 0 Name: lib%{provider}-fi Version: @VERSION@ Release: @RPM_RELEASE@ Summary: Dynamic %{provider_formal} provider for Libfabric Group: System Environment/Libraries License: GPLv2 or BSD Url: http://www.github.com/ofiwg/libfabric Source: http://www.github.org/ofiwg/%{name}/releases/download/%{provider}-v{%version}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?suse_version} >= 1 Provides: lib${provider}-fi1 = %{version}-%{release} %endif BuildRequires: libuuid-devel BuildRequires: rdma-core-devel BuildRequires: hwloc-devel %if 0%{?suse_version} >= 1 BuildRequires: glibc-devel BuildRequires: libnuma-devel %endif %if 0%{?rhel} >= 1 BuildRequires: glibc-headers BuildRequires: numactl-devel %endif %if 0%{?suse_version} >= 1 %debug_package %endif %description This RPM provides the %{provider_formal} provider as a "plugin" to an existing libfabric installation. This plugin will override older %{provider_formal} provider functionality in the existing libfabric installation. %prep %setup -q -n %{name}-%{version} %build %configure %{configopts} %make_build %install rm -rf %{buildroot} %make_install installdirs # remove unpackaged files from the buildroot rm -f %{buildroot}%{_libdir}/*.la %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/libfabric/%{name}* %doc README %exclude %{_libdir}/libfabric/*.a %exclude %{_libdir}/libfabric/*.la %exclude %{_libdir}/pkgconfig %exclude %{_mandir} %changelog * Wed Mar 31 2021 Adam Goldman - Include BuildRequires lines for RHEL and SLES * Wed May 24 2017 Open Fabrics Interfaces Working Group - First release of specfile for packaging a single dl provider.