6cd8940170
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
51 lines
1.2 KiB
RPMSpec
51 lines
1.2 KiB
RPMSpec
%define local_dir /usr/local
|
|
%define local_bindir %{local_dir}/bin
|
|
|
|
Summary: CGTS Platform Fault Manager Package
|
|
Name: fm-mgr
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: fm-common-dev
|
|
BuildRequires: systemd-devel
|
|
BuildRequires: libuuid-devel
|
|
|
|
%description
|
|
CGTS platform Fault Manager that serves the client
|
|
application fault management requests and raise/clear/update
|
|
alarms in the active alarm database.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%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
|
|
rm -rf $RPM_BUILD_ROOT
|
|
VER=%{version}
|
|
MAJOR=`echo $VER | awk -F . '{print $1}'`
|
|
MINOR=`echo $VER | awk -F . '{print $2}'`
|
|
make DEST_DIR=$RPM_BUILD_ROOT BIN_DIR=%{local_bindir} LIB_DIR=%{_libdir} INC_DIR=%{_includedir} MAJOR=$MAJOR MINOR=$MINOR install_non_bb
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{local_bindir}/fmManager
|
|
%config(noreplace) %{_sysconfdir}/fm.conf
|
|
%_sysconfdir/init.d/fminit
|
|
%{_unitdir}/fminit.service
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fm.logrotate
|
|
|