[SailfishDevel] Boolean dependencies in RPM SPEC
rinigus
rinigus.git at gmail.com
Mon May 13 17:31:58 UTC 2019
Dear Pekka,
thank you very much - its way better to use it through pkgconfig. Didn't
find this option a while ago when I was writing original SPEC files and
didn't look for it either.
Cheers,
Rinigus
On Mon, May 13, 2019 at 10:24 AM Pekka Vuorela <pekka.vuorela at jolla.com>
wrote:
> 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)
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20190513/cfe8207a/attachment.html>
More information about the Devel
mailing list