From 4fdcbe3ce71931c5e8e0da198df1156c4a421297 Mon Sep 17 00:00:00 2001 From: Min Kang Date: Fri, 11 Dec 2015 09:39:51 +0900 Subject: [PATCH] spec: change default.target file change default.target file to graphical.target symbolic link execpt for ivi Change-Id: Icba283120b59ffae3804ecbf6417dc34792421a3 Signed-off-by: Min Kang --- packaging/default.target | 14 -------------- packaging/systemd.spec | 11 ++++------- 2 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 packaging/default.target diff --git a/packaging/default.target b/packaging/default.target deleted file mode 100644 index 0eb0a96..0000000 --- a/packaging/default.target +++ /dev/null @@ -1,14 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -[Unit] -Description=Default target -Documentation=man:systemd.special(7) -Requires=graphical.target -After=multi-user.target -Conflicts=rescue.target -AllowIsolate=yes diff --git a/packaging/systemd.spec b/packaging/systemd.spec index 8cadcf9..ef2b410 100644 --- a/packaging/systemd.spec +++ b/packaging/systemd.spec @@ -20,8 +20,7 @@ Group: Base/Startup Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz Source1: pamconsole-tmp.conf Source2: %{name}-rpmlintrc -Source3: default.target -Source4: default.target.ivi +Source3: default.target.ivi Source1001: systemd.manifest BuildRequires: gperf BuildRequires: hwdata @@ -227,12 +226,10 @@ install -Dm644 tmpfiles.d/legacy.conf %{buildroot}%{_prefix}/lib/tmpfiles.d/lega install -m644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/ -rm -f %{buildroot}/%{_prefix}/lib/systemd/system/default.target install -m 755 -d %{buildroot}/%{_prefix}/lib/systemd/system -%if "%{profile}" != "ivi" -install -m 644 %{SOURCE3} %{buildroot}/%{_prefix}/lib/systemd/system/ -%else -install -m 644 %{SOURCE4} %{buildroot}/%{_prefix}/lib/systemd/system/default.target +%if "%{profile}" == "ivi" +rm -f %{buildroot}/%{_prefix}/lib/systemd/system/default.target +install -m 644 %{SOURCE3} %{buildroot}/%{_prefix}/lib/systemd/system/default.target %endif rm -rf %{buildroot}/%{_docdir}/%{name} -- 2.7.4