Remove unused flags in spec file 08/196608/1
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 3 Jan 2019 02:28:19 +0000 (11:28 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Thu, 3 Jan 2019 02:29:09 +0000 (11:29 +0900)
Change-Id: I6a64694e78845fbd77d73c44184929929b3e3779
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
packaging/smartcard-service.init [deleted file]
packaging/smartcard-service.spec

diff --git a/packaging/smartcard-service.init b/packaging/smartcard-service.init
deleted file mode 100755 (executable)
index 13264e1..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides:          smartcard-service
-# Required-Start:    $network $local_fs
-# Required-Stop:
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: <Enter a short description of the sortware>
-# Description:       <Enter a long description of the software>
-#                    <...>
-#                    <...>
-### END INIT INFO
-
-# Author: Wonkyu Kwon <wonkyu.kwon@samsung.com>
-
-# PATH should only include /usr/* if it runs after the mountnfs.sh script
-PATH=/usr/bin
-DESC=smartcard-daemon      # Introduce a short description here
-NAME=smartcard-daemon      # Introduce the short server's name here
-DAEMON=/usr/bin/smartcard-daemon # Introduce the server's location here
-DAEMON_ARGS=""             # Arguments to run the daemon with
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Exit if the package is not installed
-[ -x $DAEMON ] || exit 0
-
-$DAEMON $DAEMON_ARGS &
index 61fe46d..563a0e2 100755 (executable)
@@ -8,15 +8,12 @@
 ################################################################################
 Name:       smartcard-service
 Summary:    Smartcard Service FW
-Version:    0.1.56
+Version:    0.1.57
 Release:    0
 Group:      Network & Connectivity
 Requires:   %{name}-common = %{version}-%{release}
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
-%if 0%{!?use_autostart:1}
-Source1:    %{name}.init
-%endif
 BuildRequires: cmake
 BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(gio-unix-2.0)
@@ -33,7 +30,6 @@ BuildRequires: pkgconfig(capi-system-info)
 
 BuildRequires: python
 BuildRequires: python-xml
-BuildRequires: hash-signer
 
 Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -58,33 +54,20 @@ Smartcard Service FW.
 %endif
 %if 0%{?use_autostart:1}
        %{_datadir}/dbus-1/system-services/org.tizen.SmartcardService.service
-%else
-       %{_sysconfdir}/init.d/%{name}
 %endif
 %{bindir}/%{name}
-%{bindir}/author-signature.xml
-%{bindir}/signature1.xml
 /etc/dbus-1/system.d/org.tizen.SmartcardService.conf
 %if 0%{?gtests:1}
 %{_bindir}/gtest*
 %endif
 
 %post
-/usr/bin/signing-client/hash-signer-client.sh -a -d -p platform %{bindir}
-%if 0%{!?use_autostart:1}
-       ln -sf /etc/init.d/%{name} /etc/rc.d/rc3.d/S79%{name}
-       ln -sf /etc/init.d/%{name} /etc/rc.d/rc5.d/S79%{name}
-%endif
 ln -sf /usr/apps/%{name}/bin/smartcard-daemon /usr/bin/smartcard-daemon
 %if 0%{?test_client:1}
        ln -sf /usr/apps/%{name}/bin/smartcard-test-client /usr/bin/smartcard-test-client
 %endif
 
 %postun
-%if 0%{!?use_autostart:1}
-       rm -f /etc/rc.d/rc3.d/S79%{name}
-       rm -f /etc/rc.d/rc5.d/S79%{name}
-%endif
 rm -f /usr/bin/smartcard-daemon
 
 
@@ -160,20 +143,7 @@ cd obj-arm-limux-qnueabi
 %install
 cd obj-arm-limux-qnueabi
 %make_install
-%if 0%{!?use_autostart:1}
-       %__mkdir -p  %{buildroot}/etc/init.d/
-       %__mkdir -p  %{buildroot}/etc/rc.d/rc3.d/
-       %__mkdir -p  %{buildroot}/etc/rc.d/rc5.d/
-       %__cp -af %SOURCE1 %{buildroot}/etc/init.d/%{name}
-       chmod 755 %{buildroot}/etc/init.d/%{name}
-%endif
 
 mkdir -p %{buildroot}/etc/dbus-1/system.d/
 cp -af %{_builddir}/%{name}-%{version}/packaging/%{name} %{buildroot}%{bindir}
 cp -af %{_builddir}/%{name}-%{version}/packaging/org.tizen.SmartcardService.conf %{buildroot}/etc/dbus-1/system.d/
-
-%define tizen_sign 1
-%define tizen_sign_base %{bindir}
-%define tizen_sign_level platform
-%define tizen_author_sign 1
-%define tizen_dist_sign 1