-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlibpsm3-fi.spec.in
76 lines (62 loc) · 2 KB
/
libpsm3-fi.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%{!?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 <[email protected]>
- Include BuildRequires lines for RHEL and SLES
* Wed May 24 2017 Open Fabrics Interfaces Working Group <[email protected]>
- First release of specfile for packaging a single dl provider.