Пакет ace-tao-ciao: Specfile

   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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
# Set the version number here.
%define ACEVER  5.6.8
%define TAOVER  1.6.8
%define CIAOVER 0.6.8
# Set is_major_ver if the version is X.Y instead X.Y.Z

# Conditional build
# Default values are --with guilibs    (fltk, tk ,xt and qt support)
#                    --with rnq        (ACE_HAS_REACTOR_NOTIFICATION_QUEUE)
#                    --with ipv6       (IPv6 support)
#                    --with opt        (Optimized build)

%define _with_guilibs --with-guilibs
%define _with_rnq --with-rnq
%define _with_ipv6 --with-ipv6
%define _with_opt --with-opt

%define skip_make 0
%define make_nosrc 0
%define is_major_ver 0

%define _extension .gz

Summary: The ADAPTIVE Communication Environment (ACE) and The ACE ORB (TAO)
Name: ace-tao-ciao
Version: %ACEVER
Release: alt3.svn20090220
Group: Development/Tools
URL: http://www.cs.wustl.edu/~schmidt/ACE.html
License: DOC License
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
# svn co svn://svn.dre.vanderbilt.edu/DOC/Middleware/sets-anon/ACE+TAO+CIAO .
Source: ACE+TAO+CIAO-%version.tar.bz2
Source1: start_d.ins
Source2: stop_d.ins
Source3: init.info

Requires(post): /sbin/install-info
Requires(preun):  /sbin/install-info

BuildRequires: openssl-devel service

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
BuildRequires: perl
BuildRequires: libfltk-devel gcc-c++ lsb-core
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: tk

BuildRequires: qt3-devel libX11-devel
%endif

%if %make_nosrc
# Leave out the distro for now
NoSource: 0
%endif

%description

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 libace
Summary: The ADAPTIVE Communication Environment (ACE)
Version: %ACEVER
Group: System/Libraries

%description -n libace

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 libace-devel
Summary: Header files and development components for ACE
Version: %ACEVER
Group: Development/C++
Requires: libace = %ACEVER
Requires: openssl-devel

%description -n libace-devel

This package contains the components needed for developing programs
using ACE.

# ---------------- ace-xml ----------------

%package -n libace-xml
Summary:  ACE XML Runtime Support
Version:  %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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-xml-devel ----------------

%package -n libace-xml-devel
Summary:  Header files and development components for ACE XML
Version:  %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-xml = %ACEVER

%description -n libace-xml-devel

This package contains the components needed for developing programs
using ACEXML.

# ---------------- ace-kokyu ----------------

%package -n libace-kokyu
Summary: Kokyu scheduling framework for ACE
Version: %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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 libace-kokyu-devel
Summary: Header files and development components for the ACE Kokyu scheduler
Version: %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-kokyu = %ACEVER

%description -n libace-kokyu-devel

This package contains the components needed for developing programs
using Kokyu.


# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
# ---------------- ace-flreactor ----------------

%package -n libace-flreactor
Summary: ACE_FlReactor for use with the Fast-Light toolkit
Version: %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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.

# ---------------- ace-flreactor-devel ----------------

%package -n libace-flreactor-devel
Summary: Header files for development with ACE_FlReactor
Version: %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-flreactor = %ACEVER

%description -n libace-flreactor-devel

This package contains the components needed for developing programs
using the ACE_FlReactor.

# ---------------- ace-qtreactor ----------------

%package -n libace-qtreactor
Summary: ACE_QtReactor for use with Qt library
Version: %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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.

# ---------------- ace-qtreactor-devel ----------------

%package -n libace-qtreactor-devel
Summary: Header files for development with ACE_QtReactor
Version: %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-qtreactor = %ACEVER

%description -n libace-qtreactor-devel

This package contains the components needed for developing programs
using the ACE_QtReactor.

# ---------------- ace-tkreactor ----------------

%package -n libace-tkreactor
Summary: ACE_TkReactor for use with Tk toolkit
Version: %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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.

# ---------------- ace-tkreactor-devel ----------------

%package -n libace-tkreactor-devel
Summary: Header files for development with ACE_TkReactor
Version: %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-tkreactor = %ACEVER

%description -n libace-tkreactor-devel

This package contains the components needed for developing programs
using the ACE_TkReactor.

# ---------------- ace-xtreactor ----------------

%package -n libace-xtreactor
Summary: ACE_XtReactor for use with the X Toolkit
Version: %ACEVER
Group: System/Libraries
Requires: libace = %ACEVER

%description -n libace-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.

# ---------------- ace-xtreactor-devel ----------------

%package -n libace-xtreactor-devel
Summary: Header files for development with ACE_XtReactor
Version: %ACEVER
Group: Development/C++
Requires: libace-devel = %ACEVER
Requires: libace-xtreactor = %ACEVER

%description -n libace-xtreactor-devel

This package contains the components needed for developing programs
using the ACE_XtReactor.
%endif

%package -n libtao
Summary: The ACE ORB (TAO)
Version: %TAOVER
Group: System/Libraries
Requires: libace = %ACEVER
Requires: libace-xml = %ACEVER
Requires: libace-kokyu = %ACEVER

%description -n libtao

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 libtao-devel
Summary: Header files and development components for TAO
Version: %TAOVER
Group: Development/C++
Requires: libtao = %TAOVER
Requires: libace-devel = %ACEVER
Requires: libace-xml-devel = %ACEVER
Requires: libace-kokyu-devel = %ACEVER

%description -n libtao-devel

This package contains the components needed for developing programs
using TAO.

# ---------------- tao-cosnaming ----------------

%package -n tao-cosnaming
Summary: The TAO CORBA Naming Service (CosNaming) and Interoperable Naming Service (INS)
Version: %TAOVER
Group: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%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: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%description -n tao-cosevent

The CosEvent_Service is a COS compilant 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: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%description -n tao-cosnotification

The Notify_Service is a COS compilant 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: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%description -n tao-costrading

The Trading_Service is a COS compilant Trading Service.

# ---------------- tao-rtevent ----------------

%package -n tao-rtevent
Summary: The TAO Real-time Event Service
Version: %TAOVER
Group: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%description -n tao-rtevent

The TAO Real-time Event Service.

# ---------------- tao-cosconcurrency ----------------

%package -n tao-cosconcurrency
Summary: The TAO CORBA Concurrency Service
Version: %TAOVER
Group: Networking/Other
Requires: libtao = %TAOVER
BuildRequires: service

%description -n tao-cosconcurrency

The CORBA Concurrency Service.

# ---------------- tao-flresource ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%package -n libtao-flresource
Summary: FlResource_Factory for creating FlReactor
Version: %TAOVER
Group: System/Libraries
Requires: libace-flreactor = %ACEVER
Requires: libtao = %TAOVER

