Fix 64bit build errors 38/59538/1 accepted/tizen/mobile/20160217.011531 accepted/tizen/mobile/20160217.080043 accepted/tizen/tv/20160217.080101 accepted/tizen/wearable/20160217.080120 submit/tizen/20160216.235435 submit/tizen/20160217.021341 submit/tizen_common/20160218.142243
authorYu Jiung <jiung.yu@samsung.com>
Tue, 16 Feb 2016 10:04:05 +0000 (19:04 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Tue, 16 Feb 2016 10:04:05 +0000 (19:04 +0900)
Change-Id: Ia751c1ec13fb119616063e922c691c3d3147bc98

packaging/connman.spec

index 464a0c2..3fbe789 100755 (executable)
@@ -140,7 +140,6 @@ mkdir -p %{buildroot}%{_unitdir}
 %if "%{profile}" == "tv"
 cp src/connman_tv.service %{buildroot}%{_libdir}/systemd/system/connman.service
 %else
-cp src/connman.service %{buildroot}%{_libdir}/systemd/system/connman.service
 %if "%{?_lib}" == "lib64"
 cp src/connman.service %{buildroot}%{_unitdir}/connman.service
 %endif
@@ -169,7 +168,17 @@ mkdir -p %{buildroot}%{_datadir}/license
 cp COPYING %{buildroot}%{_datadir}/license/connman
 
 %if %{with connman_vpnd}
-#%install_service multi-user.target.wants connman-vpn.service
+#Systemd service file
+%if "%{?_lib}" == "lib64"
+cp vpn/connman-vpn.service %{buildroot}%{_unitdir}/connman-vpn.service
+%endif
+
+mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+ln -s ../connman-vpn.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/connman-vpn.service
+%if "%{?_lib}" == "lib64"
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
+ln -s ../connman-vpn.service %{buildroot}%{_unitdir}/multi-user.target.wants/connman-vpn.service
+%endif
 cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
 %endif
 
@@ -245,8 +254,12 @@ systemctl daemon-reload
 %files connman-vpnd
 %manifest %{name}.manifest
 %{_sbindir}/connman-vpnd
-%{_unitdir}/connman-vpn.service
-#%{_unitdir}/multi-user.target.wants/connman-vpn.service
+%attr(644,root,root) %{_libdir}/systemd/system/connman-vpn.service
+%attr(644,root,root) %{_libdir}/systemd/system/multi-user.target.wants/connman-vpn.service
+%if "%{?_lib}" == "lib64"
+%attr(644,root,root) %{_unitdir}/connman-vpn.service
+%attr(644,root,root) %{_unitdir}/multi-user.target.wants/connman-vpn.service
+%endif
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/scripts
 %dir %{_libdir}/%{name}/plugins-vpn