spec: fix indent in systemd.spec 88/230888/5
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 16 Apr 2020 00:04:39 +0000 (09:04 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 20 Apr 2020 03:25:57 +0000 (03:25 +0000)
Change-Id: I7b48f4cd8e66e3c52a23305d48466c75e5443845
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
packaging/systemd.spec

index 4eef346..6b4ceb5 100644 (file)
 # The 'meson' macro is defined in rpm macros, but it uses features from rpm 4.15 ({shrink, set_build_flags)
 # Below is a version suitable for our purposes
 %define meson \
-  CFLAGS="${CFLAGS:-%optflags}" \
-  export CFLAGS \
-  %{__meson} \\\
-        --buildtype=plain \\\
-        --prefix=%{_prefix} \\\
-        --libdir=%{_libdir} \\\
-        --libexecdir=%{_libexecdir} \\\
-        --bindir=%{_bindir} \\\
-        --sbindir=%{_sbindir} \\\
-        --includedir=%{_includedir} \\\
-        --datadir=%{_datadir} \\\
-        --mandir=%{_mandir} \\\
-        --infodir=%{_infodir} \\\
-        --localedir=%{_datadir}/locale \\\
-        --sysconfdir=%{_sysconfdir} \\\
-        --localstatedir=%{_localstatedir} \\\
-        --sharedstatedir=%{_sharedstatedir} \\\
-        --wrap-mode=%{__meson_wrap_mode} \\\
+       CFLAGS="${CFLAGS:-%optflags}" \
+       export CFLAGS \
+       %{__meson} \\\
+               --buildtype=plain \\\
+               --prefix=%{_prefix} \\\
+               --libdir=%{_libdir} \\\
+               --libexecdir=%{_libexecdir} \\\
+               --bindir=%{_bindir} \\\
+               --sbindir=%{_sbindir} \\\
+               --includedir=%{_includedir} \\\
+               --datadir=%{_datadir} \\\
+               --mandir=%{_mandir} \\\
+               --infodir=%{_infodir} \\\
+               --localedir=%{_datadir}/locale \\\
+               --sysconfdir=%{_sysconfdir} \\\
+               --localstatedir=%{_localstatedir} \\\
+               --sharedstatedir=%{_sharedstatedir} \\\
+               --wrap-mode=%{__meson_wrap_mode} \\\
                %{_vpath_builddir}
+
 # Ninja macros below are defined for ninja in e.g. fedora distro, but
 # so far they are not provided by Tizen's ninja package.
 %define __ninja %{_bindir}/ninja
 %define __ninja_common_opts -v %{?_smp_flags}
-%define ninja_build \
-               %{__ninja} %{__ninja_common_opts}
-%define ninja_install \
-               DESTDIR=%{buildroot} %{__ninja} install %{__ninja_common_opts}
+%define ninja_build %{__ninja} %{__ninja_common_opts}
+%define ninja_install DESTDIR=%{buildroot} %{__ninja} install %{__ninja_common_opts}
 
 Name:           systemd
 Version:        244
@@ -192,35 +191,35 @@ cp %{SOURCE8} .
 %if ! %{WITH_RFKILL}
        -Drfkill=false \
 %endif
-        -Dhwdb=false \
-        -Dsysusers=false \
-        -Dfirstboot=false \
-        -Dpolkit=false \
-        -Dtimesyncd=false \
-        -Dresolve=false \
-        -Dnetworkd=false \
+       -Dhwdb=false \
+       -Dsysusers=false \
+       -Dfirstboot=false \
+       -Dpolkit=false \
+       -Dtimesyncd=false \
+       -Dresolve=false \
+       -Dnetworkd=false \
 %if ! %{?WITH_MACHINED}
-        -Dmachined=false \
+       -Dmachined=false \
 %endif
 %if ! %{?WITH_HOSTNAMED}
-        -Dhostnamed=false \
+       -Dhostnamed=false \
 %endif
-        -Dimportd=false \
-               -Denvironment-d=false \
-               -Dnss-systemd=false \
-        -Dgcrypt=false \
+       -Dimportd=false \
+       -Denvironment-d=false \
+       -Dnss-systemd=false \
+       -Dgcrypt=false \
 %if ! %{?WITH_DOC}
-        -Dman=false \
-%endif
-        -Dportabled=false \
-               -Dpstore=false \
-        -Drpmmacrosdir=%{_sysconfdir}/rpm/ \
-        -Dsysvinit-path="" \
-        -Dsysvrcnd-path="" \
-        -Dsmack-run-label=System::Privileged \
-               -Dinstall-tests=true \
-               -Ddefault-hierarchy=legacy \
-               -Db_pie=true
+       -Dman=false \
+%endif
+       -Dportabled=false \
+       -Dpstore=false \
+       -Drpmmacrosdir=%{_sysconfdir}/rpm/ \
+       -Dsysvinit-path="" \
+       -Dsysvrcnd-path="" \
+       -Dsmack-run-label=System::Privileged \
+       -Dinstall-tests=true \
+       -Ddefault-hierarchy=legacy \
+       -Db_pie=true
 %meson_build
 
 # compile test-runner for 'dbus-integration-test' framework
@@ -420,19 +419,19 @@ chsmack %{_prefix}/lib/systemd/* -a "System::Tools"
 
 %postun
 if [ $1 -ge 1 ] ; then
-        /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || :
-        /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
+       /usr/bin/systemctl daemon-reload > /dev/null 2>&1 || :
+       /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
 fi
 
 %preun
 if [ $1 -eq 0 ] ; then
-        /usr/bin/systemctl disable \
-                getty@.service \
-                remote-fs.target \
-                systemd-readahead-replay.service \
-                systemd-readahead-collect.service >/dev/null 2>&1 || :
+       /usr/bin/systemctl disable \
+               getty@.service \
+               remote-fs.target \
+               systemd-readahead-replay.service \
+               systemd-readahead-collect.service >/dev/null 2>&1 || :
 
-        update-alternatives --remove systemd-shutdown %{_prefix}/lib/systemd/systemd-shutdown-original
+       update-alternatives --remove systemd-shutdown %{_prefix}/lib/systemd/systemd-shutdown-original
 fi
 
 %posttrans
@@ -442,7 +441,7 @@ fi
 # to following guideliness for explanation:
 #   https://fedoraproject.org/wiki/Packaging:Scriptlets#Ordering
 if [ $1 -eq 0 ]; then
-    update-alternatives --install %{_prefix}/lib/systemd/systemd-shutdown systemd-shutdown %{_prefix}/lib/systemd/systemd-shutdown-original 100 || :
+       update-alternatives --install %{_prefix}/lib/systemd/systemd-shutdown systemd-shutdown %{_prefix}/lib/systemd/systemd-shutdown-original 100 || :
 fi
 
 %post -n libsystemd -p /sbin/ldconfig