3406431fc5
Use util-linux-config package to package config files for util-linux. Remove util-linux package folder and use RPM instead of SRPM for util-linux. Deployment test and ping test between VMs pass Config file check pass. Story: 2003768 Task: 27595 Depends-on: https://review.openstack.org/#/c/618943/ Change-Id: If90ed6df4a875a576c7ac709589ac221bb0fa2e3 Signed-off-by: zhipengl <zhipengs.liu@intel.com>
43 lines
961 B
RPMSpec
43 lines
961 B
RPMSpec
Summary: util-linux-config
|
|
Name: util-linux-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: util-linux
|
|
Summary: package StarlingX configuration files of util-linux to system folder.
|
|
|
|
%description
|
|
package StarlingX configuration files of util-linux to system folder.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__install} -d 644 %{buildroot}%{_datadir}/starlingx/
|
|
%{__install} -m 644 stx.su %{buildroot}%{_datadir}/starlingx/stx.su
|
|
%{__install} -m 644 stx.login %{buildroot}%{_datadir}/starlingx/stx.login
|
|
|
|
%post
|
|
%define _pamconfdir %{_sysconfdir}/pam.d
|
|
if [ $1 -eq 1 ] ; then
|
|
cp -f %{_datadir}/starlingx/stx.su %{_pamconfdir}/su
|
|
cp -f %{_datadir}/starlingx/stx.login %{_pamconfdir}/login
|
|
fi
|
|
|
|
%preun
|
|
|
|
%postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_datadir}/starlingx/stx.su
|
|
%{_datadir}/starlingx/stx.login
|