From 774a69f7a1c42635d08710fd5598d6b80777cb34 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:22:10 +0100 Subject: [PATCH] update to 62.0.2 [release 62.0.2-1mamba;Sat Nov 26 2022] --- README.md | 3 +- ...sktop-mimetype-remove_trailing_space.patch | 11 +++++ tea-qt-62.0.2-qt6-add-qt5compat.patch | 10 +++++ tea.spec | 40 +++++++++++-------- 4 files changed, 47 insertions(+), 17 deletions(-) create mode 100644 tea-62.0.2-desktop-mimetype-remove_trailing_space.patch create mode 100644 tea-qt-62.0.2-qt6-add-qt5compat.patch diff --git a/README.md b/README.md index 4b52956..ee2c80f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # tea -TEA is a powerful and easy-to-use Qt4-based editor with many useful features for HTML, Docbook, and LaTeX editing. It features a small footprint, a tabbed layout engine, support for multiple encodings, code snippets, templates, customizable hotkeys, an "open at cursor" function for HTML files and images, miscellaneous HTML tools, preview in external browser, string manipulation functions, Morse-code tools, bookmarks, syntax highlighting, and more. +TEA is a powerful and easy-to-use Qt-based editor with many useful features for HTML, Docbook, and LaTeX editing. +It features a small footprint, a tabbed layout engine, support for multiple encodings, code snippets, templates, customizable hotkeys, an "open at cursor" function for HTML files and images, miscellaneous HTML tools, preview in external browser, string manipulation functions, Morse-code tools, bookmarks, syntax highlighting, and more. diff --git a/tea-62.0.2-desktop-mimetype-remove_trailing_space.patch b/tea-62.0.2-desktop-mimetype-remove_trailing_space.patch new file mode 100644 index 0000000..ce133e8 --- /dev/null +++ b/tea-62.0.2-desktop-mimetype-remove_trailing_space.patch @@ -0,0 +1,11 @@ +--- tea-qt-62.0.2/desktop/tea.desktop.orig 2023-09-14 21:06:41.068839572 +0200 ++++ tea-qt-62.0.2/desktop/tea.desktop 2023-09-14 21:06:48.883847594 +0200 +@@ -6,7 +6,7 @@ + Exec=tea %F + Categories=Utility;TextEditor; + StartupNotify=false +-MimeType=text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/rtf;application/x-tex; ++MimeType=text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/rtf;application/x-tex; + NoDisplay=false + Version=1.1 + Keywords=text editor;text;editor; diff --git a/tea-qt-62.0.2-qt6-add-qt5compat.patch b/tea-qt-62.0.2-qt6-add-qt5compat.patch new file mode 100644 index 0000000..2037be6 --- /dev/null +++ b/tea-qt-62.0.2-qt6-add-qt5compat.patch @@ -0,0 +1,10 @@ +--- tea-qt-62.0.2/tea-qmake.pro.orig 2023-04-02 16:31:42.122846378 +0200 ++++ tea-qt-62.0.2/tea-qmake.pro 2023-04-02 16:33:44.855183686 +0200 +@@ -184,6 +184,7 @@ + greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets + QT += printsupport ++ QT += core5compat + + noprinter{ + QT -= printsupport diff --git a/tea.spec b/tea.spec index 05ae563..73aaa63 100644 --- a/tea.spec +++ b/tea.spec @@ -1,43 +1,47 @@ Name: tea -Version: 44.1.0 +Version: 62.0.2 Release: 1mamba -Summary: A powerful and easy-to-use Qt4-based editor with many useful features for HTML, Docbook, and LaTeX editing +Summary: A powerful and easy-to-use Qt-based editor with many useful features for HTML, Docbook, and LaTeX editing Group: Graphical Desktop/Applications/Development Vendor: openmamba Distribution: openmamba -Packager: Ercole 'ercolinux' Carpanetto -URL: http://semiletov.org/tea/ -Source: http://semiletov.org/tea/dloads/tea-%{version}.tar.bz2 -#Source: http://downloads.sourceforge.net/project/tea-editor/tea-editor/%{version}/tea-%{version}.tar.bz2 +Packager: Silvan Calarco +URL: https://tea.ourproject.org/ +Source: https://github.com/psemiletov/tea-qt.git/%{version}/tea-qt-%{version}.tar.bz2 Patch0: tea-38.0.0-qmake_prefix.patch +Patch1: tea-qt-62.0.2-qt6-add-qt5compat.patch +Patch2: tea-62.0.2-desktop-mimetype-remove_trailing_space.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: libaspell-devel BuildRequires: libgcc -BuildRequires: libGL-devel +BuildRequires: libglvnd-devel BuildRequires: libhunspell-devel -BuildRequires: libqt4-devel BuildRequires: libstdc++6-devel BuildRequires: libz-devel +BuildRequires: qt5-qtbase-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +TEA is a powerful and easy-to-use Qt-based editor with many useful features for HTML, Docbook, and LaTeX editing. +It features a small footprint, a tabbed layout engine, support for multiple encodings, code snippets, templates, customizable hotkeys, an "open at cursor" function for HTML files and images, miscellaneous HTML tools, preview in external browser, string manipulation functions, Morse-code tools, bookmarks, syntax highlighting, and more. %debug_package -%description -TEA is a powerful and easy-to-use Qt4-based editor with many useful features for HTML, Docbook, and LaTeX editing. It features a small footprint, a tabbed layout engine, support for multiple encodings, code snippets, templates, customizable hotkeys, an "open at cursor" function for HTML files and images, miscellaneous HTML tools, preview in external browser, string manipulation functions, Morse-code tools, bookmarks, syntax highlighting, and more. - %prep -%setup -q +%setup -q -n tea-qt-%{version} #%patch0 -p1 +#%patch 1 -p1 +%patch 2 -p1 %build -qmake PREFIX=%{_bindir} +%{_qt5_qmake} PREFIX=%{_bindir} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall INSTALL_ROOT=%{buildroot}/ +%makeinstall STRIP=/bin/true INSTALL_ROOT=%{buildroot}/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -46,10 +50,14 @@ qmake PREFIX=%{_bindir} %defattr(-,root,root) %{_bindir}/tea %{_datadir}/applications/tea.desktop -%{_datadir}/icons/hicolor/128x128/apps/tea-icon-v3-03.png +%{_datadir}/icons/hicolor/*/apps/tea.png +%{_datadir}/icons/hicolor/scalable/apps/tea.svg %doc AUTHORS COPYING %changelog +* Sat Nov 26 2022 Silvan Calarco 62.0.2-1mamba +- update to 62.0.2 + * Wed Oct 25 2017 Automatic Build System 44.1.0-1mamba - automatic version update by autodist