# 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
%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
%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
# 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