spec: remove unnecessary code about systemctl 24/160324/1 accepted/tizen/unified/20171115.174115 submit/tizen/20171115.102506
authorSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 10:21:13 +0000 (19:21 +0900)
committerSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 10:21:13 +0000 (19:21 +0900)
Change-Id: I1890e58f71babdfc3384a5e7c065f9a37f870015
Signed-off-by: Segwon <segwon.han@samsung.com>
packaging/peripheral-bus.spec

index f773838..0582b69 100644 (file)
@@ -51,25 +51,6 @@ install -m 0644 %SOURCE4 %{buildroot}%{_udevrulesdir}
 mkdir -p %{buildroot}/etc/peripheral-bus
 cp %{_builddir}/%{name}-%{version}/data/*.ini %{buildroot}/etc/%{name}
 
-%post
-systemctl daemon-reload
-if [ $1 == 1 ]; then
-       # install
-       systemctl start %{name}.service
-elif [ $1 == 2 ]; then
-       # upgrade
-       systemctl restart %{name}.service
-fi
-
-%preun
-if [ $1 == 0 ]; then
-       # uninstall
-       systemctl stop %{name}.service
-fi
-
-%postun
-systemctl daemon-reload
-
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root,-)