Add 'Provides' to sensord-dummy package 62/286662/1
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 11 Jan 2023 10:17:10 +0000 (19:17 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Wed, 11 Jan 2023 10:17:10 +0000 (19:17 +0900)
Since the library name was changed,
(libsensor-genuine -> libsensor, libsensor -> libsensor-dummy)
the 'provides' of each package were also changed:
    sensord package is now providing 'libsensor.so.<major version>'.
    sensord-dummy package does not provide 'libsensor.so.<major version>' any more.
In a profile that uses only the sensord-dummy package, other packages
can require 'libsensor.so.<major version>'.
In this situation, rpm installer brings sensord package, which has
'libsensor.so.<major version>', even the profile does not use sensord package.
To fix this situation, 'libsensor.so.<major version>' was added to the
provides list of sensord-dummy.

Change-Id: Iec2c08088da1ca50b0d5421c6169f72da78e9ab7
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/sensord.spec

index 2852d0b..643863c 100644 (file)
@@ -39,6 +39,10 @@ Summary:    Sensor Framework 'dummy' library
 Provides:   %{name}-profile_tv = %{version}-%{release}
 # To support old-snapshot-based package builds
 Provides:   libsensor.so.2
+# For targets which uses only dummy
+# Prevent to install sensord by providing libsensor.so.<major version>
+Provides:   libsensor.so.%(echo %{version} | cut -d'.' -f1)
+
 
 %description dummy
 This package provides the dummy library of the sensor internal API.