%description -n libtao-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.

# ---------------- tao-flresource-devel ----------------

%package -n libtao-flresource-devel
Summary: Header files for development with FlResource_Factory
Version: %TAOVER
Group: Development/C++
Requires: libace-flreactor-devel = %ACEVER
Requires: libtao-devel = %TAOVER
Requires: libtao-flresource = %TAOVER

%description -n libtao-flresource-devel

This package contains the components needed for developing programs
using the FlResource_Factory.

# ---------------- tao-qtresource ----------------

%package -n libtao-qtresource
Summary: QtResource_Factory for creating QtReactor
Version: %TAOVER
Group: System/Libraries
Requires: libace-qtreactor = %ACEVER
Requires: libtao = %TAOVER

%description -n libtao-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.

# ---------------- tao-qtresource-devel ----------------

%package -n libtao-qtresource-devel
Summary: Header files for development with QtResource_Factory
Version: %TAOVER
Group: Development/C++
Requires: libace-qtreactor-devel = %ACEVER
Requires: libtao-devel = %TAOVER
Requires: libtao-qtresource = %TAOVER

%description -n libtao-qtresource-devel

This package contains the components needed for developing programs
using the QtResource_Factory.

# ---------------- tao-tkresource ----------------

%package -n libtao-tkresource
Summary: TkResource_Factory for creating TkReactor
Version: %TAOVER
Group: System/Libraries
Requires: libace-tkreactor = %ACEVER
Requires: libtao = %TAOVER

%description -n libtao-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.

# ---------------- tao-tkresource-devel ----------------

%package -n libtao-tkresource-devel
Summary: Header files for development with TkResource_Factory
Version: %TAOVER
Group: Development/C++
Requires: libace-tkreactor-devel = %ACEVER
Requires: libtao-devel = %TAOVER
Requires: libtao-tkresource = %TAOVER

%description -n libtao-tkresource-devel

This package contains the components needed for developing programs
using the TkResource_Factory.

# ---------------- tao-xtresource ----------------

%package -n libtao-xtresource
Summary: XtResource_Factory for creating XtReactor
Version: %TAOVER
Group: System/Libraries
Requires: libace-xtreactor = %ACEVER
Requires: libtao = %TAOVER

%description -n libtao-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.

# ---------------- tao-xtresource-devel ----------------

%package -n libtao-xtresource-devel
Summary: Header files for development with XtResource_Factory
Version: %TAOVER
Group: Development/C++
Requires: libace-xtreactor-devel = %ACEVER
Requires: libtao-devel = %TAOVER
Requires: libtao-xtresource = %TAOVER

%description -n libtao-xtresource-devel

This package contains the components needed for developing programs
using the XtResource_Factory.
%endif

# ================================================================
# prep
# ================================================================

%prep
%setup -n ACE_wrappers
install -m644 %SOURCE1 %SOURCE2 %SOURCE3 .

%if ! %skip_make

export ACE_ROOT=$(pwd)
export DDS_ROOT=$ACE_ROOT
export TAO_ROOT=$ACE_ROOT/TAO
export CIAO_ROOT=$TAO_ROOT/CIAO

#patch5 -p 1
cat $ACE_ROOT/rpmbuild/ace-tao-orbsvcs-daemon.patch | patch -p 1

# don't use patch8 until we verify wether needed

# config.h
( cd $ACE_ROOT/ace
rm -f config.h
cp config-linux.h config.h
)

#patch0 -p 1
cat $ACE_ROOT/rpmbuild/ace-tao-config.patch | patch -p 1

# If ipv6 support is indicated insert some lines into the confi.h
# file, right before the ace/post.h include.
#
%if %{?_with_ipv6:1}%{!?_with_ipv6:0}
rm -f $ACE_ROOT/ace/config.h.tmp
awk 'BEGIN { FLG = 1 }; /ace\/post/ { FLG = 0 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
cat >> $ACE_ROOT/ace/config.h.tmp <<"EOF"
#define ACE_HAS_IPV6 // Ken Sedgwick 2006-06-14
#define ACE_USES_IPV4_IPV6_MIGRATION // Ken Sedgwick 2006-06-14
EOF
awk 'BEGIN { FLG = 0 }; /ace\/post/ { FLG = 1 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
mv $ACE_ROOT/ace/config.h.tmp $ACE_ROOT/ace/config.h
%endif

# If rnq support is indicated insert some lines into the confi.h
# file, right before the ace/post.h include.
#
%if %{?_with_rnq:1}%{!?_with_rnq:0}
# Insert into the confi.h file, right before the ace/post.h include.
rm -f $ACE_ROOT/ace/config.h.tmp
awk 'BEGIN { FLG = 1 }; /ace\/post/ { FLG = 0 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
cat >> $ACE_ROOT/ace/config.h.tmp <<"EOF"
#define ACE_HAS_REACTOR_NOTIFICATION_QUEUE  // Ken Sedgwick 2006-04-19
EOF
awk 'BEGIN { FLG = 0 }; /ace\/post/ { FLG = 1 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
mv $ACE_ROOT/ace/config.h.tmp $ACE_ROOT/ace/config.h
%endif

# For template instantiation visibility and icmp support insert some
# lines into the confi.h file, right before the ace/post.h include.
#
rm -f $ACE_ROOT/ace/config.h.tmp
awk 'BEGIN { FLG = 1 }; /ace\/post/ { FLG = 0 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
cat >> $ACE_ROOT/ace/config.h.tmp <<"EOF"
#define ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS 1  // Ken Sedgwick 2007-05-05
EOF
awk 'BEGIN { FLG = 0 }; /ace\/post/ { FLG = 1 }; { if (FLG==1) print }' \
$ACE_ROOT/ace/config.h >> $ACE_ROOT/ace/config.h.tmp
mv $ACE_ROOT/ace/config.h.tmp $ACE_ROOT/ace/config.h

# platform_macros.GNU
cat > $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
ssl = 1
include \$(ACE_ROOT)/include/makeinclude/platform_linux.GNU
EOF

%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
x11 = 1
xt = 1
tk = 1
fl = 1
qt = 1
gl = 1
ace_qtreactor = 1
ace_xtreactor = 1
ace_tkreactor = 1
ace_flreactor = 1
tao_qtresource = 1
tao_xtresource = 1
tao_tkresource = 1
tao_flresource = 1
EOF
%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

%if %{?_with_opt:0}%{!?_with_opt:1}
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
# Disable optimization
OCFLAGS = -O0
OCCFLAGS = -O0
EOF
%else
cat >> $ACE_ROOT/include/makeinclude/platform_macros.GNU <<EOF
# Enable Fedora optimization
OCFLAGS = %optflags
OCCFLAGS = %optflags
EOF
%endif

cat > $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
ssl=1
qos=0
cidl=0
rwho=0
sctp=0
EOF

