Modify version check during package upgrade 40/34940/6
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 4 Feb 2015 11:11:19 +0000 (12:11 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Tue, 24 Feb 2015 15:02:32 +0000 (16:02 +0100)
commitba1d0344f96918023da91dad7ac35c53b89c1517
tree7bb3efdf5b46e1e305dcff99a94e1702542f041a
parent4537417423bfa6f63dff2dd6254f7570c804d23d
Modify version check during package upgrade

Cynara has to determine its currently installed version during package
upgrade. Doing RPM queries from inside install-time scripts isn't
recommended. Necessary information is obtained from Cynara's version
information.

However, not all Cynara releases provided mechanism of reporting its
version. In case of lack of it, following fallback mechanism is
provided: version information is extracted from a name of a file that
Cynara depends on, which currently is
"<libdir>/libcynara-commons.so.<version>".

Change-Id: I5c9a2abf123d91a32513980e3f9c24112d59547c
packaging/cynara.spec