From 2687e7ee097f251faf5b87df4ef5162b26a263b0 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 16 Jan 2018 09:45:16 +0100 Subject: [PATCH] Fix build against PackageKit::Offline --- ...fix-build-against-packagekit-offline.patch | 33 +++++++++++++++++++ PackageKit-Qt.spec | 8 ++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 PackageKit-Qt-fix-build-against-packagekit-offline.patch diff --git a/PackageKit-Qt-fix-build-against-packagekit-offline.patch b/PackageKit-Qt-fix-build-against-packagekit-offline.patch new file mode 100644 index 0000000..9b792bd --- /dev/null +++ b/PackageKit-Qt-fix-build-against-packagekit-offline.patch @@ -0,0 +1,33 @@ +From 42605067fd4a400dc1dcf969388c0fe6721ff7fd Mon Sep 17 00:00:00 2001 +From: Aleix Pol +Date: Sat, 13 Jan 2018 00:47:42 +0100 +Subject: Fix build against PackageKit::Offline + +Offline.h doesn't exist. +Offline class wasn't exported + +diff --git a/src/Offline b/src/Offline +index 62d0e71..d19ee9e 100644 +--- a/src/Offline ++++ b/src/Offline +@@ -1 +1 @@ +-#include "Offline.h" ++#include "offline.h" +diff --git a/src/offline.h b/src/offline.h +index 6c16256..d6d3755 100644 +--- a/src/offline.h ++++ b/src/offline.h +@@ -24,10 +24,12 @@ + #include + #include + ++#include ++ + namespace PackageKit { + + class OfflinePrivate; +-class Offline : public QObject ++class PACKAGEKITQT_LIBRARY Offline : public QObject + { + Q_OBJECT + Q_DECLARE_PRIVATE(Offline) diff --git a/PackageKit-Qt.spec b/PackageKit-Qt.spec index 858a760..690652a 100644 --- a/PackageKit-Qt.spec +++ b/PackageKit-Qt.spec @@ -2,13 +2,16 @@ Summary: Qt support library for PackageKit Name: PackageKit-Qt Version: 1.0.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ URL: http://www.packagekit.org/ Source0: https://github.com/hughsie/PackageKit-Qt/archive/PackageKit-Qt-%{version}.tar.gz +# Upstream patches +Patch0: PackageKit-Qt-fix-build-against-packagekit-offline.patch + BuildRequires: cmake BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Sql) @@ -72,6 +75,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %changelog +* Tue Jan 16 2018 Jan Grulich - 1.0.0-1 +- Fix build against PackageKit::Offline + * Tue Jan 16 2018 Jan Grulich - 1.0.0-1 - 1.0.0