"Fossies" - the Fresh Open Source Software Archive

Member "opensaf-5.21.09/opensaf.spec.in" (14 Sep 2021, 47328 Bytes) of package /linux/misc/opensaf-5.21.09.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "opensaf.spec.in": 5.21.06_vs_5.21.09.

    1 %define opensaf_user opensaf
    2 %define opensaf_group opensaf
    3 
    4 %define is_python %(test "@PYTHON_ENABLED@" = "yes" && echo 1 || echo 0)
    5 %define is_java %(test "@JAVA_ENABLED@" = "yes" && echo 1 || echo 0)
    6 %define is_am4j %(test "@AM4J_ENABLED@" = "yes" && echo 1 || echo 0)
    7 %define is_tests %(test "@TESTS_ENABLED@" = "yes" && echo 1 || echo 0)
    8 %define is_immxml %(test "@IMMXML_ENABLED@" = "yes" && echo 1 || echo 0)
    9 %define is_ntfimcn %(test "@NTFIMCN_ENABLED@" = "yes" && echo 1 || echo 0)
   10 
   11 %define is_ais_plm %(test "@AIS_PLM_ENABLED@" = "yes" && echo 1 || echo 0)
   12 %define is_ais_ckpt %(test "@AIS_CKPT_ENABLED@" = "yes" && echo 1 || echo 0)
   13 %define is_ais_evt %(test "@AIS_EVT_ENABLED@" = "yes" && echo 1 || echo 0)
   14 %define is_ais_lck %(test "@AIS_LCK_ENABLED@" = "yes" && echo 1 || echo 0)
   15 %define is_ais_msg %(test "@AIS_MSG_ENABLED@" = "yes" && echo 1 || echo 0)
   16 %define is_ais_smf %(test "@AIS_SMF_ENABLED@" = "yes" && echo 1 || echo 0)
   17 
   18 %if (0%{?suse_version} >= 1210 || 0%{?fedora} >= 18 || 0%{?rhel} >= 7)
   19 %define use_systemd 1
   20 %if 0%{?suse_version} >= 1210
   21 %define _systemd_preun() %{service_del_preun}
   22 %define _systemd_post() %{service_add_post}
   23 %endif
   24 %if (0%{?fedora} >= 18 || 0%{?rhel} >= 7)
   25 %define _systemd_preun() %{systemd_preun}
   26 %define _systemd_post() %{systemd_post}
   27 %endif
   28 %else
   29 %define use_systemd 0
   30 %endif
   31 
   32 %define _pkglibdir %{_libdir}/%{name}
   33 %define _pkgsysconfdir %{_sysconfdir}/%{name}
   34 %define _initddir @initscriptdir@
   35 %define _pkgdatadir %{_datadir}/%{name}
   36 %define _pkgclcclidir %{_pkglibdir}/clc-cli
   37 %define _pkgclmscriptsdir %{_pkglibdir}/clm-scripts
   38 %if %is_immxml
   39 %define _pkgimmxmldir %{_datadir}/%{name}/immxml
   40 %define _pkgimmxml_svcdir %{_datadir}/%{name}/immxml/services
   41 %endif
   42 
   43 %if %is_python
   44 %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
   45 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
   46 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
   47 %endif
   48 %endif
   49 
   50 Summary: OpenSAF is an open source implementation of the SAF AIS specification
   51 Name: opensaf
   52 Version: @OPENSAF_RELEASE@
   53 Release: @OPENSAF_RPM_RELEASE@%{?dist}
   54 License: LGPL
   55 Group: System Environment/Base
   56 URL: http://www.opensaf.org
   57 Source: http://download.opensaf.org/releases/%{name}-%{version}.tar.gz
   58 Packager: @OPENSAF_BUGREPORT@
   59 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   60 %if %use_systemd
   61 BuildRequires: systemd
   62 %systemd_requires
   63 %endif
   64 Requires(pre): /usr/bin/getent /usr/sbin/groupadd /usr/sbin/useradd
   65 %if ! %use_systemd
   66 Requires(post): /usr/lib/lsb/install_initd /sbin/service
   67 Requires(preun): /usr/lib/lsb/remove_initd /sbin/service
   68 %endif
   69 Requires: /lib/lsb/init-functions
   70 Requires: %{name}-libs = %{version}-%{release}
   71 
   72 %description
   73 OpenSAF is an open source project established to develop a base platform
   74 middleware consistent with Service Availability Forum (SA Forum)
   75 specifications, under the LGPLv2.1 license. The OpenSAF Foundation was
   76 established by leading Communications and Enterprise Computing Companies to
   77 facilitate the OpenSAF Project and to accelerate the adoption of the OpenSAF
   78 code base in commercial products.
   79 
   80 The OpenSAF project was launched in mid 2007 and has been under development by
   81 an informal group of supporters of the OpenSAF initiative. The OpenSAF
   82 Foundation was founded on January 22nd 2008 with Emerson Network Power,
   83 Ericsson, Nokia Siemens Networks, HP and Sun Microsystems as founding members.
   84 
   85 
   86 %package amf-libs
   87 Group: System Environment/Libraries
   88 Summary: The OpenSAF implementation of the SAF-AIS-AMF Service
   89 Requires(post): /sbin/ldconfig
   90 Requires(postun): /sbin/ldconfig
   91 Requires: %{name}-libs = %{version}-%{release}
   92 Obsoletes: %{name}-amf-libs < %{version}-%{release}
   93 
   94 %description amf-libs
   95 The Availability Management Framework provides a set of APIs to enable highly
   96 available applications. In addition to component registration and life cycle
   97 management, it includes functions for error reporting and health monitoring.
   98 The Availability Management Framework also assigns active or standby workloads
   99 to the components of an application as a function of component state and system
  100 configuration. The Availability Management Framework configuration allows
  101 prioritization of resources and provides for a variety of redundancy models.
  102 The Availability Management Framework also provides APIs for components to
  103 track the assignment of work or so-called component service instances among the
  104 set of components protecting the same component service instance.
  105 
  106 %package amf-director
  107 Group: System Environment/Daemons
  108 Summary: The OpenSAF implementation of the SAF-AIS-AMF Service
  109 Requires: /lib/lsb/init-functions
  110 Requires: %{name}-libs = %{version}-%{release}
  111 Requires: %{name}-amf-libs = %{version}-%{release}
  112 Requires: %{name}-imm-libs = %{version}-%{release}
  113 Requires: %{name}-ntf-libs = %{version}-%{release}
  114 Requires: %{name}-clm-libs = %{version}-%{release}
  115 Requires: %{name}-log-libs = %{version}-%{release}
  116 
  117 %description amf-director
  118 The OpenSAF implementation of the SAF-AIS-AMF Service. This daemon must be
  119 running on the System Controller nodes only.
  120 
  121 %package amf-nodedirector
  122 Group: System Environment/Daemons
  123 Summary: The OpenSAF implementation of the SAF-AIS-AMF Service
  124 Requires: /lib/lsb/init-functions
  125 Requires: %{name}-libs = %{version}-%{release}
  126 Requires: %{name}-amf-libs = %{version}-%{release}
  127 Requires: %{name}-imm-libs = %{version}-%{release}
  128 Requires: %{name}-ntf-libs = %{version}-%{release}
  129 Requires: %{name}-clm-libs = %{version}-%{release}
  130 
  131 %description amf-nodedirector
  132 The OpenSAF implementation of the SAF-AIS-AMF Service. This daemon must be
  133 running on both the System Controller nodes and the Payload nodes.
  134 
  135 %package amf-integration
  136 Group: System Environment/Libraries
  137 Summary: OpenSAF additions to simplify integration with the SAF-AIS-AMF Service
  138 Requires: %{name}-amf-libs = %{version}-%{release}
  139 
  140 %description amf-integration
  141 OpenSAF additions to simplify integration with the SAF-AIS-AMF Service
  142 
  143 
  144 %if %is_ais_ckpt
  145 
  146 %package ckpt-libs
  147 Group: System Environment/Libraries
  148 Summary: The OpenSAF implementation of the SAF-AIS-CKPT Service
  149 Requires(post): /sbin/ldconfig
  150 Requires(postun): /sbin/ldconfig
  151 Requires: %{name}-libs = %{version}-%{release}
  152 Obsoletes: %{name}-ckpt-libs < %{version}-%{release}
  153 
  154 %description ckpt-libs
  155 The Checkpoint Service provides a facility for processes to record checkpoint
  156 data incrementally, which can be used to protect an application against
  157 failures. When recovering from fail-over or switch-over situations, the
  158 checkpoint data can be retrieved, and execution can be resumed from the state
  159 recorded before the failure.
  160 
  161 %package ckpt-director
  162 Group: System Environment/Daemons
  163 Summary: The OpenSAF implementation of the SAF-AIS-CKPT Service
  164 Requires: /lib/lsb/init-functions
  165 Requires: %{name}-libs = %{version}-%{release}
  166 Requires: %{name}-ckpt-libs = %{version}-%{release}
  167 Requires: %{name}-imm-libs = %{version}-%{release}
  168 Requires: %{name}-amf-libs = %{version}-%{release}
  169 Requires: %{name}-clm-libs = %{version}-%{release}
  170 
  171 %description ckpt-director
  172 The OpenSAF implementation of the SAF-AIS-CKPT Service. This daemon must be
  173 running on the System Controller nodes only.
  174 
  175 %package ckpt-nodedirector
  176 Group: System Environment/Daemons
  177 Summary: The OpenSAF implementation of the SAF-AIS-CKPT Service
  178 Requires: /lib/lsb/init-functions
  179 Requires: %{name}-libs = %{version}-%{release}
  180 Requires: %{name}-ckpt-libs = %{version}-%{release}
  181 Requires: %{name}-amf-libs = %{version}-%{release}
  182 Requires: %{name}-clm-libs = %{version}-%{release}
  183 
  184 %description ckpt-nodedirector
  185 The OpenSAF implementation of the SAF-AIS-CKPT Service. This daemon must be
  186 running on both the System Controller nodes and the Payload nodes.
  187 
  188 %endif
  189 
  190 %package clm-libs
  191 Group: System Environment/Libraries
  192 Summary: The OpenSAF implementation of the SAF-AIS-CLM Service
  193 Requires(post): /sbin/ldconfig
  194 Requires(postun): /sbin/ldconfig
  195 Requires: %{name}-libs = %{version}-%{release}
  196 Obsoletes: %{name}-clm-libs < %{version}-%{release}
  197 
  198 %description clm-libs
  199 The Cluster Membership Service provides applications with membership information
  200 about the nodes that have been administratively configured in the cluster
  201 configuration (these nodes are also called cluster nodes or configured nodes),
  202 and it is core to any clustered system. A cluster consists of this set of
  203 configured nodes, each with a unique node name.
  204 
  205 %package clm-server
  206 Group: System Environment/Daemons
  207 Summary: The OpenSAF implementation of the SAF-AIS-CLM Service
  208 Requires: /lib/lsb/init-functions
  209 Requires: %{name}-libs = %{version}-%{release}
  210 Requires: %{name}-clm-libs = %{version}-%{release}
  211 Requires: %{name}-log-libs = %{version}-%{release}
  212 Requires: %{name}-imm-libs = %{version}-%{release}
  213 Requires: %{name}-amf-libs = %{version}-%{release}
  214 Requires: %{name}-ntf-libs = %{version}-%{release}
  215 %if %is_ais_plm
  216 Requires: %{name}-plm-libs = %{version}-%{release}
  217 %endif
  218 
  219 %description clm-server
  220 The OpenSAF implementation of the SAF-AIS-CLM Service. This daemon must be
  221 running on the System Controller nodes only.
  222 
  223 %package clm-nodeagent
  224 Group: System Environment/Daemons
  225 Summary: The OpenSAF implementation of the SAF-AIS-CLM Service
  226 Requires: /lib/lsb/init-functions
  227 Requires: %{name}-libs = %{version}-%{release}
  228 Requires: %{name}-clm-libs = %{version}-%{release}
  229 
  230 %description clm-nodeagent
  231 The OpenSAF implementation of the SAF-AIS-CLM Service. This daemon must be
  232 running on both the System Controller nodes and the Payload nodes.
  233 
  234 %if %is_ais_evt
  235 
  236 %package evt-libs
  237 Group: System Environment/Libraries
  238 Summary: The OpenSAF implementation of the SAF-AIS-EVT Service
  239 Requires(post): /sbin/ldconfig
  240 Requires(postun): /sbin/ldconfig
  241 Requires: %{name}-libs = %{version}-%{release}
  242 Obsoletes: %{name}-evt-libs < %{version}-%{release}
  243 
  244 %description evt-libs
  245 The Event Service is a publish/subscribe multipoint-to-multipoint communication
  246 mechanism that is based on the concept of event channels. One or more publishers
  247 communicate asynchronously with one or more subscribers by means of events over
  248 a cluster-wide entity named event channel.
  249 
  250 %package evt-server
  251 Group: System Environment/Daemons
  252 Summary: The OpenSAF implementation of the SAF-AIS-EVT Service
  253 Requires: /lib/lsb/init-functions
  254 Requires: %{name}-libs = %{version}-%{release}
  255 Requires: %{name}-evt-libs = %{version}-%{release}
  256 Requires: %{name}-imm-libs = %{version}-%{release}
  257 Requires: %{name}-amf-libs = %{version}-%{release}
  258 Requires: %{name}-clm-libs = %{version}-%{release}
  259 
  260 %description evt-server
  261 The OpenSAF implementation of the SAF-AIS-EVT Service. This daemon must be
  262 running on the System Controller nodes only.
  263 
  264 %endif
  265 
  266 %package imm-libs
  267 Group: System Environment/Libraries
  268 Summary: The OpenSAF implementation of the SAF-AIS-IMM Service
  269 Requires(post): /sbin/ldconfig
  270 Requires(postun): /sbin/ldconfig
  271 Requires: %{name}-libs = %{version}-%{release}
  272 Obsoletes: %{name}-imm-libs < %{version}-%{release}
  273 
  274 %description imm-libs
  275 The different entities of an SA Forum cluster, such as components provided by
  276 the Availability Management Framework, checkpoints provided by the Checkpoint
  277 Service, or message queues provided by the Message Service are represented by
  278 various objects of the SA Forum Information Model.
  279 
  280 %package imm-director
  281 Group: System Environment/Daemons
  282 Summary: The OpenSAF implementation of the SAF-AIS-IMM Service
  283 BuildRequires: libxml2-devel
  284 Requires: libxml2
  285 Requires: /lib/lsb/init-functions
  286 Requires: %{name}-libs = %{version}-%{release}
  287 Requires: %{name}-imm-libs = %{version}-%{release}
  288 Requires: %{name}-amf-libs = %{version}-%{release}
  289 
  290 %description imm-director
  291 The OpenSAF implementation of the SAF-AIS-IMM Service. This daemon must be
  292 running on the System Controller nodes only.
  293 
  294 %package imm-nodedirector
  295 Group: System Environment/Daemons
  296 Summary: The OpenSAF implementation of the SAF-AIS-IMM Service
  297 Requires: /lib/lsb/init-functions
  298 Requires: %{name}-libs = %{version}-%{release}
  299 Requires: %{name}-imm-libs = %{version}-%{release}
  300 Requires: %{name}-amf-libs = %{version}-%{release}
  301 
  302 %description imm-nodedirector
  303 The OpenSAF implementation of the SAF-AIS-IMM Service. This daemon must be
  304 running on both the System Controller nodes and the Payload nodes.
  305 
  306 %if %is_ais_lck
  307 
  308 %package lck-libs
  309 Group: System Environment/Libraries
  310 Summary: The OpenSAF implementation of the SAF-AIS-LCK Service
  311 Requires(post): /sbin/ldconfig
  312 Requires(postun): /sbin/ldconfig
  313 Requires: %{name}-libs = %{version}-%{release}
  314 Obsoletes: %{name}-lck-libs < %{version}-%{release}
  315 
  316 %description lck-libs
  317 The Lock Service is a distributed lock service, which is intended for use in a
  318 cluster where processes in different nodes might compete with each other for
  319 access to a shared resource.
  320 
  321 %package lck-director
  322 Group: System Environment/Daemons
  323 Summary: The OpenSAF implementation of the SAF-AIS-LCK Service
  324 Requires: /lib/lsb/init-functions
  325 Requires: %{name}-libs = %{version}-%{release}
  326 Requires: %{name}-lck-libs = %{version}-%{release}
  327 Requires: %{name}-imm-libs = %{version}-%{release}
  328 Requires: %{name}-amf-libs = %{version}-%{release}
  329 
  330 %description lck-director
  331 The OpenSAF implementation of the SAF-AIS-LCK Service. This daemon must be
  332 running on the System Controller nodes only.
  333 
  334 %package lck-nodedirector
  335 Group: System Environment/Daemons
  336 Summary: The OpenSAF implementation of the SAF-AIS-LCK Service
  337 Requires: /lib/lsb/init-functions
  338 Requires: %{name}-libs = %{version}-%{release}
  339 Requires: %{name}-lck-libs = %{version}-%{release}
  340 Requires: %{name}-amf-libs = %{version}-%{release}
  341 
  342 %description lck-nodedirector
  343 The OpenSAF implementation of the SAF-AIS-LCK Service. This daemon must be
  344 running on both the System Controller nodes and the Payload nodes.
  345 
  346 %endif
  347 
  348 %package log-libs
  349 Group: System Environment/Libraries
  350 Summary: The OpenSAF implementation of the SAF-AIS-LOG Service
  351 Requires(post): /sbin/ldconfig
  352 Requires(postun): /sbin/ldconfig
  353 Requires: %{name}-libs = %{version}-%{release}
  354 Obsoletes: %{name}-log-libs < %{version}-%{release}
  355 
  356 %description log-libs
  357 Logging information is a high-level cluster-significant, function-based (as
  358 opposed to implementation-particular) information suited primarily for network
  359 or system administrators, or automated tools to review current and historical
  360 logged information to trouble shoot issues such as misconfigurations, network
  361 disconnects and unavailable resources.
  362 
  363 %package log-server
  364 Group: System Environment/Daemons
  365 Summary: The OpenSAF implementation of the SAF-AIS-LOG Service
  366 Requires: /lib/lsb/init-functions
  367 Requires: %{name}-libs = %{version}-%{release}
  368 Requires: %{name}-imm-libs = %{version}-%{release}
  369 Requires: %{name}-amf-libs = %{version}-%{release}
  370 
  371 %description log-server
  372 The OpenSAF implementation of the SAF-AIS-LOG Service. This daemon must be
  373 running on the System Controller nodes only.
  374 
  375 %if %is_ais_plm
  376 
  377 %package plm-libs
  378 Group: System Environment/Libraries
  379 Summary: The OpenSAF implementation of the SAF-AIS-PLM Service
  380 BuildRequires: openhpi-devel
  381 Requires(post): /sbin/ldconfig
  382 Requires(postun): /sbin/ldconfig
  383 Requires: %{name}-libs = %{version}-%{release}
  384 Obsoletes: %{name}-plm-libs < %{version}-%{release}
  385 
  386 %description plm-libs
  387 Platform Management Service is an Application Interface Specification (AIS) of
  388 the Service AvailabilityTM Forum (SA Forum). It is intended for use by
  389 implementers of the Application Interface Specification and by application
  390 developers who would use the Application Interface Specification to develop
  391 applications that must be highly available. To use the PLM Service API, a
  392 process must be bound with the libSaPlm.so library.
  393 
  394 %package plm-server
  395 Group: System Environment/Daemons
  396 Summary: The OpenSAF implementation of the SAF-AIS-PLM Service
  397 BuildRequires: openhpi-devel
  398 Requires(post): /sbin/ldconfig
  399 Requires(postun): /sbin/ldconfig
  400 Requires: /lib/lsb/init-functions
  401 Requires: %{name}-libs = %{version}-%{release}
  402 Requires: %{name}-plm-libs = %{version}-%{release}
  403 Requires: %{name}-ntf-libs = %{version}-%{release}
  404 Requires: %{name}-imm-libs = %{version}-%{release}
  405 Requires: %{name}-amf-libs = %{version}-%{release}
  406 Requires: %{name}-plm-coordinator = %{version}-%{release}
  407 
  408 %description plm-server
  409 The OpenSAF implementation of the SAF-AIS-PLM Service. This daemon must be
  410 running on the System Controller nodes only.
  411 
  412 %package plm-coordinator
  413 Group: System Environment/Daemons
  414 Summary: The OpenSAF implementation of the SAF-AIS-PLM Service
  415 %if %use_systemd
  416 BuildRequires: systemd-devel
  417 %systemd_requires
  418 %endif
  419 Requires(post): /sbin/ldconfig
  420 Requires(postun): /sbin/ldconfig
  421 Requires: /lib/lsb/init-functions
  422 
  423 %description plm-coordinator
  424 The OpenSAF implementation of the SAF-AIS-PLM Service. This daemon must be
  425 running on any nodes that need Execution Environment (EE) integration with PLM.
  426 
  427 %package plm-hpi
  428 Group: System Environment/Libraries
  429 Summary: The OpenSAF implementation of the SAF-AIS-PLM Service
  430 BuildRequires: openhpi-devel
  431 Requires(post): /sbin/ldconfig
  432 Requires(postun): /sbin/ldconfig
  433 Requires: openhpi
  434 Requires: %{name}-plm-server = %{version}-%{release}
  435 
  436 %description plm-hpi
  437 The OpenSAF implementation of the SAF-AIS-PLM Service. This provides the HPI
  438 integration support to PLM.
  439 
  440 %endif
  441 
  442 %if %is_ais_msg
  443 
  444 %package msg-libs
  445 Group: System Environment/Libraries
  446 Summary: The OpenSAF implementation of the SAF-AIS-MSG Service
  447 Requires(post): /sbin/ldconfig
  448 Requires(postun): /sbin/ldconfig
  449 Requires: %{name}-libs = %{version}-%{release}
  450 Obsoletes: %{name}-msg-libs < %{version}-%{release}
  451 
  452 %description msg-libs
  453 The Message Service specifies a buffered message-passing system based on the
  454 concept of a message queue for processes on the same or on different nodes.
  455 Messages are written to message queues and read from them. A single message
  456 queue permits a multipoint-to-point communication. Message queues are
  457 persistent or non-persistent. The Message Service must preserve messages that
  458 have not yet been consumed when the message queue is closed.
  459 
  460 %package msg-director
  461 Group: System Environment/Daemons
  462 Summary: The OpenSAF implementation of the SAF-AIS-MSG Service
  463 Requires: /lib/lsb/init-functions
  464 Requires: %{name}-libs = %{version}-%{release}
  465 Requires: %{name}-msg-libs = %{version}-%{release}
  466 Requires: %{name}-imm-libs = %{version}-%{release}
  467 Requires: %{name}-amf-libs = %{version}-%{release}
  468 
  469 %description msg-director
  470 The OpenSAF implementation of the SAF-AIS-MSG Service. This daemon must be
  471 running on the System Controller nodes only.
  472 
  473 %package msg-nodedirector
  474 Group: System Environment/Daemons
  475 Summary: The OpenSAF implementation of the SAF-AIS-MSG Service
  476 Requires: /lib/lsb/init-functions
  477 Requires: %{name}-libs = %{version}-%{release}
  478 Requires: %{name}-msg-libs = %{version}-%{release}
  479 Requires: %{name}-imm-libs = %{version}-%{release}
  480 Requires: %{name}-amf-libs = %{version}-%{release}
  481 Requires: %{name}-clm-libs = %{version}-%{release}
  482 
  483 %description msg-nodedirector
  484 The OpenSAF implementation of the SAF-AIS-MSG Service. This daemon must be
  485 running on both the System Controller nodes and the Payload nodes.
  486 
  487 %endif
  488 
  489 %package ntf-libs
  490 Group: System Environment/Libraries
  491 Summary: The OpenSAF implementation of the SAF-AIS-NTF Service
  492 Requires(post): /sbin/ldconfig
  493 Requires(postun): /sbin/ldconfig
  494 Requires: %{name}-libs = %{version}-%{release}
  495 Obsoletes: %{name}-ntf-libs < %{version}-%{release}
  496 
  497 %description ntf-libs
  498 ITU-T recommendations X.700 - X.799 deal with the area of system management,
  499 and how it may be applied to a communications system. ITU-T broadly classifies
  500 the management domain into the famous FCAPS model that segregates the overall
  501 management into five areas, with the "F" standing for Fault Management. The
  502 Notification Service is based on these fault management recommendations to a
  503 great degree, but also needs many other supportive recommendations that include,
  504 for example, the concepts of managed objects, which are covered in Structure
  505 of Management Information. Normative references to ITU-T-defined agents and
  506 managers are used in the definition of the current notification standard.
  507 
  508 %package ntf-server
  509 Group: System Environment/Daemons
  510 Summary: The OpenSAF implementation of the SAF-AIS-NTF Service
  511 Requires: /lib/lsb/init-functions
  512 Requires: %{name}-libs = %{version}-%{release}
  513 Requires: %{name}-ntf-libs = %{version}-%{release}
  514 Requires: %{name}-amf-libs = %{version}-%{release}
  515 Requires: %{name}-log-libs = %{version}-%{release}
  516 
  517 %description ntf-server
  518 The OpenSAF implementation of the SAF-AIS-NTF Service. This daemon must be
  519 running on the System Controller nodes only.
  520 
  521 %if %is_ais_smf
  522 
  523 %package smf-libs
  524 Group: System Environment/Libraries
  525 Summary: The OpenSAF implementation of the SAF-AIS-SMF Service
  526 Requires(post): /sbin/ldconfig
  527 Requires(postun): /sbin/ldconfig
  528 Obsoletes: %{name}-smf-libs < %{version}-%{release}
  529 
  530 %description smf-libs
  531 SA Forum systems are required to provide highly available services to their
  532 users over a long period of time during which the systems may undergo changes
  533 due to growth and evolution, bug fixes, or enhancement of services. These
  534 changes may require addition, removal, replacement, or reconfiguration of
  535 hardware or software elements. High service availability requires that such
  536 changes cause no (or only minimal) loss of service.
  537 
  538 %package smf-director
  539 Group: System Environment/Daemons
  540 Summary: The OpenSAF implementation of the SAF-AIS-SMF Service
  541 BuildRequires: libxml2-devel
  542 Requires: libxml2
  543 Requires: /lib/lsb/init-functions
  544 Requires: %{name}-libs = %{version}-%{release}
  545 Requires: %{name}-smf-libs = %{version}-%{release}
  546 Requires: %{name}-imm-libs = %{version}-%{release}
  547 Requires: %{name}-amf-libs = %{version}-%{release}
  548 Requires: %{name}-clm-libs = %{version}-%{release}
  549 Requires: %{name}-ntf-libs = %{version}-%{release}
  550 
  551 %description smf-director
  552 The OpenSAF implementation of the SAF-AIS-SMF Service. This daemon must be
  553 running on the System Controller nodes only.
  554 
  555 %package smf-nodedirector
  556 Group: System Environment/Daemons
  557 Summary: The OpenSAF implementation of the SAF-AIS-SMF Service
  558 Requires: /lib/lsb/init-functions
  559 Requires: %{name}-libs = %{version}-%{release}
  560 Requires: %{name}-smf-libs = %{version}-%{release}
  561 Requires: %{name}-amf-libs = %{version}-%{release}
  562 
  563 %description smf-nodedirector
  564 The OpenSAF implementation of the SAF-AIS-SMF Service. This daemon must be
  565 running on both the System Controller nodes and the Payload nodes.
  566 
  567 %endif
  568 
  569 %package controller
  570 Group: System Environment/Daemons
  571 Summary: The required components to run an OpenSAF System Controller node
  572 Conflicts: %{name}-payload
  573 Requires(post): /sbin/ldconfig
  574 Requires(postun): /sbin/ldconfig
  575 Requires: %{name} = %{version}-%{release}
  576 Requires: %{name}-libs = %{version}-%{release}
  577 Requires: %{name}-amf-libs = %{version}-%{release}
  578 Requires: %{name}-amf-director = %{version}-%{release}
  579 Requires: %{name}-amf-nodedirector = %{version}-%{release}
  580 Requires: %{name}-clm-libs = %{version}-%{release}
  581 Requires: %{name}-clm-server = %{version}-%{release}
  582 Requires: %{name}-clm-nodeagent = %{version}-%{release}
  583 Requires: %{name}-imm-libs = %{version}-%{release}
  584 Requires: %{name}-imm-director = %{version}-%{release}
  585 Requires: %{name}-imm-nodedirector = %{version}-%{release}
  586 Requires: %{name}-log-libs = %{version}-%{release}
  587 Requires: %{name}-log-server = %{version}-%{release}
  588 Requires: %{name}-ntf-libs = %{version}-%{release}
  589 Requires: %{name}-ntf-server = %{version}-%{release}
  590 Requires: %{name}-tools = %{version}-%{release}
  591 
  592 %description controller
  593 
  594 
  595 %package payload
  596 Group: System Environment/Daemons
  597 Summary: The required components to run an OpenSAF Payload node
  598 Conflicts: %{name}-controller
  599 Requires(post): /sbin/ldconfig
  600 Requires(postun): /sbin/ldconfig
  601 Requires: %{name} = %{version}-%{release}
  602 Requires: %{name}-libs = %{version}-%{release}
  603 Requires: %{name}-amf-libs = %{version}-%{release}
  604 Requires: %{name}-amf-nodedirector = %{version}-%{release}
  605 Requires: %{name}-clm-libs = %{version}-%{release}
  606 Requires: %{name}-clm-nodeagent = %{version}-%{release}
  607 Requires: %{name}-imm-libs = %{version}-%{release}
  608 Requires: %{name}-imm-nodedirector = %{version}-%{release}
  609 Requires: %{name}-log-libs = %{version}-%{release}
  610 Requires: %{name}-ntf-libs = %{version}-%{release}
  611 Requires: %{name}-tools = %{version}-%{release}
  612 
  613 %description payload
  614 
  615 %package libs
  616 Group: System Environment/Libraries
  617 Summary: The non-SAF OpenSAF specific common runtime libraries
  618 Requires: /sbin/ldconfig
  619 Obsoletes: %{name}-libs < %{version}-%{release}
  620 
  621 %description libs
  622 
  623 
  624 %package tools
  625 Group: System/Management
  626 Summary: OpenSAF specific command line tools for management of an OpenSAF based system
  627 Requires: %{name}-amf-libs = %{version}-%{release}
  628 Requires: %{name}-clm-libs = %{version}-%{release}
  629 Requires: %{name}-imm-libs = %{version}-%{release}
  630 Requires: %{name}-log-libs = %{version}-%{release}
  631 Requires: %{name}-ntf-libs = %{version}-%{release}
  632 %if %is_ais_smf
  633 Requires: %{name}-smf-libs = %{version}-%{release}
  634 %endif
  635 
  636 %description tools
  637 
  638 
  639 %package devel
  640 Group: Development/Libraries
  641 Summary: The development environment for the OpenSAF project
  642 BuildRequires: pkgconfig
  643 Requires: %{name}-libs = %{version}-%{release}
  644 Requires: %{name}-amf-libs = %{version}-%{release}
  645 Requires: %{name}-clm-libs = %{version}-%{release}
  646 Requires: %{name}-imm-libs = %{version}-%{release}
  647 Requires: %{name}-log-libs = %{version}-%{release}
  648 Requires: %{name}-ntf-libs = %{version}-%{release}
  649 %if %is_ais_plm
  650 Requires: %{name}-plm-libs = %{version}-%{release}
  651 Requires: %{name}-plm-coordinator = %{version}-%{release}
  652 %endif
  653 %if %is_ais_ckpt
  654 Requires: %{name}-ckpt-libs = %{version}-%{release}
  655 %endif
  656 %if %is_ais_evt
  657 Requires: %{name}-evt-libs = %{version}-%{release}
  658 %endif
  659 %if %is_ais_lck
  660 Requires: %{name}-lck-libs = %{version}-%{release}
  661 %endif
  662 %if %is_ais_msg
  663 Requires: %{name}-msg-libs = %{version}-%{release}
  664 %endif
  665 %if %is_ais_smf
  666 Requires: %{name}-smf-libs = %{version}-%{release}
  667 %endif
  668 %if %is_java
  669 Requires: %{name}-java = %{version}-%{release}
  670 %endif
  671 
  672 %description devel
  673 
  674 
  675 %package samples
  676 Group: Applications/System
  677 Summary: Small sample applications to demonstrate OpenSAF functionalities
  678 Requires: %{name}-devel = %{version}-%{release}
  679 
  680 %description samples
  681 
  682 
  683 %if %is_java
  684 
  685 %package java
  686 Group: Development/Libraries
  687 Summary: The Java AIS interface mapping for AMF and CLM
  688 BuildRequires: ant java-devel
  689 Requires: java
  690 Requires: %{name}-amf-libs = %{version}-%{release}
  691 Requires: %{name}-clm-libs = %{version}-%{release}
  692 
  693 %description java
  694 
  695 %endif
  696 
  697 
  698 %if %is_python
  699 
  700 %package python
  701 Group: Development/Libraries
  702 Summary: The Python AIS Bindings for SAF Services
  703 BuildRequires: python-devel
  704 Requires: %{name}-amf-libs = %{version}-%{release}
  705 Requires: %{name}-clm-libs = %{version}-%{release}
  706 Requires: %{name}-imm-libs = %{version}-%{release}
  707 Requires: %{name}-log-libs = %{version}-%{release}
  708 Requires: %{name}-ntf-libs = %{version}-%{release}
  709 %if %is_ais_plm
  710 Requires: %{name}-plm-libs = %{version}-%{release}
  711 Requires: %{name}-plm-coordinator = %{version}-%{release}
  712 %endif
  713 %if %is_ais_ckpt
  714 Requires: %{name}-ckpt-libs = %{version}-%{release}
  715 %endif
  716 %if %is_ais_evt
  717 Requires: %{name}-evt-libs = %{version}-%{release}
  718 %endif
  719 %if %is_ais_lck
  720 Requires: %{name}-lck-libs = %{version}-%{release}
  721 %endif
  722 %if %is_ais_msg
  723 Requires: %{name}-msg-libs = %{version}-%{release}
  724 %endif
  725 %if %is_ais_smf
  726 Requires: %{name}-smf-libs = %{version}-%{release}
  727 %endif
  728 
  729 %description python
  730 
  731 %endif
  732 
  733 
  734 %if %is_tests
  735 
  736 %package tests
  737 Group: Development/Libraries
  738 Summary: The OpenSAF test programs
  739 Requires: %{name}-controller = %{version}-%{release}
  740 
  741 %description tests
  742 
  743 %endif
  744 
  745 
  746 %prep
  747 %setup -q
  748 
  749 
  750 %build
  751 %configure @ac_configure_args@
  752 %{__make} %{?_smp_mflags}
  753 
  754 
  755 %install
  756 %{__rm} -rf $RPM_BUILD_ROOT
  757 %{__make} install DESTDIR=$RPM_BUILD_ROOT
  758 %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  759 %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/libopensaf_core.so
  760 %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/libopensaf_core.a
  761 %{__rm} -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.la
  762 %{__rm} -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.a
  763 %{__rm} -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.so
  764 %{__rm} -rf $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
  765 
  766 %clean
  767 %{__rm} -rf $RPM_BUILD_ROOT
  768 
  769 %pre
  770 getent group %{opensaf_group} > /dev/null || groupadd -r %{opensaf_group}
  771 getent passwd %{opensaf_user} > /dev/null || \
  772    useradd -r -g %{opensaf_user} -d %{_pkgdatadir} -s /sbin/nologin -c "OpenSAF" %{opensaf_user}
  773 if ! grep %{opensaf_user} /etc/sudoers > /dev/null; then
  774    echo '%{opensaf_user} ALL = NOPASSWD: /sbin/reboot, /sbin/shutdown, /sbin/tipc-config, /usr/bin/pkill, /usr/bin/killall' >> /etc/sudoers
  775    echo 'Defaults:%opensaf !requiretty' >> /etc/sudoers
  776    echo 'Defaults:opensaf !requiretty' >> /etc/sudoers
  777 fi
  778 exit 0
  779 
  780 %post
  781 # $1 == 1 (install), $1 == 2 (upgrade)
  782 if [ $1 -gt 1 ]; then
  783    %if %use_systemd
  784       /bin/systemctl try-restart opensafd.service
  785    %else
  786       /sbin/service opensafd try-restart >/dev/null 2>&1 || :
  787    %endif
  788 else
  789    %if %use_systemd
  790       %_systemd_post opensafd.service
  791    %else
  792       /usr/lib/lsb/install_initd %{_initddir}/opensafd
  793    %endif
  794 fi
  795 
  796 %preun
  797 # $1 == 1 (upgrade), $1 == 0, (uninstall)
  798 if [ $1 = 0 ]; then
  799     %if %use_systemd
  800         %_systemd_preun opensafd.service
  801     %else
  802         /sbin/service opensafd stop >/dev/null 2>&1 || :
  803         /usr/lib/lsb/remove_initd %{_initddir}/opensafd
  804         sed -i '/%{opensaf_user}/d' /etc/sudoers
  805     %endif
  806 fi
  807 
  808 %post amf-libs -p /sbin/ldconfig
  809 %postun amf-libs -p /sbin/ldconfig
  810 
  811 %if %is_ais_plm
  812 %post plm-libs -p /sbin/ldconfig
  813 %postun plm-libs -p/sbin/ldconfig
  814 
  815 %if %is_ais_plm
  816 %post plm-coordinator
  817 # $1 == 1 (install), $1 == 2 (upgrade)
  818 if [ $1 -gt 1 ]; then
  819    echo "" >/dev/null 2>&1 || :
  820 else
  821    %if %use_systemd
  822       %_systemd_post plmcboot.service
  823       %_systemd_post plmcd.service
  824    %else
  825       /usr/lib/lsb/install_initd %{_initddir}/plmcboot
  826       /usr/lib/lsb/install_initd %{_initddir}/plmcd
  827    %endif
  828 fi
  829 
  830 %preun plm-coordinator
  831 # $1 == 1 (upgrade), $1 == 0, (uninstall)
  832 if [ $1 = 0 ]; then
  833     %if %use_systemd
  834         %_systemd_preun plmcboot.service
  835         %_systemd_preun plmcd.service
  836     %else
  837         /usr/lib/lsb/remove_initd %{_initddir}/plmcboot
  838         /usr/lib/lsb/remove_initd %{_initddir}/plmcd
  839     %endif
  840 fi
  841 %endif
  842 
  843 %if %is_immxml
  844 %post plm-hpi
  845 /sbin/ldconfig
  846 sed -i '/isHpiSupported/{N;s|<value>0</value>|<value>1</value>|g}' \
  847 	%{_pkgimmxml_svcdir}/plmsv_objects.xml
  848 %endif
  849 
  850 %postun plm-hpi -p /sbin/ldconfig
  851 %endif
  852 
  853 %if %is_ais_ckpt
  854 %post ckpt-libs -p /sbin/ldconfig
  855 %postun ckpt-libs -p /sbin/ldconfig
  856 %endif
  857 
  858 %post clm-libs -p /sbin/ldconfig
  859 %postun clm-libs -p /sbin/ldconfig
  860 
  861 %if %is_ais_evt
  862 %post evt-libs -p /sbin/ldconfig
  863 %postun evt-libs -p /sbin/ldconfig
  864 %endif
  865 
  866 %post imm-libs -p /sbin/ldconfig
  867 %postun imm-libs -p /sbin/ldconfig
  868 
  869 %if %is_ais_lck
  870 %post lck-libs -p /sbin/ldconfig
  871 %postun lck-libs -p /sbin/ldconfig
  872 %endif
  873 
  874 %post log-libs -p /sbin/ldconfig
  875 %postun log-libs -p /sbin/ldconfig
  876 
  877 %if %is_ais_msg
  878 %post msg-libs -p /sbin/ldconfig
  879 %postun msg-libs -p /sbin/ldconfig
  880 %endif
  881 
  882 %post ntf-libs -p /sbin/ldconfig
  883 %postun ntf-libs -p /sbin/ldconfig
  884 
  885 %if %is_ais_smf
  886 %post smf-libs -p /sbin/ldconfig
  887 %postun smf-libs -p /sbin/ldconfig
  888 %endif
  889 
  890 %post libs -p /sbin/ldconfig
  891 %postun libs -p /sbin/ldconfig
  892 
  893 %post controller
  894 %if !%is_ais_plm
  895 sed -i '/plmd/d'  %{_pkgsysconfdir}/nodeinit.conf.controller
  896 %endif
  897 
  898 
  899 # $1 == 1 (install), $1 == 2 (upgrade)
  900 if [ $1 = 1 ] || [ $1 = 2 ]; then
  901 	echo "controller" > %{_pkgsysconfdir}/node_type
  902 	hostname -s >  %{_pkgsysconfdir}/node_name
  903 fi
  904 
  905 /sbin/ldconfig
  906 
  907 %preun controller
  908 # $1 == 1 (upgrade), $1 == 0, (uninstall)
  909 
  910 %postun controller -p /sbin/ldconfig
  911 
  912 %post payload
  913 
  914 # $1 == 1 (install), $1 == 2 (upgrade)
  915 if [ $1 = 1 ] || [ $1 = 2 ]; then
  916 	echo "payload" > %{_pkgsysconfdir}/node_type
  917 	hostname -s >  %{_pkgsysconfdir}/node_name
  918 fi
  919 
  920 /sbin/ldconfig
  921 
  922 %preun payload
  923 # $1 == 1 (upgrade), $1 == 0, (uninstall)
  924 
  925 %postun payload -p /sbin/ldconfig
  926 
  927 %files
  928 %defattr(-,root,root)
  929 %doc AUTHORS ChangeLog COPYING.LIB INSTALL NEWS THANKS
  930 %doc README 00-README.uml 00-README.conf 00-README.debug
  931 %dir %{_pkglibdir}
  932 %dir %{_pkgsysconfdir}
  933 %attr(-,%{opensaf_user},%{opensaf_group}) %dir %{_localstatedir}/lib/%{name}
  934 %attr(-,%{opensaf_user},%{opensaf_group}) %dir %{_localstatedir}/log/%{name}
  935 %attr(-,%{opensaf_user},%{opensaf_group}) %dir %{_localstatedir}/run/%{name}
  936 %config(noreplace) %{_pkgsysconfdir}/chassis_id
  937 %config(noreplace) %{_pkgsysconfdir}/slot_id
  938 %config(noreplace) %{_pkgsysconfdir}/subslot_id
  939 %config(noreplace) %{_pkgsysconfdir}/node_type
  940 %config(noreplace) %{_pkgsysconfdir}/node_name
  941 %config %{_pkgsysconfdir}/osafdir.conf
  942 %config %{_pkgsysconfdir}/nid.conf
  943 %if %use_systemd
  944 %config %_unitdir/opensafd.service
  945 %endif
  946 %config %{_initddir}/opensafd
  947 %{_pkglibdir}/opensafd
  948 %{_pkglibdir}/opensaf_reboot
  949 %{_pkglibdir}/opensaf_scale_out
  950 %{_pkglibdir}/plm_scale_out
  951 %{_pkglibdir}/opensaf_sc_active
  952 %{_pkglibdir}/configure_tipc
  953 %{_pkglibdir}/tipc-config
  954 
  955 
  956 %files amf-libs
  957 %defattr(-,root,root)
  958 %{_libdir}/libSaAmf.so.*
  959 %{_pkglibdir}/libamf_common.so.*
  960 
  961 %files amf-director
  962 %defattr(-,root,root)
  963 %dir %{_pkgsysconfdir}
  964 %dir %{_pkglibdir}
  965 %dir %{_pkgclcclidir}
  966 %dir %{_pkgdatadir}
  967 %if %is_immxml
  968 %dir %{_pkgimmxml_svcdir}
  969 %dir %{_pkgimmxmldir}
  970 %endif
  971 %config(noreplace) %{_pkgsysconfdir}/amfd.conf
  972 %{_pkglibdir}/osafamfd
  973 %{_pkgclcclidir}/osaf-amfd
  974 %if %is_immxml
  975 %{_pkgimmxml_svcdir}/amf_classes.xml
  976 %{_pkgimmxml_svcdir}/amf_objects.xml
  977 %{_pkgimmxml_svcdir}/amfwdog_pl_template.xml
  978 %{_pkgimmxml_svcdir}/amfwdog_sc_template.xml
  979 %{_pkgimmxml_svcdir}/amfwdog_objects.xml
  980 %endif
  981 
  982 %files amf-nodedirector
  983 %defattr(-,root,root)
  984 %dir %{_pkgsysconfdir}
  985 %dir %{_pkglibdir}
  986 %dir %{_pkgclcclidir}
  987 %config(noreplace) %{_pkgsysconfdir}/amfnd.conf
  988 %config(noreplace) %{_pkgsysconfdir}/amfwdog.conf
  989 %{_pkglibdir}/osafamfnd
  990 %{_pkgclcclidir}/osaf-amfnd
  991 %{_pkglibdir}/osafamfwd
  992 %{_pkgclcclidir}/osaf-amfwd
  993 
  994 %files amf-integration
  995 %defattr(-,root,root)
  996 %{_sbindir}/amfpm
  997 %{_sbindir}/amfclusterstatus
  998 
  999 
 1000 %if %is_ais_ckpt
 1001 
 1002 %files ckpt-libs
 1003 %defattr(-,root,root)
 1004 %{_libdir}/libSaCkpt.so.*
 1005 %{_pkglibdir}/libckpt_common.so.*
 1006 
 1007 %files ckpt-director
 1008 %defattr(-,root,root)
 1009 %dir %{_pkgsysconfdir}
 1010 %dir %{_pkglibdir}
 1011 %dir %{_pkgclcclidir}
 1012 %dir %{_pkgdatadir}
 1013 %if %is_immxml
 1014 %dir %{_pkgimmxml_svcdir}
 1015 %dir %{_pkgimmxmldir}
 1016 %endif
 1017 %config(noreplace) %{_pkgsysconfdir}/ckptd.conf
 1018 %{_pkglibdir}/osafckptd
 1019 %{_pkgclcclidir}/osaf-ckptd
 1020 %if %is_immxml
 1021 %{_pkgimmxml_svcdir}/cpsv_classes.xml
 1022 %{_pkgimmxml_svcdir}/cpsv_objects.xml
 1023 %{_pkgimmxml_svcdir}/cpsv_pl_template.xml
 1024 %{_pkgimmxml_svcdir}/cpsv_sc_template.xml
 1025 %endif
 1026 
 1027 %files ckpt-nodedirector
 1028 %defattr(-,root,root)
 1029 %dir %{_pkgsysconfdir}
 1030 %dir %{_pkglibdir}
 1031 %dir %{_pkgclcclidir}
 1032 %config(noreplace) %{_pkgsysconfdir}/ckptnd.conf
 1033 %{_pkglibdir}/osafckptnd
 1034 %{_pkgclcclidir}/osaf-ckptnd
 1035 
 1036 %endif
 1037 
 1038 
 1039 %files clm-libs
 1040 %defattr(-,root,root)
 1041 %{_libdir}/libSaClm.so.*
 1042 %{_pkglibdir}/libclm_common.so.*
 1043 
 1044 %files clm-server
 1045 %defattr(-,root,root)
 1046 %dir %{_pkgsysconfdir}
 1047 %dir %{_pkglibdir}
 1048 %dir %{_pkgclcclidir}
 1049 %dir %{_pkgdatadir}
 1050 %if %is_immxml
 1051 %dir %{_pkgimmxmldir}
 1052 %dir %{_pkgimmxml_svcdir}
 1053 %endif
 1054 %config(noreplace) %{_pkgsysconfdir}/clmd.conf
 1055 %{_pkglibdir}/osafclmd
 1056 %{_pkgclcclidir}/osaf-clmd
 1057 %if %is_immxml
 1058 %{_pkgimmxml_svcdir}/clmsv_classes.xml
 1059 %{_pkgimmxml_svcdir}/clmsv_objects.xml
 1060 %if %is_ais_plm
 1061 %{_pkgimmxml_svcdir}/clmsv_plm_sc_template.xml
 1062 %{_pkgimmxml_svcdir}/clmsv_plm_pl_template.xml
 1063 %else
 1064 %{_pkgimmxml_svcdir}/clmsv_sc_template.xml
 1065 %{_pkgimmxml_svcdir}/clmsv_pl_template.xml
 1066 %endif
 1067 %endif
 1068 
 1069 %files clm-nodeagent
 1070 %defattr(-,root,root)
 1071 %dir %{_pkgclcclidir}
 1072 %dir %{_pkglibdir}
 1073 %dir %{_pkgclmscriptsdir}
 1074 %config(noreplace) %{_pkgsysconfdir}/clmna.conf
 1075 %{_pkglibdir}/osafclmna
 1076 %{_pkgclcclidir}/osaf-clmna
 1077 %{_pkgclmscriptsdir}/osafclm_test
 1078 
 1079 
 1080 %if %is_ais_evt
 1081 
 1082 %files evt-libs
 1083 %defattr(-,root,root)
 1084 %{_libdir}/libSaEvt.so.*
 1085 %{_pkglibdir}/libevt_common.so.*
 1086 
 1087 %files evt-server
 1088 %defattr(-,root,root)
 1089 %dir %{_pkgsysconfdir}
 1090 %dir %{_pkglibdir}
 1091 %dir %{_pkgclcclidir}
 1092 %dir %{_pkgdatadir}
 1093 %if %is_immxml
 1094 %dir %{_pkgimmxml_svcdir}
 1095 %dir %{_pkgimmxmldir}
 1096 %endif
 1097 %config(noreplace) %{_pkgsysconfdir}/evtd.conf
 1098 %{_pkglibdir}/osafevtd
 1099 %{_pkgclcclidir}/osaf-evtd
 1100 %if %is_immxml
 1101 %{_pkgimmxml_svcdir}/edsv_classes.xml
 1102 %{_pkgimmxml_svcdir}/edsv_objects.xml
 1103 %{_pkgimmxml_svcdir}/edsv_sc_template.xml
 1104 %endif
 1105 
 1106 %endif
 1107 
 1108 
 1109 %files imm-libs
 1110 %defattr(-,root,root)
 1111 %{_libdir}/libSaImmOi.so.*
 1112 %{_libdir}/libSaImmOm.so.*
 1113 %{_pkglibdir}/libimm_common.so.*
 1114 %{_pkglibdir}/libimmpbe_dump.so.*
 1115 
 1116 %files imm-director
 1117 %defattr(-,root,root)
 1118 %dir %{_pkgsysconfdir}
 1119 %dir %{_pkglibdir}
 1120 %dir %{_pkgclcclidir}
 1121 %dir %{_pkgdatadir}
 1122 %if %is_immxml
 1123 %dir %{_pkgimmxml_svcdir}
 1124 %dir %{_pkgimmxmldir}
 1125 %endif
 1126 %config(noreplace) %{_pkgsysconfdir}/immd.conf
 1127 %{_pkglibdir}/osafimmd
 1128 %{_pkgclcclidir}/osaf-immd
 1129 %if %is_immxml
 1130 %{_pkgimmxmldir}/baseimm.py*
 1131 %{_pkgimmxmldir}/README
 1132 %{_pkgimmxmldir}/immxml-clustersize
 1133 %{_pkgimmxmldir}/immxml-configure
 1134 %{_pkgimmxmldir}/immxml-modify-config
 1135 %{_pkgimmxmldir}/immxml-merge
 1136 %{_pkgimmxmldir}/immxml-nodegen
 1137 %{_pkgimmxmldir}/immxml-validate
 1138 %{_pkgimmxmldir}/verify.sh
 1139 %{_pkgimmxml_svcdir}/immsv_classes.xml
 1140 %{_pkgimmxml_svcdir}/immsv_objects.xml
 1141 %{_pkgimmxml_svcdir}/immsv_pl_template.xml
 1142 %{_pkgimmxml_svcdir}/immsv_sc_template.xml
 1143 %{_pkgimmxml_svcdir}/imm_copyright.xml
 1144 %endif
 1145 
 1146 %files imm-nodedirector
 1147 %defattr(-,root,root)
 1148 %dir %{_pkgsysconfdir}
 1149 %dir %{_pkglibdir}
 1150 %dir %{_pkgclcclidir}
 1151 %config(noreplace) %{_pkgsysconfdir}/immnd.conf
 1152 %{_pkglibdir}/osafimmnd
 1153 %{_pkglibdir}/osafimmloadd
 1154 %{_pkglibdir}/osafimmpbed
 1155 %{_pkgclcclidir}/osaf-immnd
 1156 
 1157 
 1158 %if %is_ais_plm
 1159 
 1160 %files plm-libs
 1161 %defattr(-,root,root)
 1162 %{_libdir}/libSaPlm.so.*
 1163 %{_pkglibdir}/libplm_common.so.*
 1164 %{_pkglibdir}/libplmc.so.*
 1165 
 1166 %files plm-server
 1167 %defattr(-,root,root)
 1168 %dir %{_pkgsysconfdir}
 1169 %dir %{_pkglibdir}
 1170 %dir %{_pkgclcclidir}
 1171 %dir %{_pkgdatadir}
 1172 %if %is_immxml
 1173 %dir %{_pkgimmxml_svcdir}
 1174 %dir %{_pkgimmxmldir}
 1175 %endif
 1176 %config(noreplace) %{_pkgsysconfdir}/plmd.conf
 1177 %{_pkglibdir}/osafplmd
 1178 %{_pkgclcclidir}/osaf-plmd
 1179 %if %is_immxml
 1180 %{_pkgimmxml_svcdir}/plmsv_classes.xml
 1181 %{_pkgimmxml_svcdir}/plmsv_objects.xml
 1182 %{_pkgimmxml_svcdir}/plmsv_sc_template.xml
 1183 %{_pkgimmxml_svcdir}/plmsv_pl_template.xml
 1184 %endif
 1185 
 1186 %files plm-coordinator
 1187 %defattr(-,root,root)
 1188 %config(noreplace) %{_sysconfdir}/plmcd.conf
 1189 %{_sbindir}/plmcd
 1190 %{_libdir}/libplmc_utils.so.*
 1191 %if %use_systemd
 1192 %_unitdir/plmcboot.service
 1193 %_unitdir/plmcd.service
 1194 %else
 1195 %{_initddir}/plmcboot
 1196 %{_initddir}/plmcd
 1197 %endif
 1198 
 1199 %files plm-hpi
 1200 %defattr(-,root,root)
 1201 %dir %{_pkglibdir}
 1202 %{_pkglibdir}/libplms_hpi.so.*
 1203 
 1204 %endif
 1205 
 1206 
 1207 %if %is_ais_lck
 1208 
 1209 %files lck-libs
 1210 %defattr(-,root,root)
 1211 %{_libdir}/libSaLck.so.*
 1212 %{_pkglibdir}/liblck_common.so.*
 1213 
 1214 %files lck-director
 1215 %defattr(-,root,root)
 1216 %dir %{_pkgsysconfdir}
 1217 %dir %{_pkglibdir}
 1218 %dir %{_pkgclcclidir}
 1219 %dir %{_pkgdatadir}
 1220 %if %is_immxml
 1221 %dir %{_pkgimmxml_svcdir}
 1222 %dir %{_pkgimmxmldir}
 1223 %endif
 1224 %config(noreplace) %{_pkgsysconfdir}/lckd.conf
 1225 %{_pkglibdir}/osaflckd
 1226 %{_pkgclcclidir}/osaf-lckd
 1227 %if %is_immxml
 1228 %{_pkgimmxml_svcdir}/glsv_classes.xml
 1229 %{_pkgimmxml_svcdir}/glsv_objects.xml
 1230 %{_pkgimmxml_svcdir}/glsv_pl_template.xml
 1231 %{_pkgimmxml_svcdir}/glsv_sc_template.xml
 1232 %endif
 1233 
 1234 %files lck-nodedirector
 1235 %defattr(-,root,root)
 1236 %dir %{_pkgsysconfdir}
 1237 %dir %{_pkglibdir}
 1238 %dir %{_pkgclcclidir}
 1239 %config(noreplace) %{_pkgsysconfdir}/lcknd.conf
 1240 %{_pkglibdir}/osaflcknd
 1241 %{_pkgclcclidir}/osaf-lcknd
 1242 
 1243 %endif
 1244 
 1245 
 1246 %files log-libs
 1247 %defattr(-,root,root)
 1248 %{_libdir}/libSaLog.so.*
 1249 
 1250 %files log-server
 1251 %defattr(-,root,root)
 1252 %dir %{_pkgsysconfdir}
 1253 %dir %{_pkglibdir}
 1254 %dir %{_pkgclcclidir}
 1255 %dir %{_pkgdatadir}
 1256 %if %is_immxml
 1257 %dir %{_pkgimmxml_svcdir}
 1258 %dir %{_pkgimmxmldir}
 1259 %endif
 1260 %config(noreplace) %{_pkgsysconfdir}/logd.conf
 1261 %{_pkglibdir}/osaflogd
 1262 %{_pkgclcclidir}/osaf-logd
 1263 %if %is_immxml
 1264 %{_pkgimmxml_svcdir}/logsv_classes.xml
 1265 %{_pkgimmxml_svcdir}/logsv_objects.xml
 1266 %{_pkgimmxml_svcdir}/logsv_sc_template.xml
 1267 %endif
 1268 
 1269 
 1270 %if %is_ais_msg
 1271 
 1272 %files msg-libs
 1273 %defattr(-,root,root)
 1274 %{_libdir}/libSaMsg.so.*
 1275 %{_pkglibdir}/libmsg_common.so.*
 1276 
 1277 %files msg-director
 1278 %defattr(-,root,root)
 1279 %dir %{_pkgsysconfdir}
 1280 %dir %{_pkglibdir}
 1281 %dir %{_pkgclcclidir}
 1282 %dir %{_pkgdatadir}
 1283 %if %is_immxml
 1284 %dir %{_pkgimmxml_svcdir}
 1285 %dir %{_pkgimmxmldir}
 1286 %endif
 1287 %config(noreplace) %{_pkgsysconfdir}/msgd.conf
 1288 %{_pkglibdir}/osafmsgd
 1289 %{_pkgclcclidir}/osaf-msgd
 1290 %if %is_immxml
 1291 %{_pkgimmxml_svcdir}/mqsv_classes.xml
 1292 %{_pkgimmxml_svcdir}/mqsv_objects.xml
 1293 %{_pkgimmxml_svcdir}/mqsv_pl_template.xml
 1294 %{_pkgimmxml_svcdir}/mqsv_sc_template.xml
 1295 %endif
 1296 
 1297 %files msg-nodedirector
 1298 %defattr(-,root,root)
 1299 %dir %{_pkgsysconfdir}
 1300 %dir %{_pkglibdir}
 1301 %dir %{_pkgclcclidir}
 1302 %config(noreplace) %{_pkgsysconfdir}/msgnd.conf
 1303 %{_pkglibdir}/osafmsgnd
 1304 %{_pkgclcclidir}/osaf-msgnd
 1305 
 1306 %endif
 1307 
 1308 
 1309 %files ntf-libs
 1310 %defattr(-,root,root)
 1311 %{_libdir}/libSaNtf.so.*
 1312 %{_pkglibdir}/libntf_common.so.*
 1313 %{_pkglibdir}/libntfclient.so.*
 1314 
 1315 %files ntf-server
 1316 %defattr(-,root,root)
 1317 %dir %{_pkgsysconfdir}
 1318 %dir %{_pkglibdir}
 1319 %dir %{_pkgclcclidir}
 1320 %dir %{_pkgdatadir}
 1321 %if %is_immxml
 1322 %dir %{_pkgimmxml_svcdir}
 1323 %dir %{_pkgimmxmldir}
 1324 %endif
 1325 %config(noreplace) %{_pkgsysconfdir}/ntfd.conf
 1326 %{_pkglibdir}/osafntfd
 1327 %if %is_ntfimcn
 1328 %{_pkglibdir}/osafntfimcnd
 1329 %endif
 1330 %{_pkgclcclidir}/osaf-ntfd
 1331 %if %is_immxml
 1332 %{_pkgimmxml_svcdir}/ntfsv_objects.xml
 1333 %{_pkgimmxml_svcdir}/ntfsv_sc_template.xml
 1334 %endif
 1335 
 1336 
 1337 %if %is_ais_smf
 1338 
 1339 %files smf-libs
 1340 %defattr(-,root,root)
 1341 %{_libdir}/libSaSmf.so.*
 1342 %dir %{_pkglibdir}
 1343 %{_pkglibdir}/libsmfsv_common.so.*
 1344 
 1345 %files smf-director
 1346 %defattr(-,root,root)
 1347 %dir %{_pkgsysconfdir}
 1348 %dir %{_pkglibdir}
 1349 %dir %{_pkgclcclidir}
 1350 %dir %{_pkgdatadir}
 1351 %if %is_immxml
 1352 %dir %{_pkgimmxml_svcdir}
 1353 %dir %{_pkgimmxmldir}
 1354 %endif
 1355 %config(noreplace) %{_pkgsysconfdir}/smfd.conf
 1356 %{_pkglibdir}/smf-backup-create
 1357 %{_pkglibdir}/smf-bundle-check
 1358 %{_pkglibdir}/smf-cluster-reboot
 1359 %{_pkglibdir}/smf-node-check
 1360 %{_pkglibdir}/smf-repository-check
 1361 %{_pkglibdir}/osafsmfd
 1362 %{_pkgclcclidir}/osaf-smfd
 1363 %if %is_immxml
 1364 %{_pkgimmxml_svcdir}/smfsv_classes.xml
 1365 %{_pkgimmxml_svcdir}/smfsv_objects.xml
 1366 %{_pkgimmxml_svcdir}/smfsv_pl_template.xml
 1367 %{_pkgimmxml_svcdir}/smfsv_sc_template.xml
 1368 %if %is_tests
 1369 %{_pkgimmxml_svcdir}/democlass.xml
 1370 %endif
 1371 %endif
 1372 
 1373 %files smf-nodedirector
 1374 %defattr(-,root,root)
 1375 %dir %{_pkgsysconfdir}
 1376 %dir %{_pkglibdir}
 1377 %dir %{_pkgclcclidir}
 1378 %config(noreplace) %{_pkgsysconfdir}/smfnd.conf
 1379 %{_pkglibdir}/osafsmfnd
 1380 %{_pkgclcclidir}/osaf-smfnd
 1381 
 1382 %endif
 1383 
 1384 
 1385 %files controller
 1386 %defattr(-,root,root)
 1387 %attr(-,%{opensaf_user},%{opensaf_group}) %dir %{_localstatedir}/log/%{name}/saflog
 1388 %dir %{_pkgsysconfdir}
 1389 %dir %{_pkglibdir}
 1390 %dir %{_pkgclcclidir}
 1391 %dir %{_pkgdatadir}
 1392 %if %is_immxml
 1393 %dir %{_pkgimmxml_svcdir}
 1394 %dir %{_pkgimmxmldir}
 1395 %endif
 1396 %config(noreplace) %{_pkgsysconfdir}/fmd.conf
 1397 %config(noreplace) %{_pkgsysconfdir}/rde.conf
 1398 %config(noreplace) %{_pkgsysconfdir}/nodeinit.conf.controller
 1399 %config(noreplace) %{_pkgsysconfdir}/nodeinit.conf.payload
 1400 %config(noreplace) %{_pkgsysconfdir}/dtmd.conf
 1401 %config(noreplace) %{_pkgsysconfdir}/transportd.conf
 1402 %{_pkglibdir}/osafrded
 1403 %{_pkgclcclidir}/osaf-rded
 1404 %{_pkglibdir}/osaffmd
 1405 %{_pkgclcclidir}/osaf-fmd
 1406 %{_pkglibdir}/osafdtmd
 1407 %{_pkglibdir}/osaftransportd
 1408 %{_pkgclcclidir}/osaf-dtm
 1409 %{_pkgclcclidir}/osaf-transport
 1410 %{_bindir}/rdegetrole
 1411 %if %is_immxml
 1412 %{_pkgimmxml_svcdir}/common_pl_template.xml
 1413 %{_pkgimmxml_svcdir}/common_sc_template.xml
 1414 %{_pkgimmxml_svcdir}/rde_objects.xml
 1415 %{_pkgimmxml_svcdir}/rde_sc_template.xml
 1416 %{_pkgimmxml_svcdir}/fm_objects.xml
 1417 %{_pkgimmxml_svcdir}/fm_sc_template.xml
 1418 %{_pkgimmxml_svcdir}/osaf_globalconfig_classes.xml
 1419 %{_pkgimmxml_svcdir}/osaf_globalconfig_objects.xml
 1420 %endif
 1421 
 1422 
 1423 %files payload
 1424 %defattr(-,root,root)
 1425 %dir %{_pkgsysconfdir}
 1426 %config(noreplace) %{_pkgsysconfdir}/nodeinit.conf.payload
 1427 %config(noreplace) %{_pkgsysconfdir}/dtmd.conf
 1428 %config(noreplace) %{_pkgsysconfdir}/transportd.conf
 1429 %{_pkglibdir}/osafdtmd
 1430 %{_pkglibdir}/osaftransportd
 1431 %{_pkgclcclidir}/osaf-dtm
 1432 %{_pkgclcclidir}/osaf-transport
 1433 
 1434 %files libs
 1435 %defattr(-,root,root)
 1436 %dir %{_pkglibdir}
 1437 %{_libdir}/libopensaf_core.so.*
 1438 %{_pkglibdir}/libosaf_common.so.*
 1439 
 1440 %files tools
 1441 %defattr(-,root,root)
 1442 %{_bindir}/amf-adm
 1443 %{_bindir}/amf-find
 1444 %{_bindir}/amf-state
 1445 %{_bindir}/immadm
 1446 %{_bindir}/immcfg
 1447 %{_bindir}/immdump
 1448 %{_bindir}/immfind
 1449 %{_bindir}/immlist
 1450 %{_bindir}/ntfsend
 1451 %{_bindir}/ntfsubscribe
 1452 %{_bindir}/ntfread
 1453 %{_bindir}/saflogger
 1454 %{_bindir}/clm-adm
 1455 %{_bindir}/clm-find
 1456 %{_bindir}/clm-state
 1457 %{_bindir}/clmprint
 1458 %{_bindir}/osaflog
 1459 %if %is_ais_smf
 1460 %{_bindir}/smf-adm
 1461 %{_bindir}/smf-find
 1462 %{_bindir}/smf-state
 1463 %endif
 1464 
 1465 
 1466 %files devel
 1467 %defattr(-,root,root)
 1468 %if %is_java
 1469 %dir %{_javadocdir}/%{name}
 1470 %{_javadocdir}/%{name}/*
 1471 %{_libdir}/libjava_ais_api_native.so
 1472 %endif
 1473 %if %is_ais_plm
 1474 %{_libdir}/libplmc_utils.so
 1475 %endif
 1476 %{_libdir}/pkgconfig/*.pc
 1477 %{_libdir}/libSa*.so
 1478 %{_includedir}/saAis.h
 1479 %{_includedir}/saAis_B_5_14.h
 1480 %{_includedir}/saAmf.h
 1481 %{_includedir}/saAmf_B_04_02.h
 1482 %dir %{_includedir}/%{name}
 1483 %{_includedir}/saCkpt.h
 1484 %{_includedir}/saCkpt_B_02_03.h
 1485 %{_includedir}/%{name}/cpsv_papi.h
 1486 %{_includedir}/saClm.h
 1487 %{_includedir}/saEvt.h
 1488 %{_includedir}/saLck.h
 1489 %{_includedir}/saLog.h
 1490 %{_includedir}/saMsg.h
 1491 %{_includedir}/saNtf.h
 1492 %{_includedir}/saSmf.h
 1493 %{_includedir}/saPlm.h
 1494 %{_includedir}/saImm.h
 1495 %{_includedir}/saImmOi.h
 1496 %{_includedir}/saImmOm.h
 1497 %{_includedir}/saImmOi_A_2_11.h
 1498 %{_includedir}/saImmOm_A_2_11.h
 1499 %{_includedir}/saImmOm_A_2_12.h
 1500 %{_includedir}/saImmOm_A_2_13.h
 1501 %{_includedir}/saImmOm_A_2_14.h
 1502 %{_includedir}/saImmOi_A_2_15.h
 1503 %{_includedir}/saImmOm_A_2_15.h
 1504 %{_includedir}/saImmOm_A_2_16.h
 1505 %{_includedir}/saImmOm_A_2_17.h
 1506 
 1507 #TODO: Is it going out of the main opensaf repo?
 1508 %files samples
 1509 %defattr(-,root,root)
 1510 %doc 00-README.samples
 1511 %dir %{_pkgdatadir}/samples
 1512 %dir %{_pkgdatadir}
 1513 %{_pkgdatadir}/samples/*
 1514 
 1515 
 1516 #TODO: Is it going out of the main opensaf repo?
 1517 %if %is_tests
 1518 %files tests
 1519 %defattr(-,root,root)
 1520 %{_bindir}/immomtest
 1521 %{_bindir}/immoitest
 1522 %{_bindir}/immapplier
 1523 %{_bindir}/immpopulate
 1524 %{_bindir}/lcktest
 1525 %{_bindir}/logtest
 1526 %{_bindir}/saflogtest
 1527 %{_bindir}/logtestfr
 1528 %{_bindir}/basetest
 1529 %{_bindir}/msgtest
 1530 %{_bindir}/ntftest
 1531 %{_bindir}/ntf_search_criteria_test.sh
 1532 %{_bindir}/clmtest
 1533 %{_bindir}/mdstest
 1534 %{_bindir}/amftest
 1535 %{_bindir}/evttest
 1536 %if %is_ais_smf
 1537 #Demo and test of IMM CCB handling
 1538 %{_bindir}/ccbdemo_create
 1539 %{_bindir}/ccbdemo_delete
 1540 %{_bindir}/ccbdemo_modify
 1541 %{_bindir}/test_ccbhdl
 1542 %endif
 1543 %if %is_ais_ckpt
 1544 %{_bindir}/ckpttest
 1545 %endif
 1546 %if %is_ais_plm
 1547 %{_bindir}/plmtest
 1548 %{_pkglibdir}/libplmtest.so.*
 1549 %endif
 1550 %endif
 1551 
 1552 
 1553 %if %is_python
 1554 %files python
 1555 %defattr(-,root,root)
 1556 %{python_sitelib}/pyosaf/*.py
 1557 %{python_sitelib}/pyosaf/*.pyc
 1558 %{python_sitelib}/pyosaf/*.pyo
 1559 %{python_sitelib}/pyosaf/utils/*.py
 1560 %{python_sitelib}/pyosaf/utils/*.pyc
 1561 %{python_sitelib}/pyosaf/utils/*.pyo
 1562 %{python_sitelib}/pyosaf/utils/immom/*.py
 1563 %{python_sitelib}/pyosaf/utils/immom/*.pyc
 1564 %{python_sitelib}/pyosaf/utils/immom/*.pyo
 1565 %{python_sitelib}/pyosaf/utils/clm/*.py
 1566 %{python_sitelib}/pyosaf/utils/clm/*.pyc
 1567 %{python_sitelib}/pyosaf/utils/clm/*.pyo
 1568 %{python_sitelib}/pyosaf/utils/log/*.py
 1569 %{python_sitelib}/pyosaf/utils/log/*.pyc
 1570 %{python_sitelib}/pyosaf/utils/log/*.pyo
 1571 %{python_sitelib}/pyosaf/utils/ntf/*.py
 1572 %{python_sitelib}/pyosaf/utils/ntf/*.pyc
 1573 %{python_sitelib}/pyosaf/utils/ntf/*.pyo
 1574 %{python_sitelib}/pyosaf/utils/immoi/*.py
 1575 %{python_sitelib}/pyosaf/utils/immoi/*.pyc
 1576 %{python_sitelib}/pyosaf/utils/immoi/*.pyo
 1577 %endif
 1578 
 1579 
 1580 %if %is_java
 1581 %files java
 1582 %defattr(-,root,root)
 1583 %{_libdir}/libjava_ais_api_native.so.*
 1584 %{_javadir}/opensaf_ais_api.jar
 1585 %if %is_am4j
 1586 %{_javadir}/amf_agent.jar
 1587 %endif
 1588 %endif