Don't overwrite tef.conf during rpm update 24/174124/6
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 28 Mar 2018 09:35:34 +0000 (11:35 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 30 Mar 2018 07:17:31 +0000 (09:17 +0200)
When libteec rpm is updated it overwrites the existing tef configuration making
it use dummy implementation.

This commit marks tef.conf as config file preventing rpm from overwriting it.

Change-Id: I3a7c707ebea7814d52a3562b5ca1f5e2c26a5f73

packaging/tef-libteec.spec

index 0e69aa0..67a764d 100644 (file)
@@ -10,6 +10,8 @@ Requires(postun):   /sbin/ldconfig
 Source0:            %{name}-%{version}.tar.gz
 Source1:            %{name}.manifest
 
+%global tef_conf %{_sysconfdir}/tef/tef.conf
+
 %description
 The package provides Global Platform client API.
 
@@ -22,7 +24,7 @@ The package provides Global Platform client API.
 %license LICENSE
 %license LICENSE.BSD-2-Clause
 %{_libdir}/libteec.so*
-/etc/tef/tef.conf
+%config %{tef_conf}
 /usr/sbin/tef-update.sh