a30e09bb87
Add helper function for platform cpu number calculation Change-Id: I6f656594e80fb067794cc14ba8f01db84585d198 Partial-Bug: 1834796 Signed-off-by: Bin Yang <bin.yang@intel.com>
59 lines
1.3 KiB
RPMSpec
59 lines
1.3 KiB
RPMSpec
Summary: Initial worker node resource reservation and misc. utilities
|
|
Name: worker-utils
|
|
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
|
|
Source1: LICENSE
|
|
|
|
BuildRequires: systemd-devel
|
|
Requires: systemd
|
|
Requires: python
|
|
Requires: /bin/systemctl
|
|
Requires: perl
|
|
|
|
%description
|
|
Initial worker node resource reservation and misc. utilities
|
|
|
|
%define local_bindir /usr/bin/
|
|
%define local_etc_initd /etc/init.d/
|
|
%define local_etc_platform /etc/platform/
|
|
%define local_etc_goenabledd /etc/goenabled.d/
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
make install BINDIR=%{buildroot}%{local_bindir} \
|
|
INITDDIR=%{buildroot}%{local_etc_initd} \
|
|
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
|
|
PLATFORMCONFDIR=%{buildroot}%{local_etc_platform} \
|
|
SYSTEMDDIR=%{buildroot}%{_unitdir}
|
|
|
|
%post
|
|
/bin/systemctl enable affine-platform.sh.service >/dev/null 2>&1
|
|
/bin/systemctl enable affine-tasks.service >/dev/null 2>&1
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{local_bindir}/*
|
|
%{local_etc_initd}/*
|
|
%{local_etc_goenabledd}/*
|
|
%config(noreplace) %{local_etc_platform}/worker_reserved.conf
|
|
|
|
%{_unitdir}/affine-platform.sh.service
|
|
%{_unitdir}/affine-tasks.service
|