fault/fm-doc/opensuse/fm-doc.spec
Erich Cordoba 6da9811491 Set version to 1.0.0 in opensuse specfiles
All opensuse version are being standardize with the same format,
this requires that all components will change from 1.0 to 1.0.0.

Story: 2006508
Task: 36811

Change-Id: I301759895e4ed816633daa6595d5f60f2f1d59c7
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-09-25 15:35:15 -05:00

49 lines
1.4 KiB
RPMSpec

%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
URL: https://opendev.org/starlingx/fault
Source0: %{name}-%{version}.tar.gz
BuildRequires: fm-api-doc
BuildRequires: fm-common-doc
BuildRequires: python-yaml
BuildArch: noarch
%description
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.
%prep
%autosetup -n %{name}-%{version}/fm_doc
%build
%install
CGCS_DOC_DEPLOY=%{buildroot}/%{cgcs_doc_deploy_dir}
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 parseEventYaml.py $CGCS_DOC_DEPLOY
install -m 755 check_missing_alarms.py $CGCS_DOC_DEPLOY
pushd $CGCS_DOC_DEPLOY
cp %{cgcs_doc_deploy_dir}/constants.py %{cgcs_doc_deploy_dir}/fmAlarm.h .
./checkEventYaml
rm constants.py* fmAlarm.h*
popd
%files
%defattr(-,root,root,-)
%license LICENSE
%{cgcs_doc_deploy_dir}/*
%dir %{_sysconfdir}/fm
%config %{_sysconfdir}/fm/events.yaml
%changelog