
StarlingX Open Build Service [0] builds MTCE packages using base artifacts: - Spec file - Changelog [0] https://build.opensuse.org/project/show/Cloud:StarlingX:2.0 Story: 2006508 Task: 36556 Task: 36557 Task: 36558 Task: 36559 Task: 36560 Task: 36561 Change-Id: I9bf59ab4b890ebe33a9304d3f886951c860412a6 Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com>
59 lines
1.3 KiB
RPMSpec
59 lines
1.3 KiB
RPMSpec
Summary: Controller Node Maintenance Package
|
|
Name: mtce-control
|
|
Version: 1.0
|
|
Release: 1
|
|
License: Apache-2.0
|
|
Group: Development/Tools/Other
|
|
URL: https://opendev.org/starlingx/metal
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: systemd
|
|
BuildRequires: systemd-devel
|
|
BuildRequires: systemd-sysvinit
|
|
Requires: bash
|
|
Requires: systemd
|
|
Requires: lighttpd
|
|
Requires: qemu-kvm
|
|
|
|
%description
|
|
Maintenance support files for controller-only node type
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
|
|
%install
|
|
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
|
|
|
|
%pre
|
|
%service_add_pre hbsAgent.service hbsAgent.target
|
|
|
|
%post
|
|
%service_add_post hbsAgent.service hbsAgent.target
|
|
if [ $1 -eq 1 ] ; then
|
|
/bin/systemctl enable lighttpd.service
|
|
/bin/systemctl enable qemu_clean.service
|
|
/bin/systemctl enable hbsAgent.service
|
|
fi
|
|
exit 0
|
|
|
|
%preun
|
|
%service_del_preun hbsAgent.service hbsAgent.target
|
|
|
|
%postun
|
|
%service_del_postun hbsAgent.service hbsAgent.target
|
|
|
|
%files
|
|
%dir %{_sysconfdir}/pmon.d
|
|
%dir %{_datadir}/licenses/mtce-control-1.0
|
|
%defattr(-,root,root,-)
|
|
%{_sysconfdir}/init.d/goenabledControl
|
|
%license %{_datarootdir}/licenses/mtce-control-1.0/LICENSE
|
|
%config %{_sysconfdir}/pmon.d/hbsAgent.conf
|
|
%{_sysconfdir}/init.d/hbsAgent
|
|
%{_unitdir}/hbsAgent.service
|
|
|
|
%changelog
|