spec: change default.target file
authorMin Kang <min1023.kang@samsung.com>
Fri, 11 Dec 2015 00:39:51 +0000 (09:39 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 26 Jan 2024 16:49:48 +0000 (17:49 +0100)
change default.target file to graphical.target symbolic link
execpt for ivi

Change-Id: Icba283120b59ffae3804ecbf6417dc34792421a3
Signed-off-by: Min Kang <min1023.kang@samsung.com>
packaging/default.target [deleted file]
packaging/systemd.spec

diff --git a/packaging/default.target b/packaging/default.target
deleted file mode 100644 (file)
index 0eb0a96..0000000
+++ /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
index 995c217..6342e14 100644 (file)
@@ -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}