summaryrefslogtreecommitdiff
path: root/packaging/custom-find-requires
blob: ebd22cbced3d29b578eb546798a4ab0b040a53eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if [ -z "$RPM_BUILD_ROOT" ] ; then
  echo "The $0 script is not intended to be executed directly." > /dev/stderr
  exit 1
fi

# this grep will consume whole list of files from stdin
if grep -qF /Xamarin.Forms.Platform.Tizen.dll ; then
  # if it's a X.F.P.Tizen package, then find the version of elm-sharp (or elm-sharp-nuget) in use
  rpm -qa --queryformat 'elm-sharp >= %{VERSION}\n' 'elm-sharp*' | head -n1
fi