forked from OFS/opae-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opae.spec.in
244 lines (194 loc) · 7.13 KB
/
opae.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# -*- rpm-spec -*-
BuildRoot: %_topdir/@CPACK_PACKAGE_FILE_NAME@
Summary: @CPACK_PACKAGE_DESCRIPTION_SUMMARY@
Name: @CPACK_PACKAGE_NAME@
Version: @CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@
Release: @CPACK_PACKAGE_RELEASE@
License: @CPACK_RPM_PACKAGE_LICENSE@
Group: @CPACK_META_GROUP_NAME@
Vendor: @CPACK_PACKAGE_VENDOR@
Prefix: @CMAKE_INSTALL_PREFIX@
Requires: opae-libs , opae-devel , opae-tools, opae-tools-extra
Source0: @CPACK_PACKAGE_NAME@.tar.gz
%description
@CPACK_RPM_PACKAGE_DESCRIPTION@
%define _unpackaged_files_terminate_build 0
%define _rpmdir %_topdir/RPMS
%define _srcrpmdir %_topdir/SRPMS
%package libs
Summary: Runtime libraries for OPAE applications
Group: libs
Requires: uuid , json-c
%description libs
This package contains runtime libraries that support OPAE applications
%package devel
Summary: OPAE headers, sample source and documentation
Group: devel
Requires: opae-libs , libuuid-devel , json-c
%description devel
This package contains OPAE headers, sample source and documentation
%package tools
Summary: OPAE base tools binaries
Group: tools
Requires: opae-libs , opae-devel
%description tools
This package contains OPAE base tools binaries
%package tools-extra
Summary: OPAE extra tools binaries
Group: tools-extra
Requires: opae-libs , opae-devel
Prefix: @CPACK_RPM_RELOCATION_PATHS@
%description tools-extra
This package contains OPAE extra tools binaries
%package tests
Summary: OPAE tests package
Group: tests
Requires: opae-libs
%description tests
This package contains OPAE tests
%package opae.admin
Summary: OPAE admin package
Group: opae admin
%description opae.admin
This package contains OPAE admin tools
%package PACSign
Summary: PACSign tools package
Group: opae PACSign
Requires: openssl-devel
%description PACSign
This package contains PAC Sign tools
%package packager
Summary: Green BitStream packager
Group: opae packager
%description packager
This package contains packager tools
# This is a shortcutted spec file generatCed by CMake RPM generator
# we skip _install step because CPack does that for us.
# We do only save CPack installed tree in _prepr
# and then restore it in build.
%prep
mv $RPM_BUILD_ROOT %_topdir/tmpBRoot
%build
pushd @CMAKE_SOURCE_DIR@/python/opae.admin
%{__python3} setup.py build
popd
%install
if [ -e $RPM_BUILD_ROOT ];
then
rm -rf $RPM_BUILD_ROOT
fi
mv %_topdir/tmpBRoot $RPM_BUILD_ROOT
%clean
%post
mkdir -p /etc/ld.so.conf.d
echo "@LDCONFIG_DIR@" > /etc/ld.so.conf.d/opae-c.conf
ldconfig
%postun
@CPACK_RPM_SPEC_POSTUNINSTALL@
%pre
@CPACK_RPM_SPEC_PREINSTALL@
%preun
rm -f -- /etc/ld.so.conf.d/opae-c.conf
ldconfig
%files
%license @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DOCDIR@/LICENSE
%defattr(-,root,root,-)
%files libs
%license @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DOCDIR@/LICENSE
%defattr(-,root,root,-)
@CPACK_RPM_RELOCATION_PATHS@/opae/opae.cfg
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopae-c.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopae-cxx*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libxfpga.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libopae-v.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libmodbmc.so
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libbitstream.so*
%files devel -f devel-files.txt
%license @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DOCDIR@/LICENSE
%defattr(-,root,root,-)
@CMAKE_INSTALL_PREFIX@/bin/afu_platform_config
@CMAKE_INSTALL_PREFIX@/bin/afu_platform_info
@CMAKE_INSTALL_PREFIX@/bin/afu_synth_setup
@CMAKE_INSTALL_PREFIX@/bin/rtl_src_config
@CMAKE_INSTALL_PREFIX@/bin/hssi
@CMAKE_INSTALL_PREFIX@/bin/dummy_afu
@CMAKE_INSTALL_PREFIX@/bin/hello_fpga
@CMAKE_INSTALL_PREFIX@/bin/hello_cxxcore
@CMAKE_INSTALL_PREFIX@/bin/n5010-test
@CMAKE_INSTALL_PREFIX@/bin/n5010-ctl
@CMAKE_INSTALL_PREFIX@/bin/object_api
%dir @CMAKE_INSTALL_PREFIX@/include/opae
@CMAKE_INSTALL_PREFIX@/include/opae/*
%dir @CMAKE_INSTALL_PREFIX@/share/opae
%dir @CMAKE_INSTALL_PREFIX@/share/opae/*
@CMAKE_INSTALL_PREFIX@/share/opae/*
%dir @CMAKE_INSTALL_PREFIX@/src/opae
@CMAKE_INSTALL_PREFIX@/src/opae/*
@CMAKE_INSTALL_PREFIX@/bin/opae.io
%files tools
%license @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DOCDIR@/LICENSE
%defattr(-,root,root,-)
@CMAKE_INSTALL_PREFIX@/bin/fpgaconf
@CMAKE_INSTALL_PREFIX@/bin/fpgainfo
@CMAKE_INSTALL_PREFIX@/bin/fpgametrics
@CMAKE_INSTALL_PREFIX@/bin/fpgad
@CMAKE_INSTALL_PREFIX@/bin/opaevfiotest
@CMAKE_INSTALL_PREFIX@/bin/opaeuiotest
@CMAKE_INSTALL_PREFIX@/bin/host_exerciser
@CPACK_RPM_RELOCATION_PATHS@/sysconfig/fpgad.conf
@CPACK_RPM_RELOCATION_PATHS@/systemd/system/fpgad.service
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libfpgad-api.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopaevfio.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopaeuio.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopaemem.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libfpgad-xfpga.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libfpgad-vc.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_n3000.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_d5005.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_n5010.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_a10gx.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_n6000.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_c6100.so*
%files tools-extra -f tools-extra-files.txt
%license @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DOCDIR@/LICENSE
%defattr(-,root,root,-)
@CMAKE_INSTALL_PREFIX@/bin/afu_json_mgr
@CMAKE_INSTALL_PREFIX@/bin/bist
@CMAKE_INSTALL_PREFIX@/bin/bist_app
@CMAKE_INSTALL_PREFIX@/bin/bist_app.py
@CMAKE_INSTALL_PREFIX@/bin/bist_common.py
@CMAKE_INSTALL_PREFIX@/bin/bist_dma.py
@CMAKE_INSTALL_PREFIX@/bin/bist_def.py
@CMAKE_INSTALL_PREFIX@/bin/bist_nlb3.py
@CMAKE_INSTALL_PREFIX@/bin/bist_nlb0.py
@CMAKE_INSTALL_PREFIX@/bin/fpga_dma_test
@CMAKE_INSTALL_PREFIX@/bin/fpga_dma_N3000_test
@CMAKE_INSTALL_PREFIX@/bin/fpgabist
@CMAKE_INSTALL_PREFIX@/bin/mmlink
@CMAKE_INSTALL_PREFIX@/bin/nlb0
@CMAKE_INSTALL_PREFIX@/bin/nlb3
@CMAKE_INSTALL_PREFIX@/bin/nlb7
@CMAKE_INSTALL_PREFIX@/bin/packager
@CMAKE_INSTALL_PREFIX@/bin/pac_hssi_config.py
@CMAKE_INSTALL_PREFIX@/bin/userclk
@CMAKE_INSTALL_PREFIX@/bin/hps
@CMAKE_INSTALL_PREFIX@/bin/vabtool
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libmml-srv.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libmml-stream.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopae-c++-nlb.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libopae-c++-utils.so*
@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libofs*.so*
%dir @CMAKE_INSTALL_PREFIX@/share/opae
# coreidle applies only to a legacy platform that is no longer supported
%exclude @CMAKE_INSTALL_PREFIX@/bin/coreidle
%files tests
%defattr(-,root,root,-)
@CMAKE_INSTALL_PREFIX@/bin/hello_fpga
@CMAKE_INSTALL_PREFIX@/bin/hello_events
%files opae.admin -f opae.admin-files.txt
%defattr(-,root,root,-)
%files PACSign -f PACSign-files.txt
%defattr(-,root,root,-)
%files packager -f packager-files.txt
%defattr(-,root,root,-)
%changelog