From: Min Kang Date: Fri, 11 Dec 2015 00:39:51 +0000 (+0900) Subject: spec: change default.target file X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9a5f31ff55a4d00a2b20c6e92187fab337ac7cd;p=platform%2Fupstream%2Fsystemd.git 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 --- 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 995c217..6342e14 100644 --- a/packaging/systemd.spec +++ b/packaging/systemd.spec @@ -15,8 +15,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 @@ -221,12 +220,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}