integ/config-files/util-linux-config/centos/util-linux-config.spec
Erich Cordoba 6bfca507bd Add notices to Intel authored files.
Story: 2005265
Task:  30090

Change-Id: I7cc22cf39d971fbf7fa149b89a892de27b8e6b64
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-03-20 10:31:10 -06:00

48 lines
1.0 KiB
RPMSpec

#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
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