Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
64e8ec9d25
!21 [sync] PR-20: upgrade to version 6.0.6
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-08-23 08:20:04 +00:00
leeffo
ca4e4f1900 upgrade to version 6.0.6
(cherry picked from commit 1019ba5f6d788958d40decc8c5eba0d35b211cff)
2023-08-15 17:13:04 +08:00
openeuler-ci-bot
c26e0b58a7
!18 update to 5.9.23
From: @leeffo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-04-10 05:44:27 +00:00
liweiganga
543e0b0ccc update: update to 5.9.23 2023-04-06 13:31:49 +08:00
openeuler-ci-bot
6f81c51369
!14 fix strip
From: @leeffo 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
2023-03-16 08:30:56 +00:00
liweiganga
7273639d0c feat: fix strip 2023-03-16 15:31:08 +08:00
openeuler-ci-bot
239af073e2
!13 [sync] PR-11: enable debuginfo for fix strip
From: @openeuler-sync-bot 
Reviewed-by: @panchenbo 
Signed-off-by: @panchenbo
2022-12-28 02:39:41 +00:00
liweiganga
8823106f35 enable debuginfo for fix strip
(cherry picked from commit 4eac17871833b6e98823d05bd1cd284f618acfcf)
2022-12-22 09:25:06 +08:00
openeuler-ci-bot
a532993442
!7 feat: for sync 22.09 to master
From: @loong-C 
Reviewed-by: @yeqinglong01 
Signed-off-by: @yeqinglong01
2022-07-29 05:24:24 +00:00
loong_C
5a06d90ec2 feat: for sync 22.09 to master 2022-07-28 17:20:39 +08:00
4 changed files with 109 additions and 15 deletions

View File

@ -0,0 +1,49 @@
From 9b2501cd5d5ebc02ca54c9d49dde4a9be91799de Mon Sep 17 00:00:00 2001
From: leeffo <leeffo@yeah.net>
Date: Fri, 31 Mar 2023 11:14:21 +0800
Subject: [PATCH] feat: broken KF5 include path
---
src/editor/dtextedit.cpp | 6 +++---
src/editor/showflodcodewidget.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/editor/dtextedit.cpp b/src/editor/dtextedit.cpp
index 0c50ea5..79a0bb7 100644
--- a/src/editor/dtextedit.cpp
+++ b/src/editor/dtextedit.cpp
@@ -33,9 +33,9 @@
#include "insertblockbytextcommond.h"
#include "indenttextcommond.h"
-#include <KF5/KSyntaxHighlighting/definition.h>
-#include <KF5/KSyntaxHighlighting/syntaxhighlighter.h>
-#include <KF5/KSyntaxHighlighting/theme.h>
+#include <KSyntaxHighlighting/definition.h>
+#include <KSyntaxHighlighting/syntaxhighlighter.h>
+#include <KSyntaxHighlighting/theme.h>
#include <QAbstractTextDocumentLayout>
#include <QTextDocumentFragment>
diff --git a/src/editor/showflodcodewidget.h b/src/editor/showflodcodewidget.h
index def67ad..5d2e5b7 100644
--- a/src/editor/showflodcodewidget.h
+++ b/src/editor/showflodcodewidget.h
@@ -23,10 +23,10 @@
#include <DFrame>
#include <DPlainTextEdit>
#include <DApplicationHelper>
-#include <KF5/KSyntaxHighlighting/repository.h>
-#include <KF5/KSyntaxHighlighting/definition.h>
-#include <KF5/KSyntaxHighlighting/syntaxhighlighter.h>
-#include <KF5/KSyntaxHighlighting/theme.h>
+#include <KSyntaxHighlighting/repository.h>
+#include <KSyntaxHighlighting/definition.h>
+#include <KSyntaxHighlighting/syntaxhighlighter.h>
+#include <KSyntaxHighlighting/theme.h>
DWIDGET_USE_NAMESPACE
--
2.20.1

Binary file not shown.

BIN
deepin-editor-6.0.6.tar.gz Normal file

Binary file not shown.

View File

@ -1,17 +1,28 @@
%global debug_package %{nil}
%define pkgrelease 1
%if 0%{?openeuler}
%define specrelease %{pkgrelease}
%else
## allow specrelease to have configurable %%{?dist} tag in other distribution
%define specrelease %{pkgrelease}%{?dist}
%endif
Name: deepin-editor
Version: 5.6.28
Release: 1
Version: 6.0.6
Release: %{specrelease}
Summary: Simple editor for Linux Deepin
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-editor
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
#%Patch0: 0001-feat-broken-KF5-include-path.patch
BuildRequires: cmake3
BuildRequires: qt5-devel
BuildRequires: gcc-c++
BuildRequires: freeimage-devel
BuildRequires: dtkcore-devel
BuildRequires: dtkwidget-devel
BuildRequires: pkgconfig(dtkwm)
BuildRequires: dtkcommon-devel
BuildRequires: dtkwidget-devel
BuildRequires: dtkcore-devel
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(xcb-aux)
BuildRequires: pkgconfig(xtst)
@ -21,40 +32,75 @@ BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(dframeworkdbus)
BuildRequires: qt5-linguist
BuildRequires: qt5-qtbase-private-devel
BuildRequires: cmake(KF5Codecs)
BuildRequires: cmake(KF5SyntaxHighlighting)
BuildRequires: kf5-kcodecs-devel
BuildRequires: kf5-syntax-highlighting-devel
BuildRequires: gtest-devel
BuildRequires: gmock-devel
BuildRequires: dtkcommon-devel
BuildRequires: uchardet-devel
BuildRequires: enca-devel
BuildRequires: libicu-devel
BuildRequires: libchardet-devel
%description
%{summary}.
%prep
%setup -q
#%%patch0 -p1
# fix strip
sed -i 's|-Wall"|-Wall -s"|' CMakeLists.txt
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
# cmake_minimum_required version is too high
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
%cmake . -DVERSION=%{version}
mkdir build && pushd build
%cmake -DCMAKE_BUILD_TYPE=Release -DAPP_VERSION=%{version} -DVERSION=%{version} ../
%make_build
popd
%install
%make_install
%make_install -C build INSTALL_ROOT="%buildroot"
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
# %check
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
%files
%doc README.md
%license LICENSE
%{_bindir}/dedit
%license LICENSE.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/deepin-manual/manual-assets/application/deepin-editor/editor/*
%{_datadir}/dsg/configs/org.deepin.editor/org.deepin.editor.json
%changelog
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 6.0.6-1
- upgrade to version 6.0.6
* Fri Mar 31 2023 liweiganga <liweiganga@uniontech.com> - 5.9.23-1
- update: update to 5.9.23
* Thu Mar 16 2023 liweiganga <liweiganga@uniontech.com> - 5.9.7-4
- feat: fix strip
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 5.9.7-3
- enable debuginfo for fix strip
* Wed Jul 27 2022 liweiganga <liweiganga@uniontech.com> - 5.9.7-2
- fix: broken KF5 include path
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.9.7-1
- update to 5.9.7
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.6.28-1
- Update 5.6.28
@ -63,4 +109,3 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-3
- Package init