Skip to content

Commit

Permalink
[packaging] Adjust requirements by using pkgconfig
Browse files Browse the repository at this point in the history
Avoid specifying names of Qt packages and use pkgconfig instead. Drop
explicit Qt Core package requirement of sensorfw-qt5 and rely on RPM
build system to identify it

Signed-off-by: Rinigus <rinigus.git@gmail.com>
  • Loading branch information
rinigus committed Nov 28, 2020
1 parent 5ec9d99 commit 840c379
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rpm/sensorfw-qt5.spec
Expand Up @@ -7,7 +7,6 @@ URL: https://git.sailfishos.org/mer-core/sensorfw
Source0: %{name}-%{version}.tar.bz2
Source1: sensorfwd.service
Source2: sensorfw-qt5-hybris.inc
Requires: qt5-qtcore
Requires: sensord-configs
Requires: systemd
Requires(preun): systemd
Expand All @@ -34,9 +33,9 @@ Sensor Framework provides an interface to hardware sensor drivers through logica
%package devel
Summary: Sensor framework daemon libraries development headers
Requires: %{name} = %{version}-%{release}
Requires: qt5-qtcore-devel
Requires: qt5-qtdbus-devel
Requires: qt5-qtnetwork-devel
Requires: pkgconfig(Qt5Core)
Requires: pkgconfig(Qt5DBus)
Requires: pkgconfig(Qt5Network)

%description devel
Development headers for sensor framework daemon and libraries.
Expand All @@ -45,7 +44,7 @@ Development headers for sensor framework daemon and libraries.
%package tests
Summary: Unit test cases for sensord
Requires: %{name} = %{version}-%{release}
Requires: qt5-qttest-devel
Requires: pkgconfig(Qt5Test)
Requires: testrunner-lite
Requires: python(abi) > 3.0
Requires(post): /sbin/ldconfig
Expand Down

0 comments on commit 840c379

Please sign in to comment.