a0a3693bc4
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>
72 lines
1.4 KiB
RPMSpec
72 lines
1.4 KiB
RPMSpec
%define platform_release 1
|
|
%define feed_dir /www/pages/feed/rel-%{platform_release}
|
|
|
|
Summary: Platform Kickstarts
|
|
Name: platform-kickstarts
|
|
Version: 1.0
|
|
Release: 0
|
|
License: Apache-2.0
|
|
Group: Development/Tools/Other
|
|
URL: https://opendev.org/starlingx/metal
|
|
Source0: bsp-files-%{version}.tar.gz
|
|
Source1: LICENSE
|
|
|
|
BuildRequires: perl
|
|
BuildRequires: perl(Getopt::Long)
|
|
BuildRequires: perl(POSIX)
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Platform kickstart files
|
|
|
|
%prep
|
|
%autosetup -n bsp-files-%{version}
|
|
|
|
%build
|
|
./centos-ks-gen.pl --release %{platform_release}
|
|
cp %{SOURCE1} .
|
|
|
|
%install
|
|
install -d -m 0755 %{buildroot}%{feed_dir}
|
|
install -m 0444 generated/* %{buildroot}%{feed_dir}
|
|
|
|
install -d -m 0755 %{buildroot}/pxeboot
|
|
install -D -m 0444 pxeboot/* %{buildroot}/pxeboot
|
|
|
|
install -d -m 0755 %{buildroot}/extra_cfgs
|
|
install -D -m 0444 extra_cfgs/* %{buildroot}/extra_cfgs
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%{feed_dir}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
/www
|
|
/www/pages
|
|
/www/pages/feed
|
|
|
|
%package pxeboot
|
|
Summary: Kickstarts Pxeboot Server
|
|
|
|
%description pxeboot
|
|
Kickstarts for Pxeboot server
|
|
|
|
%files pxeboot
|
|
%defattr(-,root,root,-)
|
|
/pxeboot/
|
|
|
|
%package extracfgs
|
|
Summary: Extra Lab-usage Kickstarts
|
|
|
|
%description extracfgs
|
|
Extra lab-usage kickstarts configuration
|
|
|
|
%files extracfgs
|
|
%defattr(-,root,root,-)
|
|
/extra_cfgs/
|
|
|
|
%changelog
|