openSUSE: Open Build Service Artifacts
Build Service Management using Open Build Service (OBS) with the following base artifacts: - Specfile - Changelog OBS is a generic system to build and distribute binary packages from sources [0], StarlingX OBS Project: - Cloud:starlingx:2.0 [1] [0] openbuildservice.org [1] https://build.opensuse.org/project/show/Cloud:StarlingX:2.0 Story: 2006508 Task: 36555 Change-Id: I2ce80b3bbf378d49bc33e9530aa9e50772a17d95 Signed-off-by: Hayde Martinez <hayde.martinez.landa@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
parent
ed1ba16650
commit
458f057637
4
utilities/worker-utils/opensuse/worker-utils.changes
Normal file
4
utilities/worker-utils/opensuse/worker-utils.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 11 10:27:25 UTC 2019 - Marcela Rosales <marcelarosalesj@gmail.com>
|
||||
|
||||
- Initial Commit
|
74
utilities/worker-utils/opensuse/worker-utils.spec
Normal file
74
utilities/worker-utils/opensuse/worker-utils.spec
Normal file
@ -0,0 +1,74 @@
|
||||
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: System/Base
|
||||
URL: https://opendev.org/starlingx/utilities
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: systemd
|
||||
BuildRequires: systemd-sysvinit
|
||||
BuildRequires: sysvinit-tools
|
||||
BuildRequires: insserv-compat
|
||||
BuildRequires: python
|
||||
Requires: systemd
|
||||
Requires: systemd-sysvinit
|
||||
Requires: sysvinit-tools
|
||||
Requires: insserv-compat
|
||||
Requires: python
|
||||
|
||||
%description
|
||||
Initial worker node resource reservation and miscellaneous utilities for StarlingX.
|
||||
|
||||
%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 -n %{name}-%{version}/%{name}
|
||||
|
||||
%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}
|
||||
|
||||
%pre
|
||||
%service_add_pre affine-platform.sh.service affine-tasks.service
|
||||
|
||||
%post
|
||||
%service_add_post affine-platform.sh.service affine-tasks.service
|
||||
systemctl enable affine-platform.sh.service #>/dev/null 2>&1
|
||||
systemctl enable affine-tasks.service #>/dev/null 2>&1
|
||||
|
||||
%preun
|
||||
%service_del_preun affine-platform.sh.service affine-tasks.service
|
||||
|
||||
%postun
|
||||
%service_del_postun affine-platform.sh.service affine-tasks.service
|
||||
%insserv_cleanup
|
||||
|
||||
%files
|
||||
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
%{local_bindir}/*
|
||||
%{local_etc_initd}/*
|
||||
%{local_etc_goenabledd}/*
|
||||
%dir %{_sysconfdir}/goenabled.d
|
||||
%dir %{_sysconfdir}/platform
|
||||
%config(noreplace) %{local_etc_platform}/worker_reserved.conf
|
||||
|
||||
%{_unitdir}/affine-platform.sh.service
|
||||
%{_unitdir}/affine-tasks.service
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user