d235681165
Some of the fault components rely on having all the dependencies installed in the StarlingX ISO so having missing dependencies listed in the spec files is not an issue. However, when we take those compo- nents and run them in a non StarlingX installation these problems started to arise. This patch is the result of the analysis of all imports and a manual execution of the fault components in opensuse. This is a summary of the findings: - fm-api: This component imports `fm_core` which is provided by `fm-common` but not listed in the dependencies. Same case for `six` module. - fm-mgr: `fmManager` links to `libfmcommon` but is not listed in the requirements. Also, it expects to find the `/etc/fm/events.yaml` file which is provided by `fm-doc`. - fm-rest-api: A set of imports that are missing. This component also depends on other StarlingX compoments. - python-fmclient: Missing python imports. Story: 2006684 Task: 36971 Change-Id: I6719ab8a8d9a35d105be1c6f7dac57b855da543e Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
67 lines
1.5 KiB
RPMSpec
67 lines
1.5 KiB
RPMSpec
%define local_dir %{_prefix}/local
|
|
%define local_bindir %{local_dir}/bin
|
|
Name: fm-mgr
|
|
Version: 1.0.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: StarlingX Platform Fault Manager Package
|
|
License: Apache-2.0
|
|
Group: Development/Tools/Other
|
|
URL: https://opendev.org/starlingx/fault
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: fm-common-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: systemd-devel
|
|
Requires: fm-common
|
|
Requires: fm-doc
|
|
Requires: logrotate
|
|
%if 0%{?suse_version}
|
|
BuildRequires: gcc-c++
|
|
%endif
|
|
|
|
%description
|
|
StarlingX platform Fault Manager that serves the client
|
|
application fault management requests and raise/clear/update
|
|
alarms in the active alarm database.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}/sources
|
|
|
|
%build
|
|
VER=%{version}
|
|
MAJOR=`echo $VER | awk -F . '{print $1}'`
|
|
MINOR=`echo $VER | awk -F . '{print $2}'`
|
|
make MAJOR=$MAJOR MINOR=$MINOR %{?_smp_mflags}
|
|
|
|
%install
|
|
VER=%{version}
|
|
MAJOR=`echo $VER | awk -F . '{print $1}'`
|
|
MINOR=`echo $VER | awk -F . '{print $2}'`
|
|
make DESTDIR=%{buildroot} \
|
|
BINDIR=%{local_bindir} \
|
|
SYSCONFDIR=%{_sysconfdir} \
|
|
UNITDIR=%{_unitdir} \
|
|
MAJOR=$MAJOR MINOR=$MINOR \
|
|
install
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%{local_bindir}/fmManager
|
|
%_sysconfdir/init.d/fminit
|
|
%{_unitdir}/fminit.service
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fm.logrotate
|
|
|
|
%pre
|
|
%service_add_pre fminit.service fminit.target
|
|
|
|
%post
|
|
%service_add_post fminit.service fminit.target
|
|
|
|
%preun
|
|
%service_del_preun fminit.service fminit.target
|
|
|
|
%postun
|
|
%service_del_postun fminit.service fminit.target
|
|
|
|
%changelog
|