Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-13 Thread rinigus
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 wrote: > On Sun, 2019-05-12 at 20:47 +0300, ri

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-13 Thread Pekka Vuorela
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.

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-12 Thread rinigus
All worked as soon as %{_repository} is as in %if "%{_repository}" == "sailfish_3.0.2.8_armv7hl" BuildRequires: libicu52-devel %else BuildRequires: libicu-devel %endif Rinigus On Sun, May 12, 2019 at 8:56 PM rinigus wrote: > PS: And it failed on 3.0.2 - back to the drawing board... > > On Sun,

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-12 Thread rinigus
PS: And it failed on 3.0.2 - back to the drawing board... On Sun, May 12, 2019 at 8:47 PM 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 d

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-12 Thread rinigus
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: lib

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-12 Thread Martin Kolman
Sat, 11 May 2019 17:53:27 +0300 Rinigus : Summary from IRC chat on the topic: David spotted that BuildRequires is not mentioned in the list of boolean dependencies (thank you!). So, next question: which condition could I use in %if expansion of SPEC to distinguish SFOS 3.0.3.x from the earlier

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-11 Thread rinigus
Summary from IRC chat on the topic: David spotted that BuildRequires is not mentioned in the list of boolean dependencies (thank you!). So, next question: which condition could I use in %if expansion of SPEC to distinguish SFOS 3.0.3.x from the earlier versions? Maybe there is some variable define

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-11 Thread rinigus
Hi, the problem is while building at OBS: https://build.merproject.org/package/show/home:rinigus:maps/mapnik Rinigus On Sat, May 11, 2019 at 4:30 PM David Llewellyn-Jones wrote: > On 11/05/2019 16:12, rinigus wrote: > [snip] > > BuildRequires: (libicu52-devel or libicu-devel) > > > > as in > >

Re: [SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-11 Thread David Llewellyn-Jones
On 11/05/2019 16:12, rinigus wrote: [snip] > BuildRequires: (libicu52-devel or libicu-devel) > > as in > https://github.com/rinigus/pkg-mapnik/blob/da5b6a11667b286c89bbee93eb57e2d4d52d5902/rpm/mapnik.spec#L16 >   [snip] > Hence the question - how can I add support for 3.0.2.x and 3.0.3.x using > t

[SailfishDevel] Boolean dependencies in RPM SPEC

2019-05-11 Thread rinigus
Hi, with SFOS 3.0.3.x, we have new ICU version which is packaged into libicu and libicu-devel. As a result, name of the package is different from the earlier one (had icu52 in the names) and RPM SPEC files need to change the dependency accordingly. I tried to use `or` in the SPEC without any succe