diff --git a/rpm/sociald.spec b/rpm/sociald.spec index d5d5bf8..a216e6f 100644 --- a/rpm/sociald.spec +++ b/rpm/sociald.spec @@ -7,7 +7,6 @@ License: LGPLv2.1 URL: https://bitbucket.org/jolla/base-sociald Source0: %{name}-%{version}.tar.bz2 BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Network) @@ -68,6 +67,7 @@ systemctl-user try-restart msyncd.service || : Summary: Provides contact synchronisation with Facebook License: LGPLv2.1 Group: System/Libraries +BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Contacts) BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions) Requires: %{name} = %{version}-%{release} @@ -174,6 +174,7 @@ systemctl-user try-restart msyncd.service || : Summary: Provides contact synchronisation with Google License: LGPLv2.1 Group: System/Libraries +BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Contacts) BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions) >= 0.1.58 Requires: %{name} = %{version}-%{release} @@ -504,6 +505,7 @@ systemctl-user restart msyncd.service || : Summary: Provides contact synchronisation with VK License: LGPLv2.1 Group: System/Libraries +BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Contacts) BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions) Requires: %{name} = %{version}-%{release} diff --git a/src/common.pri b/src/common.pri index 41e5f1e..a51cbad 100644 --- a/src/common.pri +++ b/src/common.pri @@ -12,6 +12,9 @@ QT += \ dbus \ sql +QT -= \ + gui + # the unit tests need to provide a custom QNAM and uses a different database directory HEADERS += $$PWD/common/socialdnetworkaccessmanager_p.h !contains(DEFINES, 'SOCIALD_TEST_DEFINE') { diff --git a/src/facebook/facebook-contacts/facebook-contacts.pri b/src/facebook/facebook-contacts/facebook-contacts.pri index 7ed0145..bd8651a 100644 --- a/src/facebook/facebook-contacts/facebook-contacts.pri +++ b/src/facebook/facebook-contacts/facebook-contacts.pri @@ -1,3 +1,4 @@ +QT += gui CONFIG += link_pkgconfig PKGCONFIG += Qt5Contacts qtcontacts-sqlite-qt5-extensions SOURCES += $$PWD/facebookcontactsyncadaptor.cpp diff --git a/src/google/google-contacts/google-contacts.pri b/src/google/google-contacts/google-contacts.pri index 2fa44fb..7b5ca92 100644 --- a/src/google/google-contacts/google-contacts.pri +++ b/src/google/google-contacts/google-contacts.pri @@ -1,6 +1,6 @@ CONFIG += link_pkgconfig PKGCONFIG += Qt5Contacts qtcontacts-sqlite-qt5-extensions -QT += contacts-private +QT += contacts-private gui SOURCES += \ $$PWD/googletwowaycontactsyncadaptor.cpp \ diff --git a/src/vk/vk-contacts/vk-contacts.pri b/src/vk/vk-contacts/vk-contacts.pri index 82678dc..86c6802 100644 --- a/src/vk/vk-contacts/vk-contacts.pri +++ b/src/vk/vk-contacts/vk-contacts.pri @@ -1,6 +1,6 @@ CONFIG += link_pkgconfig PKGCONFIG += Qt5Contacts qtcontacts-sqlite-qt5-extensions -QT += contacts-private +QT += contacts-private gui SOURCES += $$PWD/vkcontactsyncadaptor.cpp $$PWD/vkcontactimagedownloader.cpp HEADERS += $$PWD/vkcontactsyncadaptor.h $$PWD/vkcontactimagedownloader.h INCLUDEPATH += $$PWD