StarlingX Fault Management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

%define cgcs_doc_deploy_dir /opt/deploy/cgcs_doc
Name: fm-doc
Version: 1.0.0
Release: stx
Summary: StarlingX Platform Fault Management Documentation Package
License: Apache-2.0
Group: Development/Tools/Other
Source0: %{name}-%{version}.tar.gz
BuildRequires: fm-api-doc
BuildRequires: fm-common-doc
BuildRequires: python-yaml
BuildArch: noarch
A yaml file description of the StarlingX Alarms and Customer Logs generated by
the StarlingX Cloud System. Also included and used at build time is a simple syntax
checker to ensure no duplicate IDs are used, and generally the correct
field values are documented.
%autosetup -n %{name}-%{version}/fm_doc
install -d $CGCS_DOC_DEPLOY
install -D -d %{buildroot}/%{_sysconfdir}/fm/
install -m 644 events.yaml %{buildroot}/%{_sysconfdir}/fm/
install -m 644 events.yaml $CGCS_DOC_DEPLOY
install -m 755 checkEventYaml $CGCS_DOC_DEPLOY
install -m 644 $CGCS_DOC_DEPLOY
install -m 755 $CGCS_DOC_DEPLOY
cp %{cgcs_doc_deploy_dir}/ %{cgcs_doc_deploy_dir}/fmAlarm.h .
rm* fmAlarm.h*
%license LICENSE
%dir %{_sysconfdir}/fm
%config %{_sysconfdir}/fm/events.yaml