fix build error of kylin-screenshot
This commit is contained in:
parent
8c16c66a59
commit
9f4924e69a
25
0002-fix-build-error-of-kylin-screenshot.patch
Normal file
25
0002-fix-build-error-of-kylin-screenshot.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 223200225c3179362219fa579fd3f2ffadef2ca1 Mon Sep 17 00:00:00 2001
|
||||
From: peijiankang <peijiankang@kylinos.cn>
|
||||
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 <libavformat/avformat.h>
|
||||
#include <libavutil/frame.h>
|
||||
#include <libavutil/mem.h>
|
||||
-// #include <libavcodec/avcodec.h>
|
||||
+#include <libavcodec/avcodec.h>
|
||||
#include <libswscale/swscale.h>
|
||||
#include <libavutil/pixfmt.h>
|
||||
#include <libavutil/samplefmt.h>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@ -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 <peijiankang@kylinos.cn> - 1.0.5-4
|
||||
- add 0002-fix-build-error-of-kylin-screenshot.patch
|
||||
|
||||
* Mon Feb 06 2023 peijiankang <peijiankang@kylinos.cn> - 1.0.5-3
|
||||
- add build debuginfo and debugsource
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user