https://bugzilla.redhat.com/show_bug.cgi?id=1509290



--- Comment #8 from Robert-AndrĂ© Mauchin <[email protected]> ---
 - I found a way to make it work, following the example of the firefox package:

%global varnishapi_version %(pkg-config  --silence-errors --modversion
varnishapi 2>/dev/null || echo 65536)

   And:

Requires: varnish >= %varnishapi_version


You'll get the correct Requires for your package in the end:

$ rpm -qp --requires vmod-uuid-1.3-3.fc28.x86_64.rpm   | sort | uniq -c
      1 libc.so.6()(64bit)
      1 libc.so.6(GLIBC_2.2.5)(64bit)
      1 libc.so.6(GLIBC_2.4)(64bit)
      1 libossp-uuid.so.16()(64bit)
      1 libpthread.so.0()(64bit)
      1 libvarnishapi.so.1()(64bit)
      1 libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsXz) <= 5.2-1
      1 rtld(GNU_HASH)
      1 uuid
      1 varnish >= 5.2.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to