No problem. To find “good” dependcy, search for corresponding lib. In case of JPEG, package is libjpeg-turbo-devel
. To see what it provides, run
$ sb2 -t SailfishOS-4.1.0.24-aarch64 -m sdk-install -R zypper info --provides libjpeg-turbo-devel
Loading repository data...
Reading installed packages...
Information for package libjpeg-turbo-devel:
--------------------------------------------
Repository : jolla
Name : libjpeg-turbo-devel
Version : 2.0.4+git1-1.2.2.jolla
Arch : aarch64
Vendor : meego
Installed Size : 41.9 KiB
Installed : No
Status : not installed
Source package : libjpeg-turbo-2.0.4+git1-1.2.2.jolla.src
Summary : Development tools for programs which will use the libjpeg library
Description :
The libjpeg-devel package includes the header files and documentation
necessary for developing programs which will manipulate JPEG files using
the libjpeg library.
If you are going to develop programs which will manipulate JPEG images,
you should install libjpeg-devel. You'll also need to have the libjpeg
package installed.
Provides : [5]
libjpeg-devel
libjpeg-turbo-devel = 2.0.4+git1-1.2.2.jolla
libjpeg-turbo-devel(aarch-64) = 2.0.4+git1-1.2.2.jolla
pkgconfig(libjpeg) = 2.0.4
pkgconfig(libturbojpeg) = 2.0.4
Notice, that it provides pkgconfig(libjpeg)
. So, add in your SPEC:
BuildRequires: pkgconfig(libjpeg)