Skip to content

Commit

Permalink
Add more to the toss4 spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Nov 9, 2022
1 parent 1ce5bc9 commit c0aacbf
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion rpm/ovis-ldms-toss4.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
%bcond_without kafka
%bcond_without slingshot
%bcond_with genders
%bcond_without rabbitkw
%bcond_without ibnet
%bcond_without tests

%ifarch ppc64le
%undefine with_slurm
Expand Down Expand Up @@ -72,6 +75,10 @@ BuildRequires: openssl-devel
BuildRequires: librdmacm-devel libibverbs-devel
BuildRequires: libibmad libibmad-devel
BuildRequires: libibumad libibumad-devel
%if %{with ibnet}
Requires: opensm-devel
BuildRequires: opensm-devel
%endif
%if %{with python}
BuildRequires: python36-devel
BuildRequires: python3-Cython
Expand All @@ -94,6 +101,10 @@ BuildRequires: papi600-devel
BuildRequires: librdkafka-devel
Requires: librdkafka
%endif
%if %{with rabbitkw}
Requires: librabbitmq
BuildRequires: librabbitmq-devel
%endif

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

Expand All @@ -108,6 +119,7 @@ export CFLAGS="-g -O2 -fdiagnostics-color=auto %{optflags}"
%configure \
CC=gcc CXX=g++ \
--disable-static \
--enable-nola \
--enable-munge \
--enable-ssl \
--enable-rdma \
Expand All @@ -118,14 +130,19 @@ export CFLAGS="-g -O2 -fdiagnostics-color=auto %{optflags}"
--disable-procdiskstats \
--disable-generic_sampler \
--enable-jobid \
--enable-ipmireader \
--enable-filesingle \
%{?with_genders:--enable-libgenders --enable-genderssystemd}%{!?with_genders:--disable-libgenders --disable-genderssystemd} \
%{?with_python:--enable-python}%{!?with_python:--disable-python} \
%{?with_slurm:--with-slurm}%{!?with_slurm:--without-slurm} \
%{?with_dcgm:--with-dcgm}%{!?with_dcgm:--without-dcgm} \
%{?with_infiniband:--enable-infiniband}%{!?with_infiniband:--disable-infiniband} \
%{?with_infiniband:--enable-infiniband --enable-opa2}%{!?with_infiniband:--disable-infiniband --disable-opa2} \
%{?with_ibnet:--enable-ibnet}%{!?with_ibnet:--disable-ibnet} \
%{?with_rdc:--enable-rdc RDC_CFLAGS=-I/opt/rocm-%{rocm_version}/rdc/include RDC_LIBS=-L/opt/rocm-%{rocm_version}/rdc/lib}%{!?with_rdc:--disable-rdc} \
%{?with_kafka:--enable-kafka}%{!?with_kafka:--disable-kafka} \
%{?with_slingshot:--enable-slingshot}%{!?with_slingshot:--disable-slingshot} \
%{?with_rabbitkw:--enable-rabbitkw}%{!?with_rabbitkw:--disable-rabbitkw} \
%{?with_tests:--enable-slurmtest --enable-ldms-test}%{!?with_tests:--disable-slurmtest --disable-ldms-test} \
%if %{with papi}
--enable-papi \
--with-libpapi-prefix=/usr/papi600 \
Expand Down Expand Up @@ -181,6 +198,17 @@ rm -rf $RPM_BUILD_ROOT
%doc %{_sysconfdir}/sysconfig/ldms.d/ldmsd.all_instances.conf.example
%config(noreplace) %{_sysconfdir}/sysconfig/ldms.d/ldmsd.local.conf
%config(noreplace) %{_sysconfdir}/sysconfig/ldms.d/plugins-conf/*
%if %{with tests}
%exclude %{_bindir}/pll-ldms-static-test.sh
%exclude %{_pkgdocdir}/examples/slurm-test
%exclude %{_mandir}/*/pll-ldms-static-test.8
%exclude %{_libdir}/*/ldms-run-static-tests.test
%exclude %{_libdir}/*/ldms-static-test-bypass
%exclude %{_libdir}/*/ldms-static-test-list.sh
%exclude %{_libdir}/*/libgrptest*
%exclude %{_libdir}/*/libtest_sampler*
%exclude %{_sbindir}/test_ldms*
%endif
%endif

%package devel
Expand Down Expand Up @@ -271,6 +299,28 @@ LDMS sampler plugin that supports AMD GPUs
%{_mandir}/*/*_rdc_*
%endif

%if %{with tests}
%package tests
Summary: LDMS tests
Group: System Environment/Base
# Because of the way we handle /opt (where rocm is installed)
# in TOSS, we can not have an explicit Requires on it here.
#Requires: rocm-%{rocm_version}
%description tests
Tests for the LDMS
%files tests
%defattr(-,root,root,-)
%{_bindir}/pll-ldms-static-test.sh
%{_pkgdocdir}/examples/slurm-test
%{_mandir}/*/pll-ldms-static-test.8
%{_libdir}/*/ldms-run-static-tests.test
%{_libdir}/*/ldms-static-test-bypass
%{_libdir}/*/ldms-static-test-list.sh
%{_libdir}/*/libgrptest*
%{_libdir}/*/libtest_sampler*
%{_sbindir}/test_ldms*
%endif

%changelog
* Mon May 11 2020 Christopher J. Morrone <[email protected]> 4.3.3-1
New rpm packaging for TOSS.

0 comments on commit c0aacbf

Please sign in to comment.