!2 Init Package for openEuler
From: @peijiankang Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
e8221b25b3
134
kf5-kpimtextedit.spec
Normal file
134
kf5-kpimtextedit.spec
Normal file
@ -0,0 +1,134 @@
|
||||
%global framework kpimtextedit
|
||||
|
||||
# uncomment to enable bootstrap mode
|
||||
#global bootstrap 1
|
||||
|
||||
%if !0%{?bootstrap}
|
||||
%global tests 1
|
||||
%endif
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
Summary: The KPimTextEdit Library
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://invent.kde.org/frameworks/%{framework}
|
||||
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{framework}-%{version}.tar.xz
|
||||
|
||||
# upstream says we should just patch this downstream, see the discussion on:
|
||||
# https://phabricator.kde.org/D17947
|
||||
# Please DO NOT REMOVE OR COMMENT OUT THIS PATCH! Ask kkofler for help with
|
||||
# rebasing if needed. The patch is usually trivial to rebase.
|
||||
Patch100: kpimtextedit-21.12.1-install-and-export-for-blogilo.patch
|
||||
|
||||
## upstream patches (21.12 branch):
|
||||
|
||||
BuildRequires: grantlee-qt5-devel
|
||||
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: cmake(KF5Codecs)
|
||||
BuildRequires: cmake(KF5Config)
|
||||
BuildRequires: cmake(KF5ConfigWidgets)
|
||||
BuildRequires: cmake(KF5CoreAddons)
|
||||
BuildRequires: cmake(KF5Emoticons)
|
||||
BuildRequires: cmake(KF5I18n)
|
||||
BuildRequires: cmake(KF5IconThemes)
|
||||
BuildRequires: cmake(KF5KIO)
|
||||
BuildRequires: cmake(KF5Sonnet)
|
||||
BuildRequires: cmake(KF5SyntaxHighlighting)
|
||||
BuildRequires: cmake(KF5TextWidgets)
|
||||
BuildRequires: cmake(KF5WidgetsAddons)
|
||||
BuildRequires: cmake(KF5XmlGui)
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
|
||||
%if !0%{?bootstrap}
|
||||
BuildRequires: cmake(KF5DesignerPlugin)
|
||||
BuildRequires: qt5-qtspeech-devel
|
||||
BuildRequires: qt5-qttools-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?tests}
|
||||
BuildRequires: dbus-x11
|
||||
BuildRequires: time
|
||||
BuildRequires: xorg-x11-server-Xvfb
|
||||
%endif
|
||||
|
||||
# translations moved here
|
||||
Conflicts: kde-l10n < 17.03
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: cmake(KF5TextWidgets)
|
||||
#Requires: kf5-ktextwidgets-devel
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{framework}-%{version}
|
||||
|
||||
# Please DO NOT REMOVE OR COMMENT OUT THIS PATCH! Ask kkofler for help with
|
||||
# rebasing if needed. The patch is usually trivial to rebase.
|
||||
%patch100 -p1 -b .install_and_export_for_blogilo
|
||||
|
||||
## upstream patches
|
||||
|
||||
|
||||
%build
|
||||
%cmake_kf5 \
|
||||
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
||||
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot}
|
||||
|
||||
%find_lang %{name} --all-name --with-html
|
||||
|
||||
|
||||
%check
|
||||
%if 0%{?tests}
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
xvfb-run -a \
|
||||
dbus-launch --exit-with-session \
|
||||
time \
|
||||
make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
|
||||
%endif
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license LICENSES/*
|
||||
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
||||
%{_kf5_libdir}/libKF5PimTextEdit.so.*
|
||||
%{_qt5_plugindir}/designer/kpimtexteditwidgets.so
|
||||
|
||||
%files devel
|
||||
%{_kf5_includedir}/KPIMTextEdit/
|
||||
%{_kf5_libdir}/libKF5PimTextEdit.so
|
||||
%{_kf5_libdir}/cmake/KF5PimTextEdit/
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_KPIMTextEdit.pri
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Apr 25 2023 peijiankang <peijiankang@kylinos.cn> - 22.12.0-1
|
||||
- Init Package for openEuler
|
||||
|
||||
92
kpimtextedit-21.12.1-install-and-export-for-blogilo.patch
Normal file
92
kpimtextedit-21.12.1-install-and-export-for-blogilo.patch
Normal file
@ -0,0 +1,92 @@
|
||||
diff -ur kpimtextedit-21.12.1/src/CMakeLists.txt kpimtextedit-21.12.1-install-and-export-for-blogilo/src/CMakeLists.txt
|
||||
--- kpimtextedit-21.12.1/src/CMakeLists.txt 2021-12-10 07:04:52.000000000 +0100
|
||||
+++ kpimtextedit-21.12.1-install-and-export-for-blogilo/src/CMakeLists.txt 2022-01-25 21:07:34.081052275 +0100
|
||||
@@ -179,6 +179,9 @@
|
||||
ecm_generate_headers(KPimTextEdit_CamelCase_HEADERS
|
||||
HEADER_NAMES
|
||||
EditorUtil
|
||||
+ InsertHtmlDialog
|
||||
+ InsertImageWidget
|
||||
+ InsertTableWidget
|
||||
SelectSpecialCharDialog
|
||||
SlideContainer
|
||||
TextEditorCompleter
|
||||
@@ -190,6 +193,7 @@
|
||||
|
||||
ecm_generate_headers(KPimTextEdit_CamelCaseemoticon_HEADERS
|
||||
HEADER_NAMES
|
||||
+ EmoticonTextEditAction
|
||||
EmoticonUnicodeTab
|
||||
PREFIX KPIMTextEdit
|
||||
REQUIRED_HEADERS kpimtextedit_HEADERS
|
||||
diff -ur kpimtextedit-21.12.1/src/emoticon/emoticontexteditaction.h kpimtextedit-21.12.1-install-and-export-for-blogilo/src/emoticon/emoticontexteditaction.h
|
||||
--- kpimtextedit-21.12.1/src/emoticon/emoticontexteditaction.h 2021-12-10 07:04:52.000000000 +0100
|
||||
+++ kpimtextedit-21.12.1-install-and-export-for-blogilo/src/emoticon/emoticontexteditaction.h 2022-01-25 21:09:22.799390272 +0100
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace KPIMTextEdit
|
||||
{
|
||||
-class EmoticonTextEditAction : public KActionMenu
|
||||
+class KPIMTEXTEDIT_EXPORT EmoticonTextEditAction : public KActionMenu
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
diff -ur kpimtextedit-21.12.1/src/inserthtmldialog.h kpimtextedit-21.12.1-install-and-export-for-blogilo/src/inserthtmldialog.h
|
||||
--- kpimtextedit-21.12.1/src/inserthtmldialog.h 2021-12-10 07:04:52.000000000 +0100
|
||||
+++ kpimtextedit-21.12.1-install-and-export-for-blogilo/src/inserthtmldialog.h 2022-01-25 21:10:13.991607681 +0100
|
||||
@@ -10,12 +10,12 @@
|
||||
#include <QDialog>
|
||||
|
||||
#include "kpimtextedit/plaintexteditor.h"
|
||||
-#include "kpimtextedit_private_export.h"
|
||||
+#include "kpimtextedit_export.h"
|
||||
|
||||
namespace KPIMTextEdit
|
||||
{
|
||||
class InsertHtmlDialogPrivate;
|
||||
-class KPIMTEXTEDIT_TESTS_EXPORT InsertHtmlDialog : public QDialog
|
||||
+class KPIMTEXTEDIT_EXPORT InsertHtmlDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
diff -ur kpimtextedit-21.12.1/src/insertimagewidget.h kpimtextedit-21.12.1-install-and-export-for-blogilo/src/insertimagewidget.h
|
||||
--- kpimtextedit-21.12.1/src/insertimagewidget.h 2021-12-10 07:04:52.000000000 +0100
|
||||
+++ kpimtextedit-21.12.1-install-and-export-for-blogilo/src/insertimagewidget.h 2022-01-25 21:07:34.082052260 +0100
|
||||
@@ -6,6 +6,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
+#include "kpimtextedit_export.h"
|
||||
+
|
||||
#include <QUrl>
|
||||
|
||||
#include <QWidget>
|
||||
@@ -14,7 +16,7 @@
|
||||
{
|
||||
class InsertImageWidgetPrivate;
|
||||
|
||||
-class InsertImageWidget : public QWidget
|
||||
+class KPIMTEXTEDIT_EXPORT InsertImageWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
diff -ur kpimtextedit-21.12.1/src/inserttablewidget.h kpimtextedit-21.12.1-install-and-export-for-blogilo/src/inserttablewidget.h
|
||||
--- kpimtextedit-21.12.1/src/inserttablewidget.h 2021-12-10 07:04:52.000000000 +0100
|
||||
+++ kpimtextedit-21.12.1-install-and-export-for-blogilo/src/inserttablewidget.h 2022-01-25 21:12:51.349202308 +0100
|
||||
@@ -7,13 +7,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
+#include "kpimtextedit_export.h"
|
||||
+
|
||||
#include <QWidget>
|
||||
|
||||
#include <QTextLength>
|
||||
|
||||
namespace KPIMTextEdit
|
||||
{
|
||||
-class InsertTableWidget : public QWidget
|
||||
+class KPIMTEXTEDIT_EXPORT InsertTableWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
BIN
kpimtextedit-22.12.0.tar.xz
Normal file
BIN
kpimtextedit-22.12.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user