config-files/systemd-config/centos/systemd-config.spec
Li Zhou efb718e031 systemd: Upgrade to version 219-78.el7_9.3
Change the BuildRequires to refer to the new systemd version.

Depends-On: https://review.opendev.org/c/starlingx/tools/+/786601
Closes-Bug: #1924691
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Change-Id: I76169b7fd85069e26cfb37de8889cea006c57238
2021-04-18 23:31:51 -04:00

60 lines
1.6 KiB
RPMSpec

#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2019 Intel Corporation
#
Summary: StarlingX systemd Configuration File
Name: systemd-config
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: config-files
Packager: StarlingX
URL: unknown
Source: %name-%version.tar.gz
BuildArch: noarch
BuildRequires: systemd = 219-78.el7_9.3
Requires: systemd
%define debug_package %{nil}
%define local_udev_rules_d %{_sysconfdir}/udev/rules.d
%define local_tmpfiles_d %{_sysconfdir}/tmpfiles.d
%define local_systemd_system %{_sysconfdir}/systemd/system
%description
StarlingX systemd configuration file
%prep
%setup
%build
%install
install -d %{buildroot}%{_datadir}/starlingx
install -d %{buildroot}%{local_udev_rules_d}
install -d %{buildroot}%{local_tmpfiles_d}
install -d %{buildroot}%{local_systemd_system}
install -m644 60-persistent-storage.rules %{buildroot}%{local_udev_rules_d}/60-persistent-storage.rules
install -m644 journald.conf %{buildroot}%{_datadir}/starlingx/journald.conf
install -m644 systemd.conf.tmpfiles.d %{buildroot}%{local_tmpfiles_d}/systemd.conf
install -m644 tmp.conf.tmpfiles.d %{buildroot}%{local_tmpfiles_d}/tmp.conf
install -m644 tmp.mount %{buildroot}%{local_systemd_system}/tmp.mount
%post
if [ $1 -eq 1 ] ; then
cp -f %{_datadir}/starlingx/journald.conf %{_sysconfdir}/systemd
chmod 644 %{_sysconfdir}/systemd/journald.conf
fi
%files
%defattr(-,root,root)
%license LICENSE
%{local_udev_rules_d}/60-persistent-storage.rules
%{_datadir}/starlingx/journald.conf
%{local_tmpfiles_d}/systemd.conf
%{local_tmpfiles_d}/tmp.conf
%{local_systemd_system}/tmp.mount