Fix build against PackageKit::Offline

epel9
Jan Grulich 7 years ago
parent c44b723ef6
commit 2687e7ee09

@ -0,0 +1,33 @@
From 42605067fd4a400dc1dcf969388c0fe6721ff7fd Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
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 <QDBusPendingReply>
#include <QVariantMap>
+#include <packagekitqt_global.h>
+
namespace PackageKit {
class OfflinePrivate;
-class Offline : public QObject
+class PACKAGEKITQT_LIBRARY Offline : public QObject
{
Q_OBJECT
Q_DECLARE_PRIVATE(Offline)

@ -2,13 +2,16 @@
Summary: Qt support library for PackageKit Summary: Qt support library for PackageKit
Name: PackageKit-Qt Name: PackageKit-Qt
Version: 1.0.0 Version: 1.0.0
Release: 1%{?dist} Release: 2%{?dist}
License: LGPLv2+ License: LGPLv2+
URL: http://www.packagekit.org/ URL: http://www.packagekit.org/
Source0: https://github.com/hughsie/PackageKit-Qt/archive/PackageKit-Qt-%{version}.tar.gz 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
BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Sql) BuildRequires: cmake(Qt5Sql)
@ -72,6 +75,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog %changelog
* Tue Jan 16 2018 Jan Grulich <jgrulich@redhat.com> - 1.0.0-1
- Fix build against PackageKit::Offline
* Tue Jan 16 2018 Jan Grulich <jgrulich@redhat.com> - 1.0.0-1 * Tue Jan 16 2018 Jan Grulich <jgrulich@redhat.com> - 1.0.0-1
- 1.0.0 - 1.0.0

Loading…
Cancel
Save