[SailfishDevel] Boolean dependencies in RPM SPEC

Pekka Vuorela pekka.vuorela at jolla.com
Mon May 13 07:24:02 UTC 2019


On Sun, 2019-05-12 at 20:47 +0300, rinigus wrote:
> Martin, 
> 
> thanks for pointing in this direction. I added %dump in SPEC and the
> only reasonable macro that I could see was _repository. So, I added
> the following to differentiate the dependencies:
> 
> %if %{_repository} == "sailfish_3.0.2.8_armv7hl"
> BuildRequires: libicu52-devel
> %else
> BuildRequires: libicu-devel
> %endif
> 
> Not the prettiest of the solutions, but seem to work.

Suppose you might want to also try just:

BuildRequires:  pkgconfig(icu-uc)




More information about the Devel mailing list