clean spec file for yocto compliance 03/31803/1
authorRonan Le Martret <ronan@fridu.net>
Wed, 10 Dec 2014 11:13:53 +0000 (12:13 +0100)
committerRonan Le Martret <ronan@fridu.net>
Wed, 10 Dec 2014 11:13:53 +0000 (12:13 +0100)
 - remove full path for tool file
 - /etc/xdg/weston is only packaging into ivi package profile.

Change-Id: I236497ab7b0faf810e3997965aa2743833bae9db
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/tlm.spec

index 2c7beb9ced5231d8582a77d5ad5a6c60e8ceadae..879367b4e1f7d4a5cd976fbde170e90194cad165 100644 (file)
 %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
@@ -123,7 +125,7 @@ cp %{SOURCE1001} .
 %reconfigure --enable-gum \
              %{?extra_config_options1:%extra_config_options1} \
              %{?extra_config_options2:%extra_config_options2}
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
 
 
 %install
@@ -137,8 +139,8 @@ install -m 644 data/tlm-login %{buildroot}%{_sysconfdir}/pam.d/
 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/
@@ -160,13 +162,13 @@ install -m 755 data/tizen-common/etc/session.d/* %{buildroot}%{_sysconfdir}/sess
 %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
@@ -180,13 +182,13 @@ fi
 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
@@ -199,13 +201,13 @@ fi
 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
@@ -218,13 +220,13 @@ fi
 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