-
Notifications
You must be signed in to change notification settings - Fork 20
/
opa-ff.spec.in
168 lines (133 loc) · 4.67 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
Name: opa
Version: 10.14.4.0
Release: 20%{?dist}
Summary: Cornelis Omni-Path basic tools and libraries for fabric managment.
Group: System Environment/Libraries
License: GPLv2/BSD
Url: https://github.com/cornelisnetworks/opa-ff
# tarball created by:
# git clone https://github.com/cornelisnetworks/opa-ff.git
# cd opa-ff
# tar czf opa.tgz --exclude-vcs .
Source: opa.tgz
ExclusiveArch: x86_64
# The Cornelis(TM) OPX 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 Cornelis(TM) Omni-Path Express fabric.
IFSComponent: Tools_FF 10.14.4.0.20%{?dist}
%package basic-tools
Summary: Managment level tools and scripts.
Group: System Environment/Libraries
Requires: rdma bc
Requires: __RPM_REQ_BASIC1
Requires: __RPM_REQ_BASIC2
BuildRequires: __RPM_BLDREQ1
BuildRequires: __RPM_BLDREQ2
%if 0%{?rhel}
Epoch: 1
%endif
%description basic-tools
Contains basic tools for fabric managment necessary on all compute nodes.
IFSComponent: Tools_FF 10.14.4.0.20%{?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.14.4.0.20%{?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.14.4.0.20%{?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.14.4.0.20%{?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.14.4.0.20%{?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 <[email protected]> - 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 <[email protected]> - 10.5.0.0
- Updates for spec file cleanup
* Fri Oct 10 2014 Erik E. Kahn <[email protected]> - 1.0.0-ifs
- Initial version