diff --git a/0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch b/0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch new file mode 100644 index 0000000..ae27b61 --- /dev/null +++ b/0002-fix-missing-LIBAVCODEC_VERSION_INT-macro-error.patch @@ -0,0 +1,25 @@ +From f31aa728dc433f457267f45f58618db3c2b34604 Mon Sep 17 00:00:00 2001 +From: chenguanglee +Date: Thu, 21 Nov 2024 11:16:04 +0800 +Subject: [PATCH] fix missing LIBAVCODEC_VERSION_INT macro error + +--- + 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.43.0 + diff --git a/kylin-screenshot.spec b/kylin-screenshot.spec index 57c9e90..068ea08 100644 --- a/kylin-screenshot.spec +++ b/kylin-screenshot.spec @@ -1,11 +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-missing-LIBAVCODEC_VERSION_INT-macro-error.patch BuildRequires: qt5-qtx11extras-devel @@ -40,7 +41,8 @@ Suggests: ca-certificates, openssl %prep %setup -q -%patch01 -p1 +%patch 1 -p1 +%patch 2 -p1 %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro @@ -91,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/metainfo/kylinscreenshot.appdata.xml %changelog +* Thu Nov 21 2024 lichenguang - 1.0.5-4 +- fix missing LIBAVCODEC_VERSION_INT macro error + * Mon Feb 06 2023 peijiankang - 1.0.5-3 - add build debuginfo and debugsource