Hello community, here is the log from the commit of package ktorrent for openSUSE:Factory checked in at 2018-05-29 16:51:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ktorrent (Old) and /work/SRC/openSUSE:Factory/.ktorrent.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ktorrent" Tue May 29 16:51:22 2018 rev:109 rq:612383 version:5.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ktorrent/ktorrent.changes 2018-01-26 13:59:00.878618228 +0100 +++ /work/SRC/openSUSE:Factory/.ktorrent.new/ktorrent.changes 2018-05-29 16:51:32.573434317 +0200 @@ -1,0 +2,7 @@ +Sat May 26 09:02:43 UTC 2018 - [email protected] + +- Add patches: + * fix-build.patch + * fix-build-with-Qt-5_11.patch + +------------------------------------------------------------------- New: ---- fix-build-with-Qt-5_11.patch fix-build.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ktorrent.spec ++++++ --- /var/tmp/diff_new_pack.KvsAxo/_old 2018-05-29 16:51:33.237409887 +0200 +++ /var/tmp/diff_new_pack.KvsAxo/_new 2018-05-29 16:51:33.241409739 +0200 @@ -1,7 +1,7 @@ # # spec file for package ktorrent # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,9 +20,9 @@ Version: 5.1.0 Release: 0 Summary: KDE BitTorrent Client -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Networking/File-Sharing -Url: http://ktorrent.org/ +URL: http://ktorrent.org/ Source0: http://download.kde.org/stable/ktorrent/5.1/%{name}-%{version}.tar.xz Source2: ktorrent.1 Source3: ktupnptest.1 @@ -30,51 +30,58 @@ Patch0: initial-preference.diff # PATCH-FIX-OPENSUSE fix-build-with-qt5.6.patch -- make it build with Qt < 5.7.0 (i.e. on Leap 42.x) Patch1: fix-build-with-qt5.6.patch -%if 0%{?suse_version} > 1325 -BuildRequires: libboost_headers-devel -%else -BuildRequires: boost-devel -%endif +# PATCH-FIX-UPSTREAM fix-build.patch +Patch2: fix-build.patch +# PATCH-FIX-UPSTREAM fix-build-with-Qt-5_11.patch +Patch3: fix-build-with-Qt-5_11.patch BuildRequires: extra-cmake-modules BuildRequires: fdupes -BuildRequires: karchive-devel -BuildRequires: kcmutils-devel -BuildRequires: kcompletion-devel -BuildRequires: kconfig-devel -BuildRequires: kconfigwidgets-devel -BuildRequires: kcoreaddons-devel -BuildRequires: kcrash-devel -BuildRequires: kdbusaddons-devel -BuildRequires: kdewebkit-devel -BuildRequires: kdnssd-framework-devel -BuildRequires: kdoctools-devel -BuildRequires: ki18n-devel -BuildRequires: kiconthemes-devel -BuildRequires: kio-devel -BuildRequires: kitemviews-devel -BuildRequires: knotifications-devel -BuildRequires: knotifyconfig-devel -BuildRequires: kparts-devel -BuildRequires: kplotting-devel -BuildRequires: kross-devel -BuildRequires: kservice-devel -BuildRequires: ktextwidgets-devel -BuildRequires: kwidgetsaddons-devel -BuildRequires: kwindowsystem-devel -BuildRequires: kxmlgui-devel BuildRequires: libktorrent-devel >= 2.1 BuildRequires: phonon4qt5-devel +BuildRequires: pkgconfig BuildRequires: plasma5-workspace-devel -BuildRequires: solid-devel BuildRequires: syndication-devel BuildRequires: update-desktop-files -BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5DBus) -BuildRequires: pkgconfig(Qt5Network) -BuildRequires: pkgconfig(Qt5Script) -BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: cmake(KF5Archive) +BuildRequires: cmake(KF5Completion) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5DNSSD) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5ItemViews) +BuildRequires: cmake(KF5KCMUtils) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Kross) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(KF5NotifyConfig) +BuildRequires: cmake(KF5Parts) +BuildRequires: cmake(KF5Plotting) +BuildRequires: cmake(KF5Service) +BuildRequires: cmake(KF5Solid) +BuildRequires: cmake(KF5TextWidgets) +BuildRequires: cmake(KF5WebKit) +BuildRequires: cmake(KF5WidgetsAddons) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5XmlGui) +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Network) +BuildRequires: cmake(Qt5Script) +BuildRequires: cmake(Qt5Widgets) BuildRequires: pkgconfig(taglib) +Recommends: %{name}-lang = %{version} +%if 0%{?suse_version} > 1325 +BuildRequires: libboost_headers-devel +%else +BuildRequires: boost-devel +%endif %if 0%{?suse_version} < 1330 +#!BuildIgnore: libgcc_s1 %if 0%{?sle_version} < 120300 BuildRequires: gcc5 BuildRequires: gcc5-c++ @@ -82,10 +89,7 @@ BuildRequires: gcc7 BuildRequires: gcc7-c++ %endif -#!BuildIgnore: libgcc_s1 %endif -Recommends: %{name}-lang = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description KTorrent is a BitTorrent application by KDE which allows you to download files @@ -94,12 +98,15 @@ for BitTorrent. %lang_package + %prep %setup -q %patch0 %if 0%{?suse_version} < 1330 %patch1 -p1 %endif +%patch2 -p1 +%patch3 -p1 %build %if 0%{?suse_version} < 1330 @@ -137,33 +144,31 @@ %find_lang %{name} %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig %files -%defattr(-,root,root,-) -%doc COPYING ChangeLog RoadMap -%doc %{_mandir}/man1/ktorrent.1%{ext_man} -%doc %{_mandir}/man1/ktupnptest.1%{ext_man} -%_bindir/ktorrent -%_bindir/ktmagnetdownloader -%_bindir/ktupnptest -%_libdir/libktcore.so.* -%_kf5_plugindir/ -%_kf5_applicationsdir/org.kde.ktorrent.desktop -%_kf5_iconsdir/hicolor/*/*/*.png -%_kf5_iconsdir/hicolor/*/*/*.svgz -%_kf5_notifydir/ktorrent.notifyrc -%_kf5_kxmlguidir/ktorrent/ -%_kf5_htmldir/en/ktorrent/ -%_kf5_sharedir/ktorrent/ -%dir %_kf5_appstreamdir -%_kf5_appstreamdir/org.kde.ktorrent.appdata.xml +%license COPYING +%doc ChangeLog RoadMap +%dir %{_kf5_appstreamdir} +%{_kf5_bindir}/ktmagnetdownloader +%{_kf5_bindir}/ktorrent +%{_kf5_bindir}/ktupnptest +%{_kf5_applicationsdir}/org.kde.ktorrent.desktop +%{_kf5_appstreamdir}/org.kde.ktorrent.appdata.xml +%{_kf5_htmldir}/en/ktorrent/ +%{_kf5_iconsdir}/hicolor/*/*/*.png +%{_kf5_iconsdir}/hicolor/*/*/*.svgz +%{_kf5_kxmlguidir}/ktorrent/ +%{_kf5_mandir}/man1/ktorrent.1%{?ext_man} +%{_kf5_mandir}/man1/ktupnptest.1%{?ext_man} +%{_kf5_notifydir}/ktorrent.notifyrc +%{_kf5_plugindir}/ +%{_kf5_sharedir}/ktorrent/ +%{_libdir}/libktcore.so.* %files lang -f %{name}.lang -%defattr(-,root,root,-) -%_kf5_htmldir/*/ktorrent/ -%dir %_kf5_htmldir/pt_BR -%exclude %_kf5_htmldir/en/ktorrent/ +%{_kf5_htmldir}/*/ktorrent/ +%dir %{_kf5_htmldir}/pt_BR +%exclude %{_kf5_htmldir}/en/ktorrent/ %changelog ++++++ fix-build-with-Qt-5_11.patch ++++++ commit 16691987fdf035f7cafd6c65f7287639ac4cc27f Author: Andreas Sturmlechner <[email protected]> Date: Sun Mar 18 19:13:26 2018 +0100 Fix build with Qt 5.11 (missing headers) Reviewers: stikonas Reviewed By: stikonas Differential Revision: https://phabricator.kde.org/D11456 diff --git a/ktorrent/dialogs/fileselectdlg.cpp b/ktorrent/dialogs/fileselectdlg.cpp index 139b4752..ec7d8ede 100644 --- a/ktorrent/dialogs/fileselectdlg.cpp +++ b/ktorrent/dialogs/fileselectdlg.cpp @@ -20,6 +20,7 @@ #include "fileselectdlg.h" +#include <QButtonGroup> #include <QMenu> #include <QPushButton> #include <QTextCodec> diff --git a/ktorrent/groups/groupview.cpp b/ktorrent/groups/groupview.cpp index 990ed0d3..76208144 100644 --- a/ktorrent/groups/groupview.cpp +++ b/ktorrent/groups/groupview.cpp @@ -23,6 +23,7 @@ #include <QAction> #include <QDragEnterEvent> #include <QDropEvent> +#include <QHeaderView> #include <QInputDialog> #include <QMenu> #include <QTreeWidgetItemIterator> diff --git a/plugins/search/searchprefpage.cpp b/plugins/search/searchprefpage.cpp index 667e7a82..4be6cd5c 100644 --- a/plugins/search/searchprefpage.cpp +++ b/plugins/search/searchprefpage.cpp @@ -21,6 +21,7 @@ #include "searchprefpage.h" +#include <QButtonGroup> #include <QCheckBox> #include <QFile> #include <QInputDialog> ++++++ fix-build.patch ++++++ commit 6d7433d44c7f18cd84d2de105beb5c646ed0e355 Author: Adriaan de Groot <[email protected]> Date: Tue Apr 24 19:15:32 2018 +0200 QTimer may not be an incomplete type as it is used as a member variable. Add the #include to fully define the type. This problem shows up when this header is included in a context that doesn't already have QTimer included -- CMake 3.11 exposes that accidentally. Upstreamed from FreeBSD ports. diff --git a/ktorrent/dialogs/torrentcreatordlg.h b/ktorrent/dialogs/torrentcreatordlg.h index 68dde8ad..12a1a433 100644 --- a/ktorrent/dialogs/torrentcreatordlg.h +++ b/ktorrent/dialogs/torrentcreatordlg.h @@ -23,6 +23,8 @@ #define KT_TORRENTCREATORDLG_HH #include <QDialog> +#include <QTimer> + #include "ui_torrentcreatordlg.h" #include <torrent/torrentcreator.h>