# 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.

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
cat >> $ACE_ROOT/bin/MakeProjectCreator/config/default.features <<EOF
motif=1
athena=1
x11=1
xt=1
tk=1
fl=1
qt=1
gl=1
ace_qtreactor=1
ace_xtreactor=1
ace_tkreactor=1
ace_flreactor=1
tao_qtresource=1
tao_xtresource=1
tao_tkresource=1
tao_flresource=1
EOF
%endif

# Need to regenerate all of the Makefiles ...
(cd $ACE_ROOT && $ACE_ROOT/bin/mwc.pl -type gnuace)

# Fix source file permissions
find $TAO_ROOT/orbsvcs/FT_ReplicationManager -type f -exec chmod a-x {} \;
find $TAO_ROOT/orbsvcs/orbsvcs/FaultTolerance -type f -exec chmod a-x {} \;

%endif

# ================================================================
# build
# ================================================================

%build

export ACE_ROOT=$(pwd)
export DDS_ROOT=$ACE_ROOT
export TAO_ROOT=$ACE_ROOT/TAO
export LD_LIBRARY_PATH=$ACE_ROOT/lib

%if %skip_make
cd .. && rm -rf ACE_wrappers && ln -s ACE_wrappers-BUILT ACE_wrappers
%else

MAKECMD="make %{?_smp_mflags}"

# build ACE components
for ace_comp in \
    ace \
    Kokyu \
    ACEXML \
    apps/gperf \
    protocols \
    websvcs;
do
    $MAKECMD -C $ACE_ROOT/$ace_comp;
done

# build TAO components
$MAKECMD -C $TAO_ROOT/TAO_IDL
$MAKECMD -C $TAO_ROOT/tao

# Instead of "$MAKECMD -C $TAO_ROOT/orbsvcs" use the list from
# $ACE_ROOT/orbsvcs/GNUmakefile less the performance-tests, tests and
# examples.
for orbsvcs_comp in \
    TAO_Service \
    orbsvcs \
    Trading_Service \
    Time_Service \
    Scheduling_Service \
    Notify_Service \
    Naming_Service \
    Logging_Service \
    LoadBalancer \
    LifeCycle_Service \
    ImplRepo_Service \
    IFR_Service \
    Fault_Notifier \
    Fault_Detector \
    FT_ReplicationManager \
    FTRT_Event_Service \
    Event_Service \
    Dump_Schedule \
    CosEvent_Service \
    Concurrency_Service;
do
    $MAKECMD -C $TAO_ROOT/orbsvcs/$orbsvcs_comp;
done

$MAKECMD -C $TAO_ROOT/utils

%endif

# ================================================================
# install
# ================================================================

# For major releases the package version will be the shortened version
# tuple and the shared-object version needs a placeholder '.0'
%if %is_major_ver
%define ACEVERSO %ACEVER.0
%define TAOVERSO %TAOVER.0
%define CIAOVERSO %CIAOVER.0
%else
%define ACEVERSO %ACEVER
%define TAOVERSO %TAOVER
%define CIAOVERSO %CIAOVER
%endif

%install

export ACE_ROOT=$(pwd)
export DDS_ROOT=$ACE_ROOT
export TAO_ROOT=$ACE_ROOT/TAO

%if ! %skip_make
# cat %%SOURCE2 | patch -p 1
cat $ACE_ROOT/rpmbuild/ace-tao-macros.patch | patch -p 1
%endif

# ---------------- Runtime Components ----------------

# install shared libraries
install -d %buildroot%_libdir

# ACE + XML libraries
INSTLIBS=$(ls $ACE_ROOT/lib/libACE*.so.%ACEVERSO)
install $INSTLIBS %buildroot%_libdir

# ACE-Kokyu libraries
INSTLIBS=$(ls $ACE_ROOT/lib/libKokyu.so.%ACEVERSO)
install $INSTLIBS %buildroot%_libdir

# TAO libraries
INSTLIBS=$(ls $ACE_ROOT/lib/libTAO*.so.%TAOVERSO)
install $INSTLIBS %buildroot%_libdir

# Create un-versioned symbolic links for libraries
(cd %buildroot%_libdir && \
 ls *.so.* | awk 'BEGIN{FS="."}{print "ln -sf " $0 " " $1 "." $2;}' | sh)

# install binaries
install -d %buildroot%_sbindir

# Rename the service binaries:

install $ACE_ROOT/TAO/orbsvcs/Naming_Service/Naming_Service \
    %buildroot%_sbindir/tao-cosnaming

install $ACE_ROOT/TAO/orbsvcs/CosEvent_Service/CosEvent_Service \
    %buildroot%_sbindir/tao-cosevent

install $ACE_ROOT/TAO/orbsvcs/Notify_Service/Notify_Service \
    %buildroot%_sbindir/tao-cosnotification

install $ACE_ROOT/TAO/orbsvcs/Trading_Service/Trading_Service \
    %buildroot%_sbindir/tao-costrading

install $ACE_ROOT/TAO/orbsvcs/Event_Service/Event_Service \
    %buildroot%_sbindir/tao-rtevent

install $ACE_ROOT/TAO/orbsvcs/Concurrency_Service/Concurrency_Service \
    %buildroot%_sbindir/tao-cosconcurrency

# Create the tao cache directory.
mkdir -p %buildroot%_localstatedir/cache/tao

touch %buildroot%_localstatedir/cache/tao/tao-cosnaming.dat

# Create the tao log directory.
mkdir -p %buildroot%_localstatedir/log/tao

touch %buildroot%_localstatedir/log/tao/tao-cosnaming.log
touch %buildroot%_localstatedir/log/tao/tao-cosconcurrency.log
touch %buildroot%_localstatedir/log/tao/tao-cosevent.log
touch %buildroot%_localstatedir/log/tao/tao-cosnotification.log
touch %buildroot%_localstatedir/log/tao/tao-costrading.log
touch %buildroot%_localstatedir/log/tao/tao-rtevent.log

# ---------------- Development Components ----------------

# INSTHDR="cp --preserve=timestamps"
INSTHDR="install -m 0644 -p"

