/
ace-tao.spec
2650 lines (2053 loc) · 71.1 KB
/
ace-tao.spec
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
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Set the version number here.
%define ACEVER 7.1.4
%define TAOVER 3.1.4
# Conditional build
# Default values are
# --with ipv6 (IPv6 support)
# --with opt (Optimized build)
# --with zlib (Zlib compressor)
# --with bzip2 (Bzip2 compressor)
# --with tao (TAO)
# --without fltk (No ftlk support)
# --without tk (No tk support)
# --without xt (No xt support)
# --without fox (No fox support)
# --without qt (No qt support)
# --without inline (Code inlining disabled)
# --without versioned (Versioned namespace)
#
# Read: If neither macro exists, then add the default definition.
%{!?_with_ipv6: %{!?_without_ipv6: %define _with_ipv6 --with-ipv6}}
%{!?_with_opt: %{!?_without_opt: %define _with_opt --with-opt}}
%{!?_with_zlib: %{!?_without_zlib: %define _with_zlib --with-zlib}}
%{!?_with_bzip2: %{!?_without_bzip2: %define _with_bzip2 --with-bzip2}}
%{!?_with_tao: %{!?_without_tao: %global _with_tao --with-tao}}
%{!?_with_ftlk: %{!?_without_ftlk: %define _without_ftlk --without-ftlk}}
%{!?_with_tk: %{!?_without_tk: %define _without_tk --without-tk}}
%{!?_with_xt: %{!?_without_xt: %define _without_xt --without-xt}}
%{!?_with_fox: %{!?_without_fox: %define _without_fox --without-fox}}
%{!?_with_qt: %{!?_without_qt: %define _without_qt --without-qt}}
%{!?_with_inline: %{!?_without_inline: %define _without_inline --without-inline}}
%{!?_with_versioned: %{!?_without_versioned: %define _without_versioned 0}}
#
# Read: It's an error if both or neither required options exist.
%{?_with_ipv6: %{?_without_ipv6: %{error: both _with_ipv6 and _without_ipv6}}}
%{?_with_opt: %{?_without_opt: %{error: both _with_opt and _without_opt}}}
%{?_with_zlib: %{?_without_zlib: %{error: both _with_zlib and _without_zlib}}}
%{?_with_bzip2: %{?_without_bzip2: %{error: both _with_bzip2 and _without_bzip2}}}
%{?_with_tao: %{?_without_tao: %{error: both _with_tao and _without_tao}}}
%{?_with_fltk: %{?_without_fltk: %{error: both _with_fltk and _without_fltk}}}
%{?_with_tk: %{?_without_tk: %{error: both _with_tk and _without_tk}}}
%{?_with_xt: %{?_without_xt: %{error: both _with_xt and _without_xt}}}
%{?_with_fox: %{?_without_fox: %{error: both _with_fox and _without_fox}}}
%{?_with_qt: %{?_without_qt: %{error: both _with_qt and _without_qt}}}
%{?_with_inline: %{?_without_inline: %{error: both _with_inline and _without_inline}}}
%{?_with_versioned: %{?_without_versioned: %{error: both _with_versioned and _without_versioned}}}
%{!?skip_make:%global skip_make 0}
%{!?make_nosrc:%global make_nosrc 0}
%define have_fox 0
%if %{?_with_opt:0}%{!?_with_opt:1}
%define OPTTAG .O0
%endif
Name: ace-tao
%if 0%{?_with_tao:1}%{?_without_tao:0}
Summary: The ADAPTIVE Communication Environment (ACE) and The ACE ORB (TAO)
%else
Summary: The ADAPTIVE Communication Environment (ACE)
%endif
Version: %{ACEVER}
%if 0%{?opensuse_bs}
Release: <CI_CNT>%{?OPTTAG}%{?dist}
%else
Release: 1%{?OPTTAG}%{?dist}
%endif
Group: Development/Libraries/C and C++
URL: http://www.dre.vanderbilt.edu/~schmidt/ACE.html
License: DOC
%if 0%{?_with_tao:1}%{?_without_tao:0}
Source0: http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO-src-%{ACEVER}.tar.gz
%else
Source0: http://download.dre.vanderbilt.edu/previous_versions/ACE-src-%{ACEVER}.tar.gz
%endif
Source1: ace-tao-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _extension .gz
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: redhat-rpm-config elfutils
%endif
%if !0%{?suse_version}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Requires(postun): /sbin/ldconfig
%else
PreReq: %install_info_prereq %insserv_prereq %fillup_prereq
PreReq: pwdutils
%endif
%if 0%{?mdkversion}
BuildRequires: sendmail
%endif
BuildRequires: openssl-devel
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
%if %{?_with_zlib:1}%{!?_with_zlib:0}
BuildRequires: zlib-devel
%endif
%if %{?_with_bzip2:1}%{!?_with_bzip2:0}
BuildRequires: bzip2
%endif
BuildRequires: perl perl(Data::Dumper)
%if %{?_with_fltk:1}%{!?_with_fltk:0}
BuildRequires: fltk-devel
%define fltk_pac ace-flreactor
%endif
%if %{?_with_tk:1}%{!?_with_tk:0}
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: tk
%define tk_pac ace-tkreactor
%define tao_tk_pac tao-tkresource
%endif
%if %{?_with_qt:1}%{!?_with_qt:0}
%define qt_pack ace-qtreactor
%define tao_qt_pac tao-qtresource
# qt3 has a name change in F9
%if 0%{?fedora} > 8
%define qtpacname qt3
%else
%define qtpacname qt
%endif
%if 0%{?suse_version}
%define qtpacname qt3
%endif
BuildRequires: %{qtpacname}-devel
%endif
%if %{?_with_fox:1}%{!?_with_fox:0}
%if 0%{?suse_version} == 1020
BuildRequires: fox16-devel
%endif
%define fox_pac ace_foxreactor
%endif
%if %{?_with_xt:1}%{!?_with_xt:0}
%define xt_pac ace-xtreactor
%define tao_xt_pac tao-xtresource
%endif
%if %{?_with_fl:1}%{!?_with_fl:0}
%define tao_fl_pac tao-flresource
%endif
%if 0%{?suse_version}
%global ace_packages ace ace-xml ace-gperf ace-kokyu
%global tao_packages tao tao-utils tao tao-cosnaming tao-cosevent tao-cosnotification tao-costrading tao-rtevent tao-cosconcurrency
%global all_ace_packages %{?ace_packages} %{?fltk_pac} %{?tk_pac} %{?qt_pac} %{?fox_pac} %{?xt_pac}
%if 0%{?_with_tao:1}%{?_without_tao:0}
%global all_tao_packages %{?tao_packages} %{?tao_fl_pac} %{?tao_qt_pac} %{?tao_xt_pac} %{?tao_tk_pac}
%endif
%global debug_package_requires %{all_ace_packages} %{?all_tao_packages}
%endif
%if 0%{?make_nosrc}
# Leave out the distro for now
NoSource: 0
%endif
%description -n ace-tao
The ADAPTIVE Communication Environment (ACE) is a freely available,
open-source object-oriented (OO) framework that implements many core
patterns for concurrent communication software. ACE provides a rich
set of reusable C++ wrapper facades and framework components that
perform common communication software tasks across a range of OS
platforms. The communication software tasks provided by ACE include
event demultiplexing and event handler dispatching, signal handling,
service initialization, interprocess communication, shared memory
management, message routing, dynamic (re)configuration of distributed
services, concurrent execution and synchronization.
TAO is a real-time implementation of CORBA built using the framework
components and patterns provided by ACE. TAO contains the network
interface, OS, communication protocol, and CORBA middleware components
and features. TAO is based on the standard OMG CORBA reference model,
with the enhancements designed to overcome the shortcomings of
conventional ORBs for high-performance and real-time applications.
# ---------------- ace ----------------
%package -n ace
Summary: The ADAPTIVE Communication Environment (ACE)
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: openssl
%description -n ace
The ADAPTIVE Communication Environment (ACE) is a freely available,
open-source object-oriented (OO) framework that implements many core
patterns for concurrent communication software. ACE provides a rich
set of reusable C++ wrapper facades and framework components that
perform common communication software tasks across a range of OS
platforms. The communication software tasks provided by ACE include
event demultiplexing and event handler dispatching, signal handling,
service initialization, interprocess communication, shared memory
management, message routing, dynamic (re)configuration of distributed
services, concurrent execution and synchronization.
# ---------------- ace-devel ----------------
%package -n ace-devel
Summary: Header files and development components for ACE
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
Requires: openssl-devel
%if !0%{?suse_version}
Provides: perl(PerlACE::Run_Test) perl(Process) perl(VmsProcess) perl(Win32::Process)
%endif
%description -n ace-devel
This package contains the components needed for developing programs
using ACE.
# ---------------- ace-xml ----------------
%package -n ace-xml
Summary: ACE XML Runtime Support
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
%description -n ace-xml
ACE XML Parser interfaces follows the the design of SAX 2.0, which is
a public domain specification for Java. The major difference between
ACE XML Parser interfaces and SAX is that we added an reference of
ACEXML_Env to every SAX method to accommodate platforms/compilers that
don't support C++ exceptions. SAX is defined by David Megginson
<david@megginson.com>
# ---------------- ace-gperf ----------------
%package -n ace-gperf
Summary: ACE gperf
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
%description -n ace-gperf
ACE gperf utility
# ---------------- ace-xml-devel ----------------
%package -n ace-xml-devel
Summary: Header files and development components for ACE XML
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-xml = %{ACEVER}
%description -n ace-xml-devel
This package contains the components needed for developing programs
using ACEXML.
# ---------------- ace-kokyu ----------------
%package -n ace-kokyu
Summary: Kokyu scheduling framework for ACE
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
%description -n ace-kokyu
Kokyu is a portable middleware scheduling framework designed to
provide flexible scheduling and dispatching services within the
context of higher-level middleware. Kokyu currently provides real-time
scheduling and dispatching services for TAO's real-time Event Service
which mediates supplier-consumer relationships between application
operations. Kokyu also provides a scheduling and dispatching framework
for threads. This is being used by the TAO RTCORBA 2.0 scheduler
implementations.
# ---------------- ace-kokyu-devel ----------------
%package -n ace-kokyu-devel
Summary: Header files and development components for the ACE Kokyu scheduler
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-kokyu = %{ACEVER}
%description -n ace-kokyu-devel
This package contains the components needed for developing programs
using Kokyu.
# ---------------- ace-foxreactor ----------------
%if %{?_with_fox:1}%{!?_with_fox:0}
%if 0%{?have_fox} == 1
%package -n ace-foxreactor
Summary: ACE_FoxReactor for use with the FOX toolkit
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
Requires: fox16
%description -n ace-foxreactor
A Reactor implementation that uses the FOX toolkit for
event demultiplexing. This will let us integrate the FOX toolkit with
ACE and/or TAO.
%endif
%endif
# ---------------- ace-foxreactor-devel ----------------
%if %{?_with_fox:1}%{!?_with_fox:0}
%if 0%{?have_fox} == 1
%package -n ace-foxreactor-devel
Summary: Header files for development with ACE_FoxReactor
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-foxreactor = %{ACEVER}
Requires: fox16-devel
%description -n ace-foxreactor-devel
This package contains the components needed for developing programs
using the ACE_FoxReactor.
%endif
%endif
# ---------------- ace-flreactor ----------------
%if %{?_with_fl:1}%{!?_with_fl:0}
%package -n ace-flreactor
Summary: ACE_FlReactor for use with the Fast-Light toolkit
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
Requires: fltk
%description -n ace-flreactor
A Reactor implementation that uses the Fast-Light (FL) toolkit for
event demultiplexing. This will let us integrate the FL toolkit with
ACE and/or TAO.
%endif
# ---------------- ace-flreactor-devel ----------------
%if %{?_with_fl:1}%{!?_with_fl:0}
%package -n ace-flreactor-devel
Summary: Header files for development with ACE_FlReactor
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-flreactor = %{ACEVER}
Requires: fltk-devel
%description -n ace-flreactor-devel
This package contains the components needed for developing programs
using the ACE_FlReactor.
%endif
# ---------------- ace-qtreactor ----------------
%if %{?_with_qt:1}%{!?_with_qt:0}
%package -n ace-qtreactor
Summary: ACE_QtReactor for use with Qt library
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
Requires: qt4
%description -n ace-qtreactor
A Reactor implementation that uses the Qt toolkit for event
demultiplexing. This will let us integrate the Qt toolkit with ACE
and/or TAO.
%endif
# ---------------- ace-qtreactor-devel ----------------
%if %{?_with_qt:1}%{!?_with_qt:0}
%package -n ace-qtreactor-devel
Summary: Header files for development with ACE_QtReactor
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-qtreactor = %{ACEVER}
Requires: qt4-devel
%description -n ace-qtreactor-devel
This package contains the components needed for developing programs
using the ACE_QtReactor.
%endif
# ---------------- ace-tkreactor ----------------
%if %{?_with_tk:1}%{!?_with_tk:0}
%package -n ace-tkreactor
Summary: ACE_TkReactor for use with Tk toolkit
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
Requires: tk
%description -n ace-tkreactor
A Reactor implementation that uses the Tk toolkit for event
demultiplexing. This will let us integrate the Tk toolkit with ACE
and/or TAO.
%endif
# ---------------- ace-tkreactor-devel ----------------
%if %{?_with_tk:1}%{!?_with_tk:0}
%package -n ace-tkreactor-devel
Summary: Header files for development with ACE_TkReactor
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-tkreactor = %{ACEVER}
Requires: tk-devel
%description -n ace-tkreactor-devel
This package contains the components needed for developing programs
using the ACE_TkReactor.
%endif
# ---------------- ace-xtreactor ----------------
%if %{?_with_xt:1}%{!?_with_xt:0}
%package -n ace-xtreactor
Summary: ACE_XtReactor for use with the X Toolkit
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
# The xorg packaging scheme changed, let autoreq to the job for now.
# Requires: xorg-x11-libs
%description -n ace-xtreactor
A Reactor implementation that uses the X Toolkit for event
demultiplexing. This will let us integrate the X Toolkit with ACE
and/or TAO.
%endif
# ---------------- ace-xtreactor-devel ----------------
%if %{?_with_xt:1}%{!?_with_xt:0}
%package -n ace-xtreactor-devel
Summary: Header files for development with ACE_XtReactor
Version: %{ACEVER}
Group: Development/Libraries/C and C++
Requires: ace-devel = %{ACEVER}
Requires: ace-xtreactor = %{ACEVER}
# The xorg package naming scheme changed, use specific files for now.
# old -> Requires: xorg-x11-devel
# new -> Requires: libX11-devel
Requires: %{_libdir}/libX11.so
Requires: %{_libdir}/libXt.so
%description -n ace-xtreactor-devel
This package contains the components needed for developing programs
using the ACE_XtReactor.
%endif
# ---------------- MPC ----------------
%package -n mpc
Summary: Make Project Creator
Version: %{ACEVER}
Group: Development/Tools/Building
%if !0%{?suse_version}
Provides: perl(Driver) perl(MakeProjectBase) perl(ObjectGenerator) perl(ProjectCreator) perl(WorkspaceCreator) perl(WorkspaceHelper) perl(DependencyWriter) perl(WIXProjectCreator)
%endif
%description -n mpc
The Makefile, Project and Workspace Creator.
Designed by Justin Michel (michel_j@ociweb.com) and Chad Elliott.
Implemented by Chad Elliott (elliott_c@ociweb.com).
A single tool (MPC) can be used to generate tool specific input (i.e.
Makefile, dsp, vcproj, etc). The generator takes platform and building
tool generic files (mpc files) as input which describe basic information
needed to generate a "project" file for various build tools. These tools
include Make, NMake, Visual C++ 6, Visual C++ 7, etc.
# ---------------- tao ----------------
%if 0%{?_with_tao:1}%{?_without_tao:0}
%package -n tao
Summary: The ACE ORB (TAO)
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace = %{ACEVER}
%description -n tao
TAO is a real-time implementation of CORBA built using the framework
components and patterns provided by ACE. TAO contains the network
interface, OS, communication protocol, and CORBA middleware components
and features. TAO is based on the standard OMG CORBA reference model,
with the enhancements designed to overcome the shortcomings of
conventional ORBs for high-performance and real-time applications.
# ---------------- tao-devel ----------------
%package -n tao-devel
Summary: Header files and development components for TAO
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: ace-devel = %{ACEVER}
Requires: ace-gperf = %{ACEVER}
%description -n tao-devel
This package contains the components needed for developing programs
using TAO.
# ---------------- tao-utils ----------------
%package -n tao-utils
Summary: TAO naming service and IOR utilities
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
%description -n tao-utils
This package includes programs to query or control a CORBA naming service,
and to dump an IOR.
The following programs are included:
* tao-nslist, to list naming context and object bindings
* tao-nsadd, to create bindings
* tao-nsdel, to remove bindings
* tao-catior, to dump the content of an Interoperable Object Reference
# ---------------- tao-cosnaming ----------------
%package -n tao-cosnaming
Summary: The TAO CORBA Naming Service (CosNaming) and Interoperable Naming Service (INS)
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-cosnaming
OMG defined CORBA Naming Service to provide a basic service location
mechanism for CORBA systems. CosNaming manages a hierarchy of
name-to-object-reference mappings. Anything, but typically the server
process hosting an object, may bind an object reference with a name in
the Naming Service by providing the name and object
reference. Interested parties (typically clients) can then use the
Naming Service to resolve a name to an object reference.
More recently, CORBA Naming Service was subsumed/extended by the CORBA
Interoperable Naming Service, a.k.a. INS. INS inherits all the
functionality from the original Naming Service specification in
addition to addressing some its shortcomings. In particular, INS
defines a standard way for clients and servers to locate the Naming
Service itself. It also allows the ORB to be administratively
configured for bootstrapping to services not set up with the orb at
install time.
# ---------------- tao-cosevent ----------------
%package -n tao-cosevent
Summary: The TAO CORBA CosEvent Service
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-cosevent
The CosEvent_Service is a COS compliant Event Service.
The service is registered with the naming service with the name
"CosEventService" . It exposes the <EventChannel> interface which can be
used by suppliers and consumers to send and receive events.
# ---------------- tao-cosnotification ----------------
%package -n tao-cosnotification
Summary: The TAO CORBA Notification Service
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-cosnotification
The Notify_Service is a COS compliant Notification Service.
The Notify_Service executable starts up a Notification Service factory
and registers it with the Naming Service under the name
"NotifyEventChannelFactory"
# ---------------- tao-costrading ----------------
%package -n tao-costrading
Summary: The TAO CORBA Trading Service
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-costrading
The Trading_Service is a COS compliant Trading Service.
# ---------------- tao-rtevent ----------------
%package -n tao-rtevent
Summary: The TAO Real-time Event Service
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-rtevent
The TAO Real-Time Event Service. This is a TAO specific service
implementation
# ---------------- tao-cosconcurrency ----------------
%package -n tao-cosconcurrency
Summary: The TAO CORBA Concurrency Service
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: tao = %{TAOVER}
Requires: logrotate
%description -n tao-cosconcurrency
The CORBA Concurrency Service. One of the standard CORBA services.
# ---------------- tao-flresource ----------------
%if %{?_with_fl:1}%{!?_with_fl:0}
%package -n tao-flresource
Summary: FlResource_Factory for creating FlReactor
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-flreactor = %{ACEVER}
Requires: tao = %{TAOVER}
%description -n tao-flresource
This factory is intended for creating FlReactor for ORB. This factory
can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory
method which is usually done by TAO_FlResource_Loader.
%endif
# ---------------- tao-flresource-devel ----------------
%if %{?_with_fl:1}%{!?_with_fl:0}
%package -n tao-flresource-devel
Summary: Header files for development with FlResource_Factory
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-flreactor-devel = %{ACEVER}
Requires: tao-devel = %{TAOVER}
Requires: tao-flresource = %{TAOVER}
%description -n tao-flresource-devel
This package contains the components needed for developing programs
using the FlResource_Factory.
%endif
# ---------------- tao-qtresource ----------------
%if %{?_with_qt:1}%{!?_with_qt:0}
%package -n tao-qtresource
Summary: QtResource_Factory for creating QtReactor
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-qtreactor = %{ACEVER}
Requires: tao = %{TAOVER}
%description -n tao-qtresource
This factory is intended for creating QtReactor for ORB. This factory
can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory
method which is usually done by TAO_QtResource_Loader.
%endif
# ---------------- tao-qtresource-devel ----------------
%if %{?_with_qt:1}%{!?_with_qt:0}
%package -n tao-qtresource-devel
Summary: Header files for development with QtResource_Factory
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-qtreactor-devel = %{ACEVER}
Requires: tao-devel = %{TAOVER}
Requires: tao-qtresource = %{TAOVER}
%description -n tao-qtresource-devel
This package contains the components needed for developing programs
using the QtResource_Factory.
%endif
# ---------------- tao-tkresource ----------------
%if %{?_with_tk:1}%{!?_with_tk:0}
%package -n tao-tkresource
Summary: TkResource_Factory for creating TkReactor
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-tkreactor = %{ACEVER}
Requires: tao = %{TAOVER}
%description -n tao-tkresource
This factory is intended for creating TkReactor for ORB. This factory
can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory
method which is usually done by TAO_TkResource_Loader.
%endif
# ---------------- tao-tkresource-devel ----------------
%if %{?_with_tk:1}%{!?_with_tk:0}
%package -n tao-tkresource-devel
Summary: Header files for development with TkResource_Factory
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-tkreactor-devel = %{ACEVER}
Requires: tao-devel = %{TAOVER}
Requires: tao-tkresource = %{TAOVER}
%description -n tao-tkresource-devel
This package contains the components needed for developing programs
using the TkResource_Factory.
%endif
# ---------------- tao-xtresource ----------------
%if %{?_with_xt:1}%{!?_with_xt:0}
%package -n tao-xtresource
Summary: XtResource_Factory for creating XtReactor
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-xtreactor = %{ACEVER}
Requires: tao = %{TAOVER}
%description -n tao-xtresource
This factory is intended for creating XtReactor for ORB. This factory
can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory
method which is usually done by TAO_XtResource_Loader.
%endif
# ---------------- tao-xtresource-devel ----------------
%if %{?_with_xt:1}%{!?_with_xt:0}
%package -n tao-xtresource-devel
Summary: Header files for development with XtResource_Factory
Version: %{TAOVER}
Group: Development/Libraries/C and C++
Requires: ace-xtreactor-devel = %{ACEVER}
Requires: tao-devel = %{TAOVER}
Requires: tao-xtresource = %{TAOVER}
%description -n tao-xtresource-devel
This package contains the components needed for developing programs
using the XtResource_Factory.
%endif
%endif
# ================================================================
# prep
# ================================================================
%prep
%setup -q -n ACE_wrappers
# ================================================================
# build
# ================================================================
%build
export ACE_ROOT=$(pwd)
export MPC_ROOT=$ACE_ROOT/MPC
export LD_LIBRARY_PATH=$ACE_ROOT/lib
%if 0%{?_with_tao:1}%{?_without_tao:0}
export TAO_ROOT=$ACE_ROOT/TAO
%endif
# Dump the g++ versions, in case the g++ version is broken we can
# easily see this in the build log
g++ --version
g++ -dumpversion
%define inline %{nil}
%if %skip_make
cd .. && rm -rf ACE_wrappers && ln -s ACE_wrappers-BUILT ACE_wrappers
%else
cat > $ACE_ROOT/ace/config.h << EOF
EOF
# If ipv6 support is indicated insert some lines into the config.h file
%if %{?_with_ipv6:1}%{!?_with_ipv6:0}
cat >> $ACE_ROOT/ace/config.h << EOF
#define ACE_HAS_IPV6
#define ACE_USES_IPV4_IPV6_MIGRATION
EOF
%endif
# Include platform include
cat >> $ACE_ROOT/ace/config.h << EOF
#include "ace/config-linux.h"
EOF
# platform_macros.GNU
%if 0%{?suse_version}
cat > $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
CCFLAGS += %optflags
CFLAGS += %optflags
EOF
%endif
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
ssl = 1
EOF
%if %{?_with_inline:1}%{!?_with_inline:0}
%define inline -D__ACE_INLINE__ -U__ACE_NO_INLINE__
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
inline = 1
EOF
%else
%define inline -D__ACE_NO_INLINE__ -U__ACE_INLINE__
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
inline = 0
EOF
%endif
%if %{?_with_xt:1}%{!?_with_xt:0}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
xt = 1
ace_xtreactor = 1
x11 = 1
tao_xtresource = 1
EOF
%endif
%if %{?_with_tk:1}%{!?_with_tk:0}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
ace_tkreactor = 1
tao_tkresource = 1
tk = 1
EOF
%endif
%if %{?_with_fl:1}%{!?_with_fl:0}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
fl = 1
tao_flresource = 1
ace_flreactor = 1
EOF
%endif
%if %{?_with_qt:1}%{!?_with_qt:0}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
qt4 = 1
gl = 1
ace_qt4reactor = 1
tao_qt4resource = 1
EOF
%endif
%if %{?_with_fox:1}%{!?_with_fox:0}
%if 0%{?have_fox} == 1
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
fox = 1
ace_foxreactor = 1
tao_foxresource = 1
%endif
%endif
# 64 bit machines need additional macro.
%ifarch x86_64 ia64 ppc64 s390x
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
buildbits = 64
EOF
%endif
%ifarch ppc64
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
minimaltoc = 1
EOF
%endif
%if %{?_with_opt:0}%{!?_with_opt:1}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
optimize = 0
EOF
%else
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
optimize = 1
EOF
%endif
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU
EOF
cat > $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
ssl=1
EOF
%if %{?_with_bzip2:1}%{!?_with_bzip2:0}
cat >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
bzip2 = 1
EOF
%endif
%if %{?_with_zlib:1}%{!?_with_zlib:0}
cat >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
zlib = 1
EOF
%endif
%if %{?_with_versioned:1}%{!?_with_versioned:0}
cat >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
versioned_namespace = 1
EOF
%endif
# We don't use default.features to enable ipv6 cause it conflicts w/
# the config.h generated version. Config.h is superior because it is
# shipped to the end-user machines and also defines
# ACE_USES_IPV4_IPV6_MIGRATION which the default.features technique
# does not seem to set.
%if %{?_with_fox:1}%{!?_with_fox:0}
%if 0%{?have_fox} == 1
cat >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
fox=1
EOF
%endif
%endif
# Need to regenerate all of the GNUMakefiles
# then make everything that we have generated for
%if 0%{?_with_tao:1}%{?_without_tao:0}
bin/mwc.pl -type gnuace TAO/TAO_ACE.mwc
make %{?_smp_mflags} -C $TAO_ROOT
%else
bin/mwc.pl -type gnuace ACE.mwc
make %{?_smp_mflags} -C $ACE_ROOT
%endif
%endif
# ================================================================
# install
# ================================================================