From 8ec726aabe0cdc8b4da87462ab7a707447e9bd0d Mon Sep 17 00:00:00 2001 From: dou33 Date: Mon, 13 May 2024 10:16:40 +0800 Subject: [PATCH] fix spec patch error and add fix-kylin-screenshot-categories-error.patch --- fix-kylin-screenshot-categories-error.patch | 11 +++++++++++ kylin-screenshot.spec | 10 ++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 fix-kylin-screenshot-categories-error.patch diff --git a/fix-kylin-screenshot-categories-error.patch b/fix-kylin-screenshot-categories-error.patch new file mode 100644 index 0000000..8736ccb --- /dev/null +++ b/fix-kylin-screenshot-categories-error.patch @@ -0,0 +1,11 @@ +diff -Naur kylin-screenshot-1.0.5/docs/desktopEntry/package/kylin-screenshot.desktop kylin-screenshot-1.0.5~/docs/desktopEntry/package/kylin-screenshot.desktop +--- kylin-screenshot-1.0.5/docs/desktopEntry/package/kylin-screenshot.desktop 2022-03-03 15:43:55.000000000 +0800 ++++ kylin-screenshot-1.0.5~/docs/desktopEntry/package/kylin-screenshot.desktop 2024-05-13 09:23:42.760372705 +0800 +@@ -25,6 +25,6 @@ + Icon=kylin-screenshot + Terminal=false + Type=Application +-Categories=Graphics; ++Categories=System; + StartupNotify=false + diff --git a/kylin-screenshot.spec b/kylin-screenshot.spec index 3bb6b30..4b16605 100644 --- a/kylin-screenshot.spec +++ b/kylin-screenshot.spec @@ -1,12 +1,13 @@ Name: kylin-screenshot Version: 1.0.5 -Release: 4 +Release: 5 Summary: a powerful screenshot and screen recording tool License: GPL-3+ URL: https://github.com/ubuntukylin Source0: %{name}-%{version}.tar.gz Patch01: 0001-fix-kylin-screenshot-not-work.patch Patch02: 0002-fix-build-error-of-kylin-screenshot.patch +Patch03: fix-kylin-screenshot-categories-error.patch BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-qtx11extras @@ -39,9 +40,7 @@ Suggests: ca-certificates, openssl making screen recording. %prep -%setup -q -%patch01 -p1 -%patch02 -p1 +%autosetup -n %{name}-%{version} -p1 %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro @@ -92,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/metainfo/kylinscreenshot.appdata.xml %changelog +* Mon May 13 2024 douyan - 1.0.5-5 +- fix spec patch error and add fix-kylin-screenshot-categories-error.patch + * Fri Mar 29 2024 peijiankang - 1.0.5-4 - add 0002-fix-build-error-of-kylin-screenshot.patch