%endif
-Name: tlm
+Name: tlm
Summary: Login manager for Tizen
Version: 1.0.1
Release: 0
-Group: System/Service
+Group: System/Service
License: LGPL-2.1+
-Source: %{name}-%{version}.tar.gz
-URL: https://github.com/01org/tlm
+URL: https://github.com/01org/tlm
+Source: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
-Requires(post): /sbin/ldconfig, systemd
-Requires(postun): /sbin/ldconfig, systemd
+Requires(post): /sbin/ldconfig
+Requires(post): systemd
+Requires(postun): /sbin/ldconfig
+Requires(postun): systemd
Requires: gumd
Requires: libsystemd
BuildRequires: pkgconfig(glib-2.0) >= 2.30
%reconfigure --enable-gum \
%{?extra_config_options1:%extra_config_options1} \
%{?extra_config_options2:%extra_config_options2}
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
%install
install -m 644 data/tlm-default-login %{buildroot}%{_sysconfdir}/pam.d/
install -m 644 data/tlm-system-login %{buildroot}%{_sysconfdir}/pam.d/
install -m 755 -d %{buildroot}%{_sysconfdir}/session.d
-install -m 755 -d %{buildroot}%{_sysconfdir}/xdg/weston
%if "%{profile}" == "ivi"
+install -m 755 -d %{buildroot}%{_sysconfdir}/xdg/weston
install -m 644 data/tizen-ivi/etc/tlm*.conf %{buildroot}%{_sysconfdir}
install -m 755 data/tizen-ivi/etc/session.d/* %{buildroot}%{_sysconfdir}/session.d/
install -m 644 data/tizen-ivi/weston-*.ini %{buildroot}%{_sysconfdir}/xdg/weston/
%if "%{profile}" != "ivi"
%post config-common
-/usr/bin/systemctl enable tlm
-/usr/bin/systemctl daemon-reload
+systemctl enable tlm
+systemctl daemon-reload
%preun config-common
if [ $1 == 0 ]; then
- /usr/bin/systemctl disable tlm
- /usr/bin/systemctl daemon-reload
+ systemctl disable tlm
+ systemctl daemon-reload
fi
%postun config-common
if [ ! -e /etc/tlm.conf ] || [ -h /etc/tlm.conf ]; then
ln -s -f /etc/tlm-singleseat.conf /etc/tlm.conf
fi
-/usr/bin/systemctl enable tlm
-/usr/bin/systemctl daemon-reload
+systemctl enable tlm
+systemctl daemon-reload
%preun config-ivi-singleseat
if [ $1 == 0 ]; then
- /usr/bin/systemctl disable tlm
- /usr/bin/systemctl daemon-reload
+ systemctl disable tlm
+ systemctl daemon-reload
fi
%postun config-ivi-singleseat
if [ ! -e /etc/tlm.conf ] || [ -h /etc/tlm.conf ]; then
ln -s -f /etc/tlm-multiseat.conf /etc/tlm.conf
fi
-/usr/bin/systemctl enable tlm
-/usr/bin/systemctl daemon-reload
+systemctl enable tlm
+systemctl daemon-reload
%preun config-ivi-multiseat
if [ $1 == 0 ]; then
- /usr/bin/systemctl disable tlm
- /usr/bin/systemctl daemon-reload
+ systemctl disable tlm
+ systemctl daemon-reload
fi
%postun config-ivi-multiseat
if [ ! -e /etc/tlm.conf ] || [ -h /etc/tlm.conf ]; then
ln -s -f /etc/tlm-vtc1010.conf /etc/tlm.conf
fi
-/usr/bin/systemctl enable tlm
-/usr/bin/systemctl daemon-reload
+systemctl enable tlm
+systemctl daemon-reload
%preun config-ivi-vtc1010
if [ $1 == 0 ]; then
- /usr/bin/systemctl disable tlm
- /usr/bin/systemctl daemon-reload
+ systemctl disable tlm
+ systemctl daemon-reload
fi
%postun config-ivi-vtc1010