Blob Blame History Raw
Name: opa
Version: 10.10.1.0
Release: 35%{?dist}
Summary: Intel Omni-Path basic tools and libraries for fabric managment.

Group: System Environment/Libraries
License: GPLv2/BSD 
Url: https://github.com/intel/opa-ff
# tarball created by:
# git clone https://github.com/intel/opa-ff.git
# cd opa-ff
# tar czf opa.tgz --exclude-vcs .
Source: opa.tgz
ExclusiveArch: x86_64
# The Intel(R) OPA product line is only available on x86_64 platforms at this time.

__RPM_DEBUG_PKG

%description
This package contains the tools necessary to manage an Intel(R) Omni-Path Architecture fabric.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}

%package basic-tools
Summary: Managment level tools and scripts.
Group: System Environment/Libraries

Requires: rdma bc

Requires: __RPM_REQ_BASIC
BuildRequires: __RPM_BLDREQ

%if 0%{?rhel}
Epoch: 1
%endif

%description basic-tools
Contains basic tools for fabric managment necessary on all compute nodes.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}

%package fastfabric
Summary: Management level tools and scripts.
Group: System Environment/Libraries
Requires: opa-basic-tools cronie

%if 0%{?rhel}
Epoch: 1
%endif

%description fastfabric
Contains tools for managing fabric on a managment node.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}

%package address-resolution
Summary: Contains Address Resolution manager
Group: System Environment/Libraries
Requires:  __RPM_REQ_ADDR_RES

%if 0%{?rhel}
Epoch: 1
%endif

%description address-resolution
This package contains the ibacm distributed SA provider (dsap) for name and address resolution on OPA platform.
It also contains the library and tools to access the shared memory database exported by dsap.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}

%package libopamgt
Summary: Omni-Path management API library
Group: System Environment/Libraries
Requires: __RPM_REQ_OPAMGT

%description libopamgt
This package contains the library necessary to build applications that interface with an Omni-Path FM.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}


%package libopamgt-devel
Summary: Omni-Path library development headers
Group: System Environment/Libraries
Requires: __RPM_REQ_OPAMGT_DEV

%description libopamgt-devel
This package contains the necessary headers for opamgt development.
IFSComponent: Tools_FF 10.10.1.0.35%{?dist}

%prep
#rm -rf %{_builddir}/*
#tar xzf %_sourcedir/%name.tgz
%setup -q -c

%build
cd OpenIb_Host
 __RPM_FS ./ff_build.sh %{_builddir} $BUILD_ARGS


%install
BUILDDIR=%{_builddir} DESTDIR=%{buildroot} LIBDIR=/usr/lib DSAP_LIBDIR=%{_libdir} ./OpenIb_Host/ff_install.sh

%post address-resolution -p /sbin/ldconfig
%postun address-resolution -p /sbin/ldconfig

%preun fastfabric
cd /usr/src/opa/mpi_apps >/dev/null 2>&1
make -k clean >/dev/null 2>&1 || : # suppress all errors and return codes from the make clean.

%post libopamgt -p /sbin/ldconfig
%postun libopamgt -p /sbin/ldconfig

%preun libopamgt-devel
cd /usr/src/opamgt >/dev/null 2>&1
make -k clean >/dev/null 2>&1 || :

%files basic-tools
__RPM_BASIC_FILES
%config(noreplace) %{_sysconfdir}/opa/opamgt_tls.xml

%files fastfabric
__RPM_FF_FILES
%{_sysconfdir}/opa/opamon.si.conf
# Replace opamon.si.conf, as it's a template config file.
%config(noreplace) %{_sysconfdir}/opa/opafastfabric.conf
%config(noreplace) %{_sysconfdir}/opa/opamon.conf
%config(noreplace) %{_sysconfdir}/opa/allhosts
%config(noreplace) %{_sysconfdir}/opa/chassis
%config(noreplace) %{_sysconfdir}/opa/esm_chassis
%config(noreplace) %{_sysconfdir}/opa/hosts
%config(noreplace) %{_sysconfdir}/opa/ports
%config(noreplace) %{_sysconfdir}/opa/switches
%config(noreplace) %{_sysconfdir}/cron.d/opa-cablehealth
%config(noreplace) /usr/lib/opa/tools/osid_wrapper


%files address-resolution
%{_bindir}/opa_osd_dump
%{_bindir}/opa_osd_exercise
%{_bindir}/opa_osd_perf
%{_bindir}/opa_osd_query
%{_bindir}/opa_osd_query_many
%{_bindir}/opa_osd_load
%{_libdir}/ibacm
%{_libdir}/libopasadb.so*
%{_includedir}/infiniband
%{_mandir}/man1/opa_osd_dump.1*
%{_mandir}/man1/opa_osd_exercise.1*
%{_mandir}/man1/opa_osd_perf.1*
%{_mandir}/man1/opa_osd_query.1*
%config(noreplace) %{_sysconfdir}/rdma/dsap.conf
%config(noreplace) %{_sysconfdir}/rdma/op_path_rec.conf
%{_sysconfdir}/rdma/opasadb.xml

%files libopamgt
/usr/lib/libopamgt.*


%files libopamgt-devel
%{_includedir}/opamgt
/usr/src/opamgt

%changelog
* Mon Feb 26 2018 Jijun Wang <jijun.wang@intel.com> - 10.8.0.0
- Added epoch for RHEL address-resolution, basic-tools and fastfabric
- Added component information in description for all rpms
* Thu Apr 13 2017 Scott Breyer <scott.j.breyer@intel.com> - 10.5.0.0
- Updates for spec file cleanup
* Fri Oct 10 2014 Erik E. Kahn <erik.kahn@intel.com> - 1.0.0-ifs
- Initial version