![Erich Cordoba](/assets/img/avatar_default.png)
Story: 2005265 Task: 30090 Change-Id: I7cc22cf39d971fbf7fa149b89a892de27b8e6b64 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (C) 2019 Intel Corporation
|
|
#
|
|
Summary: centos-release-config
|
|
Name: centos-release-config
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: StarlingX
|
|
URL: unknown
|
|
BuildArch: noarch
|
|
Source: %name-%version.tar.gz
|
|
|
|
Requires: centos-release
|
|
Summary: package StarlingX configuration files of centos-release to system folder.
|
|
|
|
%description
|
|
package StarlingX configuration files of centos-release to system folder.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
# Overwrite default issue files with cgcs related files.
|
|
install -d %{buildroot}%{_datadir}/starlingx
|
|
install -m 0644 issue %{buildroot}%{_datadir}/starlingx/stx.issue
|
|
install -m 0644 issue.net %{buildroot}%{_datadir}/starlingx/stx.issue.net
|
|
sed -i -e "s/@PLATFORM_RELEASE@/%{platform_release}/g" \
|
|
%{buildroot}%{_datadir}/starlingx/stx.issue \
|
|
%{buildroot}%{_datadir}/starlingx/stx.issue.net
|
|
|
|
%post
|
|
if [ $1 -eq 1 ] ; then
|
|
# Initial installation
|
|
cp -f %{_datadir}/starlingx/stx.issue %{_sysconfdir}/issue
|
|
cp -f %{_datadir}/starlingx/stx.issue.net %{_sysconfdir}/issue.net
|
|
chmod 644 %{_sysconfdir}/issue
|
|
chmod 644 %{_sysconfdir}/issue.net
|
|
fi
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/starlingx/stx.issue
|
|
%{_datadir}/starlingx/stx.issue.net
|