Skip to content

Commit c134edf

Browse files
committed
Update spec files to build with libfabric by default
1 parent 3708db5 commit c134edf

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

rpm/ovis-ldms-toss4.spec.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
%bcond_without zfs
1616
%bcond_without jansson
1717
%bcond_without variorum
18+
%bcond_without libfabric
1819

1920
%ifarch ppc64le
2021
%undefine with_slurm
@@ -23,6 +24,7 @@
2324
%undefine with_avrokafka
2425
%undefine with_kafka
2526
%undefine with_variorum
27+
%undefine with_libfabric
2628
%endif
2729
%ifarch aarch64
2830
%undefine with_rdc
@@ -139,6 +141,10 @@ BuildRequires: jansson-devel
139141
Requires: variorum >= 0.8.0
140142
BuildRequires: variorum >= 0.8.0
141143
%endif
144+
%if %{with libfabric}
145+
Requires: libfabric
146+
BuildRequires: libfabric-devel
147+
%endif
142148

143149
Url: https://github.com/ovis-hpc/ovis
144150

@@ -180,6 +186,7 @@ export CFLAGS="-g -O2 -fdiagnostics-color=auto %{optflags}"
180186
%{?with_zfs:--enable-zfs}%{!?with_zfs:--disable-zfs} \
181187
%{?with_tests:--enable-slurmtest --enable-ldms-test}%{!?with_tests:--disable-slurmtest --disable-ldms-test} \
182188
%{?with_variorum:--enable-variorum}%{!?with_variorum:--disable-variorum} \
189+
%{?with_libfabric:--with-libfabric}%{!?with_libfabric:--without-libfabric} \
183190
%if %{with papi}
184191
--enable-papi \
185192
--with-libpapi-prefix=/usr/papi600 \

rpm/ovis-ldms-toss5.spec.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
%bcond_without zfs
1616
%bcond_without jansson
1717
%bcond_without variorum
18+
%bcond_without libfabric
1819

1920
%ifarch ppc64le
2021
%undefine with_slurm
@@ -23,6 +24,7 @@
2324
%undefine with_avrokafka
2425
%undefine with_kafka
2526
%undefine with_variorum
27+
%undefine with_libfabric
2628
%endif
2729
%ifarch aarch64
2830
%undefine with_rdc
@@ -143,6 +145,10 @@ BuildRequires: jansson-devel
143145
Requires: variorum >= 0.8.0
144146
BuildRequires: variorum >= 0.8.0
145147
%endif
148+
%if %{with libfabric}
149+
Requires: libfabric
150+
BuildRequires: libfabric-devel
151+
%endif
146152

147153
Url: https://github.com/ovis-hpc/ovis
148154

@@ -184,6 +190,7 @@ export CFLAGS="-g -O2 -fdiagnostics-color=auto %{optflags}"
184190
%{?with_zfs:--enable-zfs}%{!?with_zfs:--disable-zfs} \
185191
%{?with_tests:--enable-slurmtest --enable-ldms-test}%{!?with_tests:--disable-slurmtest --disable-ldms-test} \
186192
%{?with_variorum:--enable-variorum}%{!?with_variorum:--disable-variorum} \
193+
%{?with_libfabric:--with-libfabric}%{!?with_libfabric:--without-libfabric} \
187194
%if %{with papi}
188195
--enable-papi \
189196
%endif

0 commit comments

Comments
 (0)