forked from adjacentlink/emane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emane.spec.in
493 lines (403 loc) · 12.4 KB
/
emane.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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
Summary: EMANE - Extendable Mobile Ad-hoc Network Emulator
Name: emane
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Applications/System
URL: https://github.com/adjacentlink/emane
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: emane-libs = %{version} emane-dtds = %{version}
BuildRequires: libxml2-devel ace-devel protobuf-devel pcre-devel libpcap-devel libuuid-devel
Prefix: /usr
Vendor: Adjacent Link LLC
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%description
EMANE is an Extendable Mobile Ad-hoc Network Emulator that allows for
heterogeneous network emulation using a pluggable MAC and PHY layer
architecture.
%package devel
Requires: emane-libs = %{version} ace-devel
Summary: Headers necessary to build EMANE network emulation modules.
Group: Development/Libraries
%description devel
Headers necessary to build EMANE network emulation modules.
%package dtds
Summary: EMANE DTDs
Group: Applications/System
%description dtds
EMANE DTDs required for EMANE XML.
%package utils
Requires: emane-dtds = %{version} python-lxml
Summary: EMANE utilities
Group: Applications/System
%description utils
EMANE utilities
%package libs
Summary: EMANE Libraries
Group: Libraries
%description libs
EMANE Libraries required for components
%package transportdaemon
Requires: emane-libs = %{version} emane-dtds = %{version}
Summary: EMANE transport daemon
Group: Applications/System
%description transportdaemon
EMANE transport daemon. Creates and manages one or more transports.
%package eventdaemon
Requires: emane-libs = %{version} emane-dtds = %{version}
Summary: EMANE event daemon
Group: Applications/System
%description eventdaemon
EMANE event daemon forwards events to registered agents.
%package eventservice
Requires: emane-libs = %{version} emane-dtds = %{version}
Summary: EMANE event service
Group: Applications/System
%description eventservice
EMANE event service creates and manages event generators.
%package model-rfpipe
Requires: emane = %{version}
Summary: EMANE RF Pipe MAC Layer
Group: Libraries
%description model-rfpipe
EMANE RF Pipe MAC Layer
%package model-ieee80211abg
Requires: emane = %{version}
Summary: EMANE 802.11abg MAC Layer
Group: Libraries
%description model-ieee80211abg
EMANE 802.11abg MAC Layer
%package model-bypass
Requires: emane = %{version}
Summary: EMANE Bypass MAC and PHY Layer
Group: Libraries
%description model-bypass
EMANE Bypass MAC and PHY Layer
%package model-commeffect
Summary: EMANE commeffect shim model.
Requires: emane = %{version}
Group: Libraries
%description model-commeffect
EMANE commeffect model replacement for commercial network emulators.
%package model-tdmaeventscheduler
Summary: EMANE TDMA Event Scheduler radio model.
Requires: emane = %{version}
Group: Libraries
%description model-tdmaeventscheduler
EMANE TDMA event scheduler model.
%package agent-gpsdlocation
Requires: emane-eventdaemon = %{version}
Summary: EMANE gpsd location agent
Group: Libraries
%description agent-gpsdlocation
EMANE gpsd location agent translates location events into NMEA strings
and transmits them to gpsd via a pseudo terminal device.
%package trans-virtual
Requires: emane-transportdaemon = %{version} emane-trans-common = %{version}
Summary: EMANE virtual transport implementation
Group: Libraries
%description trans-virtual
EMANE virtual transport. Uses tun device to create a network layer
entry point for the NEM stack.
%package trans-raw
Requires: emane-transportdaemon = %{version} emane-trans-common = %{version}
Summary: EMANE raw transport implementation
Group: Libraries
%description trans-raw
EMANE raw transport. Uses raw IP to create a network layer
entry point for the NEM stack.
%package trans-common
Requires: emane-transportdaemon = %{version}
Summary: EMANE common transport ethernet functionality
Group: Libraries
%description trans-common
EMANE common transport ethernet functionality.
%package model-phyapitestshim
Requires: emane = %{version}
Summary: EMANE PHY API Test shim
Group: Libraries
%description model-phyapitestshim
EMANE PHY API Test shim
%package model-timinganalysisshim
Requires: emane = %{version}
Summary: EMANE Timing Test shim
Group: Libraries
%description model-timinganalysisshim
EMANE Timing Test shim
%package gen-eel
Requires: emane-eventservice = %{version}
Summary: EMANE Emulation Event Log Generator
Group: Libraries
%description gen-eel
EMANE Emulation Event Log Generator
%package manifest
Summary: EMANE Plugin Manifests
Group: Applications/System
%description manifest
EMANE Plugin Manifests
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm '{}' \;
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm '{}' \;
mkdir -p ${RPM_BUILD_ROOT}%{_pkgdocdir}
install -t ${RPM_BUILD_ROOT}%{_pkgdocdir} AUTHORS %{!?_licensedir:COPYING} ChangeLog NEWS README PROBLEM-REPORT-FORM SPONSOR
%if 0%{?_licensedir:1}
mkdir -p ${RPM_BUILD_ROOT}%{_licensedir}/%{name}
install -t ${RPM_BUILD_ROOT}%{_licensedir}/%{name} COPYING
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/emane
%{_bindir}/emaneinfo
%{_mandir}/man1/emane.1.gz
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files utils
%defattr(-, root, root)
%{_bindir}/emanegentransportxml
%{_bindir}/emaneconvertdtdpath
%{_mandir}/man1/emanegentransportxml.1.gz
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files dtds
%defattr(-, root, root)
%dir %{_datadir}/emane
%dir %{_datadir}/emane/dtd
%{_datadir}/emane/dtd/attrs.ent
%{_datadir}/emane/dtd/mac.dtd
%{_datadir}/emane/dtd/nem.dtd
%{_datadir}/emane/dtd/nemcontents.dtd
%{_datadir}/emane/dtd/param.dtd
%{_datadir}/emane/dtd/phy.dtd
%{_datadir}/emane/dtd/platform.dtd
%{_datadir}/emane/dtd/shim.dtd
%{_datadir}/emane/dtd/transport.dtd
%{_datadir}/emane/dtd/transportdaemon.dtd
%{_datadir}/emane/dtd/eventagent.dtd
%{_datadir}/emane/dtd/eventdaemon.dtd
%{_datadir}/emane/dtd/eventgenerator.dtd
%{_datadir}/emane/dtd/eventservice.dtd
%{_datadir}/emane/dtd/rfpipepcr.dtd
%{_datadir}/emane/dtd/ieee80211pcr.dtd
%{_datadir}/emane/dtd/antennaprofile.dtd
%{_datadir}/emane/dtd/commeffectfilters.dtd
%dir %{_datadir}/emane/schema
%{_datadir}/emane/schema/manifest.xsd
%{_datadir}/emane/schema/tdmabasemodelpcr.xsd
%dir %{_datadir}/emane/xml
%dir %{_datadir}/emane/xml/agents
%dir %{_datadir}/emane/xml/generators
%dir %{_datadir}/emane/xml/models
%dir %{_datadir}/emane/xml/models/mac
%dir %{_datadir}/emane/xml/models/phy
%dir %{_datadir}/emane/xml/models/shim
%dir %{_datadir}/emane/xml/transports
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files libs
%defattr(-, root, root)
%{_libdir}/libemanexmlparser.*
%{_libdir}/libemane.*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files transportdaemon
%defattr(-, root, root)
%{_bindir}/emanetransportd
%{_mandir}/man1/emanetransportd.1.gz
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files eventdaemon
%defattr(-, root, root)
%{_bindir}/emaneeventd
%{_mandir}/man1/emaneeventd.1.gz
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files eventservice
%defattr(-, root, root)
%{_bindir}/emaneeventservice
%{_mandir}/man1/emaneeventservice.1.gz
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files devel
%defattr(-, root, root)
%dir %{_includedir}/emane
%{_includedir}/emane/*
%{_libdir}/pkgconfig/*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-rfpipe
%defattr(-, root, root)
%{_libdir}/librfpipemaclayer.*
%dir %{_datadir}/emane/xml/models/mac/rfpipe
%{_datadir}/emane/xml/models/mac/rfpipe/rfpipemac.xml
%{_datadir}/emane/xml/models/mac/rfpipe/rfpipenem.xml
%{_datadir}/emane/xml/models/mac/rfpipe/rfpipepcr.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-bypass
%defattr(-, root, root)
%{_libdir}/libbypassmaclayer.*
%{_libdir}/libbypassphylayer.*
%dir %{_datadir}/emane/xml/models/phy/bypass
%{_datadir}/emane/xml/models/phy/bypass/bypassphy.xml
%dir %{_datadir}/emane/xml/models/mac/bypass
%{_datadir}/emane/xml/models/mac/bypass/bypassmac.xml
%{_datadir}/emane/xml/models/mac/bypass/bypassnem.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-ieee80211abg
%defattr(-, root, root)
%{_libdir}/libieee80211abgmaclayer.*
%dir %{_datadir}/emane/xml/models/mac/ieee80211abg
%{_datadir}/emane/xml/models/mac/ieee80211abg/ieee80211abgmac.xml
%{_datadir}/emane/xml/models/mac/ieee80211abg/ieee80211abgnem.xml
%{_datadir}/emane/xml/models/mac/ieee80211abg/ieee80211pcr.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files agent-gpsdlocation
%defattr(-, root, root)
%{_libdir}/libgpsdlocationagent.*
%dir %{_datadir}/emane/xml/agents/gpsdlocation
%{_datadir}/emane/xml/agents/gpsdlocation/gpsdlocationagent.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files trans-virtual
%defattr(-, root, root)
%{_libdir}/libtransvirtual.*
%dir %{_datadir}/emane/xml/transports/virtual
%{_datadir}/emane/xml/transports/virtual/transvirtual.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files trans-raw
%defattr(-, root, root)
%{_libdir}/libtransraw.*
%dir %{_datadir}/emane/xml/transports/raw
%{_datadir}/emane/xml/transports/raw/transraw.xml
%files trans-common
%defattr(-, root, root)
%{_libdir}/libcommontransport.*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-phyapitestshim
%defattr(-, root, root)
%{_libdir}/libphyapitestshim.*
%dir %{_datadir}/emane/xml/models/shim/phyapitest
%{_datadir}/emane/xml/models/shim/phyapitest/phyapitestshim.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-timinganalysisshim
%defattr(-, root, root)
%{_libdir}/libtiminganalysisshim.*
%dir %{_datadir}/emane/xml/models/shim/timinganalysis
%{_datadir}/emane/xml/models/shim/timinganalysis/timinganalysisshim.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-commeffect
%defattr(-,root,root,-)
%{_libdir}/libcommeffectshim.*
%dir %{_datadir}/emane/xml/models/shim/commeffect
%{_datadir}/emane/xml/models/shim/commeffect/commeffectshim.xml
%{_datadir}/emane/xml/models/shim/commeffect/commeffectnem.xml
%{_datadir}/emane/xml/models/shim/commeffect/commeffectfilters.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files model-tdmaeventscheduler
%defattr(-,root,root,-)
%{_libdir}/libtdmabase.*
%{_libdir}/libtdmaeventschedulerradiomodel.*
%dir %{_datadir}/emane/xml/models/mac/tdmaeventscheduler
%{_datadir}/emane/xml/models/mac/tdmaeventscheduler/tdmanem.xml
%{_datadir}/emane/xml/models/mac/tdmaeventscheduler/tdmaradiomodel.xml
%{_datadir}/emane/xml/models/mac/tdmaeventscheduler/tdmabasemodelpcr.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files gen-eel
%defattr(-,root,root,-)
%{_libdir}/libeelgenerator.*
%{_libdir}/libeelloaderlocation.*
%{_libdir}/libeelloaderpathloss.*
%{_libdir}/libeelloaderantennaprofile.*
%{_libdir}/libeelloadercommeffect.*
%dir %{_datadir}/emane/xml/generators/eel
%{_datadir}/emane/xml/generators/eel/eelgenerator.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files manifest
%defattr(-, root, root)
%dir %{_datadir}/emane
%dir %{_datadir}/emane/manifest
%{_datadir}/emane/manifest/*.xml
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif