SHA256
1
0
forked from pool/zanshin
Dominique Leuenberger 2018-01-09 13:52:31 +00:00 committed by Git OBS Bridge
parent 0f830c9c07
commit c63f948959
7 changed files with 116 additions and 19 deletions

View File

@ -1,6 +1,6 @@
--- zanshin-0.4.1/CMakeLists.txt 2016-09-06 16:21:19.000000000 +0200 --- zanshin-0.4.1/CMakeLists.txt 2016-09-06 16:21:19.000000000 +0200
+++ zanshin-0.4.1.new/CMakeLists.txt 2016-11-21 14:37:27.169696650 +0100 +++ zanshin-0.4.1.new/CMakeLists.txt 2016-11-21 14:37:27.169696650 +0100
@@ -16,6 +16,17 @@ include(ECMMarkAsTest) @@ -16,6 +16,20 @@ include(ECMMarkAsTest)
include(ECMPoQmTools) include(ECMPoQmTools)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Gui Widgets Qml Test) find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Core Gui Widgets Qml Test)
@ -13,12 +13,15 @@
+ Ldap + Ldap
+ Runner + Runner
+ Wallet + Wallet
+ WindowSystem
+ I18n
+ KDELibs4Support
+) +)
+find_package(KF5Akonadi "5.1" CONFIG REQUIRED) +find_package(KF5Akonadi "5.1" CONFIG REQUIRED)
find_package(Boost REQUIRED) find_package(Boost REQUIRED)
macro(assert_min_ver version) macro(assert_min_ver version)
set(error_msg "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_VERSION} not supported") set(error_msg "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_VERSION} not supported")
@@ -64,18 +75,6 @@ include_directories ( @@ -64,21 +75,6 @@ include_directories (
3rdparty/kdepim/libkdepim/ 3rdparty/kdepim/libkdepim/
) )
@ -31,6 +34,9 @@
- Ldap - Ldap
- Runner - Runner
- Wallet - Wallet
- WindowSystem
- I18n
- KDELibs4Support
-) -)
-find_package(KF5Akonadi "5.1" CONFIG REQUIRED) -find_package(KF5Akonadi "5.1" CONFIG REQUIRED)
- -

View File

@ -0,0 +1,31 @@
From 55c7126edf9e956c14ed5c82973399c7db48d965 Mon Sep 17 00:00:00 2001
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Thu, 4 Jan 2018 11:59:21 +0100
Subject: [PATCH] Fix build with Qt 5.6
qAsConst() only exists in Qt 5.7.0 and higher.
This basically reverts commit ff4cbbff when compiling with Qt < 5.7.0,
to make it build on Leap 42.x.
---
src/utils/dependencymanager.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/utils/dependencymanager.cpp b/src/utils/dependencymanager.cpp
index 560a768e..2f70fad1 100644
--- a/src/utils/dependencymanager.cpp
+++ b/src/utils/dependencymanager.cpp
@@ -44,7 +44,11 @@ DependencyManager::DependencyManager(const DependencyManager &other)
DependencyManager::~DependencyManager()
{
+#if QT_VERSION < QT_VERSION_CHECK(5,7,0)
+ foreach (void (*cleanupFunction)(DependencyManager*), m_cleanupFunctions) {
+#else
for (const auto &cleanupFunction : qAsConst(m_cleanupFunctions)) {
+#endif
cleanupFunction(this);
}
}
--
2.13.6

View File

@ -1,5 +1,5 @@
--- zanshin-0.4.1/src/widgets/applicationcomponents.cpp 2016-09-06 16:21:19.000000000 +0200 --- zanshin-0.5.0/src/widgets/applicationcomponents.cpp
+++ zanshin-0.4.1.new/src/widgets/applicationcomponents.cpp 2016-11-21 16:36:19.092641290 +0100 +++ zanshin-0.5.0.new/src/widgets/applicationcomponents.cpp
@@ -112,7 +112,7 @@ AvailablePagesView *ApplicationComponent @@ -112,7 +112,7 @@ AvailablePagesView *ApplicationComponent
ApplicationComponents *self = const_cast<ApplicationComponents*>(this); ApplicationComponents *self = const_cast<ApplicationComponents*>(this);
self->m_availablePagesView = availablePagesView; self->m_availablePagesView = availablePagesView;
@ -9,3 +9,14 @@
} }
return m_availablePagesView; return m_availablePagesView;
--- zanshin-0.5.0/src/widgets/applicationcomponents.cpp
+++ zanshin-0.5.0.new/src/widgets/applicationcomponents.cpp
@@ -136,7 +136,7 @@ PageView *ApplicationComponents::pageView() const
self->m_pageView = pageView;
self->m_errorHandler->setPageView(pageView);
- connect(self->m_pageView, &PageView::currentArtifactChanged, self, &ApplicationComponents::onCurrentArtifactChanged);
+ connect(self->m_pageView.data(), &PageView::currentArtifactChanged, self, &ApplicationComponents::onCurrentArtifactChanged);
}
return m_pageView;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a1980e2021c8f494c70f035f91e87f710ebf1cdfcad9a5f8eadc24a38a998d2
size 366671

3
zanshin-0.5.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0781c088741186f3d9ff3027dc961103d33a59b0e3aeb6bc4c66ff24eb3adb4f
size 438300

View File

@ -1,3 +1,42 @@
-------------------------------------------------------------------
Thu Jan 4 09:11:47 UTC 2018 - wbauer@tmo.at
- Update to 0.5.0
* Errors coming from the system are now displayed properly in the
main window
* Tasks scheduled in the future can be filtered out
* A task can be picked up as the "currently running" showing a
nice overlay at the top of the screen, this is a reminder of
what you're supposed to focus on
* Projects are now displayed grouped by their containing
collection which can help separate better visually between work
and personal projects
* Attachments are now supported for tasks (which nicely complete
the "create todo" feature from KMail)
* Tasks with recurrence are now supported (although we have a
simple recurrence model for now)
* And of course also a couple of minor GUI adjustments and bug
fixes
Under the hood, we also did some improvements:
* Some error handling has been improved
* Some duplicated code has been factorized
* Some dead code has been cleaned up
* Issues pointed out by krazy and clazy have been addressed
* Feature level tests have been reworked and are better insulated
from each other
* Our code related to dates have been ported to the new KCalCore
ABI introduced in 17.12
* The biggest architectural change has been the introduction of a
cache which speeds up our accesses to akonadi and allowed to
address a few bugs (we had some views exhibiting duplicated
items, this is now gone)
- Adjust build requirements
- Add -lang subpackage that contains translations
- Add fix-build-with-Qt-5.6.patch to make it build on Leap 42.x
- Update qpointerconnect.diff to fix another instance of the same
"problem" and make it build with gcc 4.8 again
- Update source URL
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 3 16:55:31 UTC 2017 - jengelh@inai.de Fri Feb 3 16:55:31 UTC 2017 - jengelh@inai.de

View File

@ -15,44 +15,43 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%bcond_without lang
Name: zanshin Name: zanshin
Version: 0.4.1 Version: 0.5.0
Release: 0 Release: 0
Summary: TODO Application Summary: TODO Application
License: GPL-2.0 or GPL-3.0 License: GPL-2.0 or GPL-3.0
Group: Productivity/Office/Organizers Group: Productivity/Office/Organizers
Url: https://zanshin.kde.org/ Url: https://zanshin.kde.org/
Source: http://files.kde.org/%{name}/%{name}-%{version}.tar.bz2 Source: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Patch0: findKF5sooner.patch Patch0: findKF5sooner.patch
Patch1: useknownGCCflag.patch Patch1: useknownGCCflag.patch
Patch2: qpointerconnect.diff Patch2: qpointerconnect.diff
# PATCH-FIX-OPENSUSE
Patch3: fix-build-with-Qt-5.6.patch
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: kf5-filesystem BuildRequires: kf5-filesystem
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: cmake(KF5Akonadi)
BuildRequires: cmake(KF5AkonadiCalendar) BuildRequires: cmake(KF5AkonadiCalendar)
BuildRequires: cmake(KF5AkonadiMime) BuildRequires: cmake(KF5AkonadiMime)
BuildRequires: cmake(KF5AkonadiNotes) BuildRequires: cmake(KF5AkonadiNotes)
BuildRequires: cmake(KF5AkonadiSearch) BuildRequires: cmake(KF5AkonadiSearch)
BuildRequires: cmake(KF5CalendarCore) BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5Contacts)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5IdentityManagement) BuildRequires: cmake(KF5IdentityManagement)
BuildRequires: cmake(KF5KCMUtils) BuildRequires: cmake(KF5KDELibs4Support)
BuildRequires: cmake(KF5KHtml)
BuildRequires: cmake(KF5KontactInterface) BuildRequires: cmake(KF5KontactInterface)
BuildRequires: cmake(KF5Ldap) BuildRequires: cmake(KF5Ldap)
BuildRequires: cmake(KF5PimTextEdit)
BuildRequires: cmake(KF5Plasma)
BuildRequires: cmake(KF5Runner) BuildRequires: cmake(KF5Runner)
BuildRequires: cmake(KF5Wallet) BuildRequires: cmake(KF5Wallet)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Script) BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Widgets)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -60,11 +59,14 @@ Zanshin Todo is an application for managing your day-to-day actions.
It helps you organize and reduce the cognitive pressure of what one has to do in his It helps you organize and reduce the cognitive pressure of what one has to do in his
job and personal life. You will never forget anything anymore. job and personal life. You will never forget anything anymore.
%lang_package
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
%build %build
%cmake_kf5 -d build %cmake_kf5 -d build
@ -74,6 +76,9 @@ job and personal life. You will never forget anything anymore.
%kf5_makeinstall -C build %kf5_makeinstall -C build
%suse_update_desktop_file org.kde.zanshin Utility TimeUtility %suse_update_desktop_file org.kde.zanshin Utility TimeUtility
%suse_update_desktop_file org.kde.renku Utility TimeUtility %suse_update_desktop_file org.kde.renku Utility TimeUtility
%if %{with lang}
%find_lang %{name}
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -100,4 +105,9 @@ job and personal life. You will never forget anything anymore.
%{_kf5_kxmlguidir}/renku/ %{_kf5_kxmlguidir}/renku/
%{_kf5_kxmlguidir}/zanshin/ %{_kf5_kxmlguidir}/zanshin/
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING
%endif
%changelog %changelog