HilscherAutomation / nxdrvlinux

cifX device driver for linux.
https://www.hilscher.com
GNU General Public License v2.0
13 stars 3 forks source link

libcifx: Fix version in `cifx.pc.in` file #4

Closed Glamhoth closed 3 months ago

Glamhoth commented 3 months ago

cifx.pc.in is using a variable DRVVERSION to populate Version field during build. This variable is defined with quotation marks and with V before the major number. Instead DRV_VERSION variable should be used instead, as it is defined as a major.minor.patch literal.

Additionally, using "Vx.x.x" as Version creates problem with RPM packaging. rpmbuild throws an error:

RPM build errors:
    Illegal char '"' (0x22) in: "V3.0.0"