forked from cornelisnetworks/opa-ff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opa-ff.spec.in
102 lines (79 loc) · 2.89 KB
/
opa-ff.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Name: opa
Version: 10.4.0.0
Release: 197%{?dist}
Summary: Intel Omni-Path basic tools and libraries for fabric managment.
Group: System Environment/Libraries
License: GPLv2/BSD
Url: http://www.intel.com/
Source: opa.tgz
ExclusiveArch: x86_64
# The Intel(R) OPA product line is only available on x86_64 platforms at this time.
__RPM_DEBUG
%description
This package contains the tools necessary to manage an Intel(R) Omni-Path Architecture fabric.
%package basic-tools
Summary: Managment level tools and scripts.
Group: System Environment/Libraries
Requires: rdma bc
Requires: __RPM_REQ
BuildRequires: __RPM_BLDREQ
%description basic-tools
Contains basic tools for fabric managment necessary on all compute nodes.
%package fastfabric
Summary: Management level tools and scripts.
Group: System Environment/Libraries
Requires: opa-basic-tools
Requires: __RPM_RQ2
%description fastfabric
Contains tools for managing fabric on a managment node.
%package address-resolution
Summary: Contains Address Resolution manager
Group: System Environment/Libraries
Requires: opa-basic-tools
%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.
%prep
#rm -rf %{_builddir}/*
#tar xzf %_sourcedir/%name.tgz
%setup -q -c
%build
cd OpenIb_Host
./ff_build.sh %{_builddir} $FF_BUILD_ARGS
%install
BUILDDIR=%{_builddir} DESTDIR=%{buildroot} 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.
%files basic-tools -f %{_builddir}/basic_file.list
%files fastfabric -f %{_builddir}/ff_file.list
%{_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}/opa/opaff.xml
%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
%{_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
%changelog
* Fri Oct 10 2014 Erik E. Kahn <[email protected]> - 1.0.0-ifs
- Initial version