From 9f4924e69a61cbcf3efb1afd3dae51592c2ec675 Mon Sep 17 00:00:00 2001 From: peijiankang Date: Fri, 29 Mar 2024 17:39:58 +0800 Subject: [PATCH] fix build error of kylin-screenshot --- ...-fix-build-error-of-kylin-screenshot.patch | 25 +++++++++++++++++++ kylin-screenshot.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0002-fix-build-error-of-kylin-screenshot.patch diff --git a/0002-fix-build-error-of-kylin-screenshot.patch b/0002-fix-build-error-of-kylin-screenshot.patch new file mode 100644 index 0000000..99d3fef --- /dev/null +++ b/0002-fix-build-error-of-kylin-screenshot.patch @@ -0,0 +1,25 @@ +From 223200225c3179362219fa579fd3f2ffadef2ca1 Mon Sep 17 00:00:00 2001 +From: peijiankang +Date: Fri, 29 Mar 2024 17:38:30 +0800 +Subject: [PATCH] fix build error of kylin-screenshot + +--- + src/common/my_av.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/common/my_av.h b/src/common/my_av.h +index 0957f37..7f9f9b8 100644 +--- a/src/common/my_av.h ++++ b/src/common/my_av.h +@@ -26,7 +26,7 @@ extern "C" { + #include + #include + #include +-// #include ++#include + #include + #include + #include +-- +2.25.1 + diff --git a/kylin-screenshot.spec b/kylin-screenshot.spec index 57c9e90..3bb6b30 100644 --- a/kylin-screenshot.spec +++ b/kylin-screenshot.spec @@ -1,12 +1,12 @@ Name: kylin-screenshot Version: 1.0.5 -Release: 3 +Release: 4 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 BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-qtx11extras @@ -41,6 +41,7 @@ Suggests: ca-certificates, openssl %prep %setup -q %patch01 -p1 +%patch02 -p1 %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro @@ -91,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/metainfo/kylinscreenshot.appdata.xml %changelog +* Fri Mar 29 2024 peijiankang - 1.0.5-4 +- add 0002-fix-build-error-of-kylin-screenshot.patch + * Mon Feb 06 2023 peijiankang - 1.0.5-3 - add build debuginfo and debugsource