From: Lukasz Kostyra Date: Thu, 14 Sep 2017 11:28:08 +0000 (+0200) Subject: Use tef-update.sh to update tef-libteec configuration X-Git-Tag: accepted/tizen/4.0/unified/20170919.172518^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcb3785e9338309a9d22457bb3b24ca84b9ae61a;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git Use tef-update.sh to update tef-libteec configuration Change-Id: I2e8428c673f2e856fca3f8e00f567ad3ef7398af --- diff --git a/packaging/tef-simulator.spec b/packaging/tef-simulator.spec index e5aac4f..12a6ab9 100644 --- a/packaging/tef-simulator.spec +++ b/packaging/tef-simulator.spec @@ -17,9 +17,7 @@ BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(security-manager) BuildRequires: pkgconfig(libsystemd-daemon) BuildRequires: pkgconfig(tef-libteec) - -%define tef_conf /etc/tef/tef.conf -Requires: %{tef_conf} +PreReq: tef-libteec %{?systemd_requires} @@ -94,18 +92,14 @@ make %{?jobs:-j%jobs} make install %pre -if [ ! -f %{tef_conf} ]; then - echo "Missing tef.conf file on system" > /dev/stderr; - exit 1; -fi %post -sed -i -e 's/^lib=.*$/lib=simulator/' %{tef_conf} +tef-update.sh simulator %preun %postun -sed -i -e 's/^lib=simulator.*$/lib=/' %{tef_conf} +tef-update.sh %files -n %{name} %{bin_dir}/tef-simulator-daemon