# install headers
install -d %buildroot%_includedir
( set +x
echo "Building list of headers..."

# Generate raw dependency output
BASEHDR=$(find \
    ace \
    ACEXML/common \
    ACEXML/parser/parser \
    Kokyu \
    TAO/tao \
    TAO/orbsvcs/orbsvcs \
    -name '*.h' -not -name 'config-*')
for j in $BASEHDR; do
        echo $j >> rawhdrs.log
        echo '#include <'$j'>' | \
        g++ -I . \
            -I protocols \
            -I TAO \
            -I TAO/orbsvcs \
            -I TAO/orbsvcs/orbsvcs \
            -x c++ - -MM -MF mmout 2>> rawhdrs.log && cat mmout || true;
done > mmraw.list

# Append IDL headers to the raw list.
find \
    TAO/tao \
    TAO/orbsvcs/orbsvcs \
    -regex '.*\.p?idl$' >> mmraw.list

# Cleanup dependency output:
#   remove '-:' sequences
#   change all sequences of whitespace into \n
#   remove leading './'
#   cannonicalize up to two levels of '/../../'
#   remove duplicates
cat mmraw.list |\
        sed -e 's/^-://g' -e 's/\\//g' | \
        tr -s [:space:] "\n" | \
        sed -e 's#^./##g' | \
        sed -e 's#/[^/]\+/\.\./#/#g' -e 's#/[^/]\+/\.\./#/#g' | \
        sort -u > allhdrs.list

# Add missing headers.
echo ace/QtReactor/QtReactor.h >> allhdrs.list
echo TAO/tao/QtResource/QtResource_Factory.h >> allhdrs.list
echo TAO/tao/QtResource/QtResource_Loader.h >> allhdrs.list

# Install headers and create header lists
rm -f ace-headers.tmp
rm -f acexml-headers.tmp
rm -f kokyu-headers.tmp
rm -f tao-headers.tmp

for i in $(cat allhdrs.list); do
    case "$i" in
    protocols/ace/*)
        mkdir -p $(dirname %buildroot%_includedir/${i/protocols\/})
        $INSTHDR $i %buildroot%_includedir/${i/protocols/}
        echo '%%dir %_includedir/'$(dirname ${i/protocols/}) >> ace-headers.tmp
        echo '%_includedir/'${i/protocols/} >> ace-headers.tmp
        ;;
    ace/*)
        mkdir -p $(dirname %buildroot%_includedir/$i)
        $INSTHDR $i %buildroot%_includedir/$i
        echo '%%dir %_includedir/'$(dirname $i) >> ace-headers.tmp
        echo '%_includedir/'$i >> ace-headers.tmp
        ;;
    ACEXML/*)
        mkdir -p $(dirname %buildroot%_includedir/$i)
        $INSTHDR $i %buildroot%_includedir/$i
        echo '%%dir %_includedir/'$(dirname $i) >> acexml-headers.tmp
        echo '%_includedir/'$i >> acexml-headers.tmp
        ;;
    Kokyu/*)
        mkdir -p $(dirname %buildroot%_includedir/$i)
        $INSTHDR $i %buildroot%_includedir/$i
        echo '%%dir %_includedir/'$(dirname $i) >> kokyu-headers.tmp
        echo '%_includedir/'$i >> kokyu-headers.tmp
        ;;
    TAO/tao/*)
        mkdir -p $(dirname %buildroot%_includedir/${i/TAO\/})
        $INSTHDR $i %buildroot%_includedir/${i/TAO\/}
        echo '%%dir %_includedir/'$(dirname ${i/TAO\/}) >> tao-headers.tmp
        echo '%_includedir/'${i/TAO\/} >> tao-headers.tmp
        ;;
    TAO/orbsvcs/orbsvcs/*)
        mkdir -p $(dirname %buildroot%_includedir/${i/TAO\/orbsvcs\/})
        $INSTHDR $i %buildroot%_includedir/${i/TAO\/orbsvcs\/}
        echo '%%dir %_includedir/'$(dirname ${i/TAO\/orbsvcs\/}) >> tao-headers.tmp
        echo '%_includedir/'${i/TAO\/orbsvcs\/} >> tao-headers.tmp
        ;;
    *)
        # mkdir -p $(dirname %buildroot%_includedir/$i)
        # $INSTHDR $i %buildroot%_includedir/$i
        echo $i
        ;;
    esac
done

echo '%_defattr' > ace-headers.list
sort -u < ace-headers.tmp >> ace-headers.list
rm -f ace-headers.tmp

echo '%_defattr' > acexml-headers.list
sort -u < acexml-headers.tmp >> acexml-headers.list
rm -f acexml-headers.tmp

echo '%_defattr' > kokyu-headers.list
sort -u < kokyu-headers.tmp >> kokyu-headers.list
rm -f kokyu-headers.tmp

echo '%_defattr' > tao-headers.list
sort -u < tao-headers.tmp >> tao-headers.list
rm -f tao-headers.tmp
)

# install the TAO_IDL compiler
install -d %buildroot%_libdir

# NOTE - it appears that when TAO's build copies the files to the
# ACE_ROOT/ace directory they get versioned with ACE's version number
# rather then TAO's.  Use the ACEVERSO macro for now ...
install \
        $ACE_ROOT/lib/libTAO_IDL_BE.so.%ACEVERSO \
        $ACE_ROOT/lib/libTAO_IDL_FE.so.%ACEVERSO \
        %buildroot%_libdir

(cd %buildroot%_libdir && ln -sf libTAO_IDL_BE.so.%ACEVERSO libTAO_IDL_BE.so)
(cd %buildroot%_libdir && ln -sf libTAO_IDL_FE.so.%ACEVERSO libTAO_IDL_FE.so)

install -d %buildroot%_bindir
install $ACE_ROOT/bin/ace_gperf %buildroot%_bindir
install $ACE_ROOT/bin/tao_idl %buildroot%_bindir
install $ACE_ROOT/bin/tao_imr %buildroot%_bindir
install $ACE_ROOT/bin/tao_ifr %buildroot%_bindir
install $ACE_ROOT/bin/tao_catior %buildroot%_bindir
install $ACE_ROOT/bin/tao_nsadd %buildroot%_bindir
install $ACE_ROOT/bin/tao_nsdel %buildroot%_bindir
install $ACE_ROOT/bin/tao_nslist %buildroot%_bindir

# ================================================================
# Config & Options
# ================================================================

install -d %buildroot%_sysconfdir
tar -xzvf $ACE_ROOT/rpmbuild/ace-tao-etc.tar.gz \
	-C %buildroot%_sysconfdir

rm -rf %buildroot%_sysconfdir/profile.d

# ================================================================
# Manuals
# ================================================================
install -d %buildroot%_mandir
install -d %buildroot%_man1dir
install $TAO_ROOT/TAO_IDL/tao_idl.1 %buildroot%_man1dir
install $ACE_ROOT/apps/gperf/ace_gperf.1 %buildroot%_man1dir
install -d  %buildroot%_infodir
install $ACE_ROOT/apps/gperf/ace_gperf.info %buildroot%_infodir

# ================================================================
# Create lists of symlinked so's.  We need two lists because we need
# the unversioned symlinks in the runtime package for so's that can
# be loaded in the svc.conf.
# ================================================================

# Make a list of all shared objects.
(cd %buildroot/%_libdir && ls *.so | \
        awk '{ print "%_libdir/"$1; }' | \
        sort) > all-so.list

# Make a list of likely svc.conf targets.
(cd %buildroot/%_libdir && ls *.so | \
    nm --print-file-name *.so | \
    grep _make_ | \
    awk 'BEGIN { FS=":"} /^[^:]+:/ { print "%_libdir/"$1; }' | \
    sort -u) > rough-svc-so.list

# Remove false positives (IMPORTANT keep this list sorted!)
cat > falsepos-svc-so.list <<EOF
%_libdir/libACE.so
%_libdir/libTAO.so
EOF
comm -2 -3 rough-svc-so.list falsepos-svc-so.list > svc-so.list

# Find the list of non-sv.conf target files.
comm -2 -3 all-so.list svc-so.list > nonsvc-so.list

# Generate file lists.
grep libACE svc-so.list > ace-svc-so.list
grep libACE nonsvc-so.list > ace-nonsvc-so.list
grep libTAO svc-so.list > tao-svc-so.list
grep libTAO svc-so.list > tao-svc-so.list
grep libTAO nonsvc-so.list > tao-nonsvc-so.list

# Concatenate file lists as neccessary
cat tao-headers.list tao-nonsvc-so.list > tao-devel-files.list
egrep 'libTAO.*\.so$' svc-so.list >> tao-devel-files.list

# ALT fixes in init scripts
TOPDIR=$PWD
pushd %buildroot%_sysconfdir/rc.d/init.d
ln -s $TOPDIR/init.info .
ln -s $TOPDIR/start_d.ins .
ln -s $TOPDIR/stop_d.ins .
for i in $(ls); do
	if [ $i != init.info ] && [ $i != start_d.ins ] && [ $i != stop_d.ins ]; then
		sed -i -e '27d' $i
		sed -i -e '26rstart_d.ins' $i
		sed -i -e '36d' $i
		sed -i -e '35rstop_d.ins' $i
		sed -i -e '9a\WITHOUT_RC_COMPAT=1' $i
		sed -i -e '2rinit.info' $i
		sed -i -e "s/(name)/$i/g" $i
		sed -i -e 's/stop)/stop|condstop)/g' $i
	fi
done
popd

# ================================================================
# pre install
# ================================================================

# ---------------- tao-cosnaming ----------------

%pre -n tao-cosnaming

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ---------------- tao-cosevent ----------------

%pre -n tao-cosevent

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ---------------- tao-cosnotification ----------------

%pre -n tao-cosnotification

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ---------------- tao-costrading ----------------

%pre -n tao-costrading

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ---------------- tao-rtevent ----------------

%pre -n tao-rtevent

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ---------------- tao-cosconcurrency ----------------

%pre -n tao-cosconcurrency

getent group tao >/dev/null || /usr/sbin/groupadd -r tao
getent passwd tao >/dev/null || \
/usr/sbin/useradd -r -g tao -d %_sysconfdir/tao -s /sbin/nologin \
    -c "TAO Services" tao
exit 0

# ================================================================
# post install
# ================================================================

# ---------------- tao-cosnaming ----------------

%post -n tao-cosnaming

%post_service tao-cosnaming

# ---------------- tao-cosevent ----------------

%post -n tao-cosevent

/sbin/chkconfig --add tao-cosevent

# ---------------- tao-cosnotification ----------------

%post -n tao-cosnotification

/sbin/chkconfig --add tao-cosnotification

# ---------------- tao-costrading ----------------

%post -n tao-costrading

/sbin/chkconfig --add tao-costrading

# ---------------- tao-rtevent ----------------

%post -n tao-rtevent

/sbin/chkconfig --add tao-rtevent

# ---------------- tao-cosconcurrency ----------------

%post -n tao-cosconcurrency

/sbin/chkconfig --add tao-cosconcurrency

# ================================================================
# pre uninstall
# ================================================================

# ---------------- tao-cosnaming ----------------

%preun -n tao-cosnaming

%preun_service tao-cosnaming

# ---------------- tao-cosevent ----------------

%preun -n tao-cosevent

if [ $1 = 0 ]; then
    /sbin/service tao-cosevent stop > /dev/null 2>&1
    /sbin/chkconfig --del tao-cosevent
fi

# ---------------- tao-cosnotification ----------------

%preun -n tao-cosnotification

if [ $1 = 0 ]; then
    /sbin/service tao-cosnotification stop > /dev/null 2>&1
    /sbin/chkconfig --del tao-cosnotification
fi

# ---------------- tao-costrading ----------------

%preun -n tao-costrading

if [ $1 = 0 ]; then
    /sbin/service tao-costrading stop > /dev/null 2>&1
    /sbin/chkconfig --del tao-costrading
fi

# ---------------- tao-rtevent ----------------

%preun -n tao-rtevent

if [ $1 = 0 ]; then
    /sbin/service tao-rtevent stop > /dev/null 2>&1
    /sbin/chkconfig --del tao-rtevent
fi

# ---------------- tao-cosconcurrency ----------------

%preun -n tao-cosconcurrency

if [ $1 = 0 ]; then
    /sbin/service tao-cosconcurrency stop > /dev/null 2>&1
    /sbin/chkconfig --del tao-cosconcurrency
fi

# ================================================================
# post uninstall
# ================================================================

# ---------------- tao-cosnaming ----------------

%postun -n tao-cosnaming

if [ "$1" -ge "1" ]; then
    /sbin/service tao-cosnaming condrestart > /dev/null 2>&1
fi

# ---------------- tao-cosevent ----------------

%postun -n tao-cosevent

if [ "$1" -ge "1" ]; then
    /sbin/service tao-cosevent condrestart > /dev/null 2>&1
fi

# ---------------- tao-cosnotification ----------------

%postun -n tao-cosnotification

if [ "$1" -ge "1" ]; then
    /sbin/service tao-cosnotification condrestart > /dev/null 2>&1
fi

# ---------------- tao-costrading ----------------

%postun -n tao-costrading

if [ "$1" -ge "1" ]; then
    /sbin/service tao-costrading condrestart > /dev/null 2>&1
fi

# ---------------- tao-rtevent ----------------

%postun -n tao-rtevent

if [ "$1" -ge "1" ]; then
    /sbin/service tao-rtevent condrestart > /dev/null 2>&1
fi

# ---------------- tao-cosconcurrency ----------------

%postun -n tao-cosconcurrency

if [ "$1" -ge "1" ]; then
    /sbin/service tao-cosconcurrency condrestart > /dev/null 2>&1
fi

# ================================================================
# files
# ================================================================

# ---------------- ace ----------------

%files -n libace
%_libdir/libACE.so.%ACEVERSO
%_libdir/libACE_ETCL_Parser.so.%ACEVERSO
%_libdir/libACE_ETCL.so.%ACEVERSO
%_libdir/libACE_HTBP.so.%ACEVERSO
%_libdir/libACE_Monitor_Control.so.%ACEVERSO
%_libdir/libACE_RMCast.so.%ACEVERSO
%_libdir/libACE_SSL.so.%ACEVERSO
%_libdir/libACE_TMCast.so.%ACEVERSO

%doc ACE-INSTALL.html
%doc AUTHORS
%doc COPYING
%doc FAQ
%doc PROBLEM-REPORT-FORM
%doc README
%doc THANKS
%doc VERSION

# ---------------- ace-devel ----------------

%files -n libace-devel -f ace-headers.list
%_bindir/ace_gperf
%_libdir/libACE.so
%_libdir/libACE_ETCL_Parser.so
%_libdir/libACE_ETCL.so
%_libdir/libACE_HTBP.so
%_libdir/libACE_Monitor_Control.so
%_libdir/libACE_RMCast.so
%_libdir/libACE_SSL.so
%_libdir/libACE_TMCast.so
%_man1dir/ace_gperf.1%_extension
%_infodir/ace_gperf.info.bz2

%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
%exclude %_includedir/ace/FlReactor/FlReactor.h
%exclude %_includedir/ace/FlReactor/ACE_FlReactor_export.h
%exclude %_includedir/ace/QtReactor/QtReactor.h
%exclude %_includedir/ace/QtReactor/ACE_QtReactor_export.h
%exclude %_includedir/ace/TkReactor/TkReactor.h
%exclude %_includedir/ace/TkReactor/ACE_TkReactor_export.h
%exclude %_includedir/ace/XtReactor/XtReactor.h
%exclude %_includedir/ace/XtReactor/ACE_XtReactor_export.h
%endif

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

# ---------------- ace-xml ----------------

%files -n libace-xml
%_libdir/libACEXML*.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

# ---------------- ace-xml-devel ----------------

%files -n libace-xml-devel -f acexml-headers.list
%_libdir/libACEXML*.so

# These get missed by the automatic list generator because they
# contain no immediate files.
%dir %_includedir/ACEXML/parser
%dir %_includedir/ACEXML

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

# ---------------- ace-kokyu ----------------

%files -n libace-kokyu
%_libdir/libKokyu.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

# ---------------- ace-kokyu-devel ----------------

%files -n libace-kokyu-devel -f kokyu-headers.list
%_libdir/libKokyu.so

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

# ---------------- ace-flreactor ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-flreactor
%_libdir/libACE_FlReactor.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-flreactor-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-flreactor-devel
%dir %_includedir/ace/FlReactor
%_libdir/libACE_FlReactor.so
%_includedir/ace/FlReactor/FlReactor.h
%_includedir/ace/FlReactor/ACE_FlReactor_export.h

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-qtreactor ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-qtreactor
%_libdir/libACE_QtReactor.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-qtreactor-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-qtreactor-devel
%_libdir/libACE_QtReactor.so
%dir %_includedir/ace/QtReactor
%_includedir/ace/QtReactor/QtReactor.h
%_includedir/ace/QtReactor/ACE_QtReactor_export.h

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-tkreactor ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-tkreactor
%_libdir/libACE_TkReactor.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-tkreactor-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-tkreactor-devel
%_libdir/libACE_TkReactor.so
%dir %_includedir/ace/TkReactor
%_includedir/ace/TkReactor/TkReactor.h
%_includedir/ace/TkReactor/ACE_TkReactor_export.h

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-xtreactor ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-xtreactor
%_libdir/libACE_XtReactor.so.%ACEVERSO

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- ace-xtreactor-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libace-xtreactor-devel
%_libdir/libACE_XtReactor.so
%dir %_includedir/ace/XtReactor
%_includedir/ace/XtReactor/XtReactor.h
%_includedir/ace/XtReactor/ACE_XtReactor_export.h

%doc AUTHORS
%doc COPYING
%doc PROBLEM-REPORT-FORM
%doc README
%doc VERSION

%endif

# ---------------- tao ----------------

# NOTE - Some of the TAO service modules need to be found by dlopen at
# runtime.  Currently this means these specific .so files need to be
# shipped in the runtime package instead of the devel package.

%files -n libtao -f tao-svc-so.list
%exclude %_libdir/*.so
%_libdir/libTAO*.so.%TAOVERSO
%_libdir/libTAO_IDL_FE.so.*

# The libTAO_IFR_BE needs the IDL front-end
%_libdir/libTAO_IDL_BE.so.*

%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
%exclude %_libdir/libTAO_FlResource.so*
%exclude %_libdir/libTAO_QtResource.so*
%exclude %_libdir/libTAO_TkResource.so*
%exclude %_libdir/libTAO_XtResource.so*
%endif

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/TAO-INSTALL.html
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-devel ----------------

# NOTE - Some of the TAO service modules need to be found by dlopen at
# runtime.  Currently this means these specific .so files need to be
# shipped in the runtime package instead of the devel package.

%files -n libtao-devel -f tao-devel-files.list

%_libdir/libTAO_IDL_BE.so

%_bindir/tao_idl
%_bindir/tao_imr
%_bindir/tao_ifr
%_bindir/tao_catior
%_bindir/tao_nsadd
%_bindir/tao_nsdel
%_bindir/tao_nslist
%_man1dir/tao_idl.1%_extension

# These get missed by the automatic list generator because they
# contain no immediate files.
%dir %_includedir/orbsvcs/FtRtEvent
%_includedir/tao

%if %{?_with_guilibs:1}%{!?_with_guilibs:0}
%exclude %_includedir/tao/FlResource/FlResource_Factory.h
%exclude %_includedir/tao/FlResource/FlResource_Loader.h
%exclude %_includedir/tao/FlResource/TAO_FlResource_Export.h
%exclude %_includedir/tao/QtResource/QtResource_Factory.h
%exclude %_includedir/tao/QtResource/QtResource_Loader.h
%exclude %_includedir/tao/QtResource/TAO_QtResource_Export.h
%exclude %_includedir/tao/TkResource/TkResource_Factory.h
%exclude %_includedir/tao/TkResource/TkResource_Loader.h
%exclude %_includedir/tao/TkResource/TAO_TkResource_Export.h
%exclude %_includedir/tao/XtResource/XtResource_Factory.h
%exclude %_includedir/tao/XtResource/XtResource_Loader.h
%exclude %_includedir/tao/XtResource/TAO_XtResource_Export.h
%exclude %_libdir/libTAO_FlResource.so
%exclude %_libdir/libTAO_QtResource.so
%exclude %_libdir/libTAO_TkResource.so
%exclude %_libdir/libTAO_XtResource.so
%endif

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-cosnaming ----------------

%files -n tao-cosnaming

%_sbindir/tao-cosnaming
%_sysconfdir/rc.d/init.d/tao-cosnaming
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-cosnaming.opt
%config(noreplace) %_sysconfdir/tao/tao-cosnaming.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-cosnaming
%attr(-,tao,tao) %dir %_localstatedir/cache/tao
%attr(0644,tao,tao) %_localstatedir/cache/tao/tao-cosnaming.dat
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-cosnaming.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-cosevent ----------------

%files -n tao-cosevent

%_sbindir/tao-cosevent
%_sysconfdir/rc.d/init.d/tao-cosevent
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-cosevent.opt
%config(noreplace) %_sysconfdir/tao/tao-cosevent.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-cosevent
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-cosevent.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-cosnotification ----------------

%files -n tao-cosnotification

%_sbindir/tao-cosnotification
%_sysconfdir/rc.d/init.d/tao-cosnotification
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-cosnotification.opt
%config(noreplace) %_sysconfdir/tao/tao-cosnotification.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-cosnotification
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-cosnotification.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-costrading ----------------

%files -n tao-costrading

%_sbindir/tao-costrading
%_sysconfdir/rc.d/init.d/tao-costrading
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-costrading.opt
%config(noreplace) %_sysconfdir/tao/tao-costrading.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-costrading
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-costrading.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-rtevent ----------------

%files -n tao-rtevent

%_sbindir/tao-rtevent
%_sysconfdir/rc.d/init.d/tao-rtevent
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-rtevent.opt
%config(noreplace) %_sysconfdir/tao/tao-rtevent.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-rtevent
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-rtevent.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-cosconcurrency ----------------

%files -n tao-cosconcurrency

%_sbindir/tao-cosconcurrency
%_sysconfdir/rc.d/init.d/tao-cosconcurrency
%dir %_sysconfdir/tao
%config(noreplace) %_sysconfdir/tao/tao-cosconcurrency.opt
%config(noreplace) %_sysconfdir/tao/tao-cosconcurrency.conf
%config(noreplace) %_sysconfdir/logrotate.d/tao-cosconcurrency
%attr(-,tao,tao) %dir %_localstatedir/log/tao
%attr(0644,tao,tao) %_localstatedir/log/tao/tao-cosconcurrency.log

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

# ---------------- tao-flresource ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-flresource
%_libdir/libTAO_FlResource.so.%TAOVERSO

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-flresource-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-flresource-devel
%_libdir/libTAO_FlResource.so
%_includedir/tao/FlResource/FlResource_Factory.h
%_includedir/tao/FlResource/FlResource_Loader.h
%_includedir/tao/FlResource/TAO_FlResource_Export.h

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-qtresource ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-qtresource
%_libdir/libTAO_QtResource.so.%TAOVERSO

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-qtresource-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-qtresource-devel
%_libdir/libTAO_QtResource.so
%_includedir/tao/QtResource/QtResource_Factory.h
%_includedir/tao/QtResource/QtResource_Loader.h
%_includedir/tao/QtResource/TAO_QtResource_Export.h

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-tkresource ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-tkresource
%_libdir/libTAO_TkResource.so.%TAOVERSO

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-tkresource-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-tkresource-devel
%_libdir/libTAO_TkResource.so
%_includedir/tao/TkResource/TkResource_Factory.h
%_includedir/tao/TkResource/TkResource_Loader.h
%_includedir/tao/TkResource/TAO_TkResource_Export.h

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-xtresource ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-xtresource
%_libdir/libTAO_XtResource.so.%TAOVERSO

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ---------------- tao-xtresource-devel ----------------

# Read: true if _with_guilibs is defined, false if not defined.
%if %{?_with_guilibs:1}%{!?_with_guilibs:0}

%files -n libtao-xtresource-devel
%_libdir/libTAO_XtResource.so
%_includedir/tao/XtResource/XtResource_Factory.h
%_includedir/tao/XtResource/XtResource_Loader.h
%_includedir/tao/XtResource/TAO_XtResource_Export.h

%doc TAO/COPYING
%doc TAO/PROBLEM-REPORT-FORM
%doc TAO/VERSION
%doc TAO/README

%endif

# ================================================================
# changelog
# ================================================================

%changelog
* Tue May 19 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.8-alt3.svn20090220
- Removed calling install-info from post/preun triggers

* Fri May 15 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.8-alt2.svn20090220
- Rebuild with gcc 4.4
- Added lsb init headers and condstop targets into init scripts

* Fri Mar 27 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.6.8-alt1.svn20090220
- Initial build for Sisyphus

* Sat Feb 14 2009 Ken Sedgwick <ksedgwic@lap2.bonsai.com> - 5.6.8-1
- Updated for latest DOC Group release (x.6.8).

* Sun Nov 23 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.7-1
- Updated for tao_ prefixed catior, nsadd, nsdel and nslist.

* Thu Jul 31 2008 Johnny Willemsen  <jwillemsen@remedy.nl> - 5.6.6-2
- Removed ace-tao-unusedarg.patch (related to bug #3270).

* Sat Jul  5 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.6-1
- Updated for latest DOC Group release (x.6.6).
- Tracked libACE_Monitor_Control name change.
- Added idl and pidl include files to tao-devel package.

* Wed Jun 25 2008 Johnny Willemsen  <jwillemsen@remedy.nl> - 5.6.5-6
- Removed gperf to gperf_ace rename, ACE ships now ace_gperf by default
- Removed ace-tao-strrecvfd.patch
- Removed gperf macro from ace-tao-config.patch
- Removed gperf.info patch

* Mon Jun  2 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.5-5
- Added ace-tao-strrecvfd.patch (related to bug #3291).
- Changed make loop construct to abort when subcomponent fails.
- Removed PSS from TAO build list.
- Added ace-tao-unusedarg.patch (related to bug #3270).
- Made qt3 BuildRequires conditional on Fedora version.

* Wed May 28 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.5-4
- Added ace-tao-orbsvcs-daemon.patch.
- Fixed tao-cosconcurrency command line arguments.

* Sat May 24 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.5-3
- Removed obstack patch, no longer needed.
- Converted ace-tao-config-ipv6.patch into conditional rpm script.
- Converted ace-tao-rnq.patch into conditional rpm script.
- Converted ace-tao-config-tmplvis.patch and ace-tao-hasicmp.patch
  into rpm script.

* Thu May 22 2008 Johnny Willemsen  <jwillemsen@remedy.nl> - 5.6.5-3
- Removed codeset patch, merged into the distribution

* Wed May 21 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.5-2
- Fixed without opt processing.

* Mon May 19 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.5-1
- Updated to latest DOC Group release (x.6.5).
- Updated ace-tao-codeset.patch.
- Removed ace-tao-x86_64.patch (fixed in repository.)
- Added libACE_ETCL, libACE_ETCL_Parser and libACE_MonitorControl.

* Sun May 18 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.4-4
- Fixed tao-cosnaming.dat path bug.

* Sun May 18 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.4-3
- Improved to use _localstatedir where appropriate.
- Made adjustments to file/dir permissions for services.
- Added service logrotate scripts.

* Wed May 14 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.4-2
- Renamed tao services again per Fedora service spec.

* Thu May  1 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.4-1
- Updated to latest DOC Group release (x.6.4).

* Thu May  1 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.3-3
- Install service binaries in /usr/sbin instead of /usr/bin.

* Sun Mar 30 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.3-2
- Added dist macro to Release tag.
- Miscellaneous rpmlint fixes.
- Renamed service executables.

* Sat Feb 23 2008 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.3-1
- Updated to latest DOC group release (x.6.3).
- Removed ace-tao-conf-epoll patch, no longer needed.

* Sat Dec 15 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.2-1
- Updated to latest DOC group release (x.6.2).

* Sat Dec 15 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.1-3
- Added service modules back into runtime packages.

* Mon Dec  3 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.1-2
- Added QtResource_Loader to explicit headers.

* Sun Oct 28 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.1-2
- Applied Tom Callaway's Fedora fixes.

* Sat Sep 22 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6.1-1
- Updated to latest DOC group release (x.6.1).

* Mon Sep  3 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.6-1
- Updated to latest DOC group release (x.6).
- Combined 64bit patches into ace-tao-x86_64.patch.

* Wed Aug  1 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.10-1
- Updated to latest DOC group release (x.5.10).

* Sun Jul  1 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.9-1
- Updated to latest DOC group release (x.5.9).

* Sat May  5 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.8-1
- Updated to latest DOC group release (x.5.8).
- Added ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS.

* Sat Mar 24 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.7-1
- Updated to latest DOC group release (x.5.7).

* Mon Feb 19 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.6-2
- Added SSLIOP refcount patch (DOC BUG 1506).

* Fri Feb  2 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.6-1
- Updated to latest DOC group release (x.5.6).

* Thu Jan 25 2007 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.5-1
- Updated to latest DOC group release (x.5.5).
- Adjusted paths to {Fl,Qt,Tk,Xt}Reactor headers.

* Sat Dec 16 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.4-2
- Defined ACE_HAS_EVENT_POLL config parameter.

* Wed Nov 29 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.4-1
- Updated to latest DOC group release (x.5.4).

* Mon Nov 20 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.3-3
- Improved obstack patch per Johnny Willemsen.

* Sat Nov 18 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.3-2
- Added obstack workaround for FC6 builds.
- Fixed IPV6 configuration patch.

* Tue Oct 10 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.3-1
- Updated to latest DOC group release (x.5.3).

* Tue Sep  5 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.2-2
- Added ACE_HAS_ICMP_SUPPORT to config.h
- Added patch to re-enable setting ssl verify mode.

* Wed Jul 12 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.2-1
- Updated to latest DOC group release (x.5.2).

* Sat Jun 24 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.1-4
- Added IPv6 support by default.

* Wed Jun 14 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.1-3
- Added x86_64 patch back in (required for GUI builds).

* Sun May 21 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.1-2
- Added aio64 patch for librt.so detection.

* Wed Apr 19 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5.1-1
- Updated to latest DOC group release (x.5.1).
- Added conditional (on by default) addition of
  ACE_HAS_REACTOR_NOTIFICATION_QUEUE to config.h.

* Sat Mar 25 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5-2
- Added Doug Schmidt's patches for gcc 4.1.0 type-punned warnings.
- Removed X11 build dependencies due to xorg package renaming.

* Tue Mar  7 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.5-1
- Updated to latest DOC group release (x.5)

* Wed Feb 22 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.10-1
- Updated to latest DOC group release (x.4.10)

* Sat Feb 11 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.9-2
- Created unversioned symlinks for svc.conf loadable shared objects
  in runtime packages.
- Now run mwc during rpmbuild even if _with_guilibs is not defined.
- Removed patch for fixed namespace bugs.

* Thu Feb  9 2006 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.9-1
- Updated to latest DOC group release (x.4.9)

* Fri Dec 23 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.8-1
- Added ace-tao-idl-preproc patch for IDL include path bug.

* Thu Dec 22 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.8-0
- Updated to the latest DOC group release (5.4.8)

* Fri Dec  9 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.7-1
- Added buildbits=64 macro for 64 bit archs.

* Mon Aug  8 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.7-0
- Updated to latest DOC group release (5.4.7)

* Fri Jun 10 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.6-0
- Updated to latest DOC group release (5.4.6)

* Sun May 15 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.5-0
- Updated to latest DOC group release (5.4.5)
- Removed TSS Cleanup patch (bug fixed in release).

* Sat Mar  5 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-5
- Fixed include directory uninstall cleanup for GUI reactor packages.
- Fixed installation to preserve header timestamps.

* Wed Mar  2 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-4
- Integrated Marek Brudka's GUI library additions.

* Thu Feb 24 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-3
- Changed name of spec, source rpm and patches to remove '+'.

* Sat Feb 19 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-2
- Fixed installed doc, header and debug source file permissions.

* Fri Feb 18 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-2
- Updated spec tags per Fedora PackagingHints wiki document.

* Thu Feb 17 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-1
- Added patch to rename gperf info menu entry to gperf-ace.
- Replaced TSS-Cleanup patch with candidate fixes from Dale Wilson.

* Wed Feb 16 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-1
- Macroed some absolute paths in the files section.
- Added post and preun calls to install-info.

* Mon Feb 14 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-1
- Fixed BuildRequires entries.

* Sun Feb 13 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-1
- Added Giovanni Ferro's _extension macro for info and man pages.

* Thu Feb 10 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.4-0
- Updated to latest DOC group release (5.4.4).
- Removed idl-rootinc patch (fixed in distro).
- Removed orbdaemon patch (fixed in distro).
- Added libTAO_TMCast.so to ace package.

* Mon Feb  7 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.3-5
- Added /usr/include/ACEXML to explicit directory list.

* Sun Feb  6 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.3-4
- Fixed unfulfilled dependency in tao package for libTAO_IDL_FE.so
- Removed bidir-noassert patch, not needed.

* Mon Jan 31 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.3-4
- Added TSS Cleanup fixes patch (DOC bugzilla #2044)

* Mon Jan 17 2005 Andrew L. Shwaika <als@solvo.ru> - 5.4.3-3
- Add CORBA services

* Sat Jan 15 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.3-2
- Used ACE_GPERF to change name of installed gperf to gperf-ace.

* Mon Jan 10 2005 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.3-1
- Added bidir-noassert2 patch.

* Sat Dec 18 2004 Ken Sedgwick <ken+5a4@bonsai.com> - 5.4.2-0
- Initial build.