summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-14 15:02:45 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-14 15:02:45 +0000
commit404faef92e4423c28b4f1c188dedb8bd58be9af1 (patch)
treed5de2e6697abdde9784f9c3d802dd25f635defac
parent18401e4d18404a0e5618d4b5a4c591aa39b24897 (diff)
automatic import of python-av
-rw-r--r--0001-use-right-python-path.patch11
-rw-r--r--python-av.spec2
2 files changed, 13 insertions, 0 deletions
diff --git a/0001-use-right-python-path.patch b/0001-use-right-python-path.patch
new file mode 100644
index 0000000..9f1adc1
--- /dev/null
+++ b/0001-use-right-python-path.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2024-03-21 15:50:49.000000000 +0800
++++ Makefile 2024-04-14 22:59:47.417807442 +0800
+@@ -1,7 +1,7 @@
+ LDFLAGS ?= ""
+ CFLAGS ?= "-O0"
+
+-PYAV_PYTHON ?= python
++PYAV_PYTHON ?= /usr/bin/python3
+ PYTHON := $(PYAV_PYTHON)
+
+
diff --git a/python-av.spec b/python-av.spec
index 96ecf5d..570ab16 100644
--- a/python-av.spec
+++ b/python-av.spec
@@ -14,6 +14,8 @@ License: BSD-3-Clause
URL: https://github.com/PyAV-Org/PyAV
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/PyAV-%{version}.tar.gz
+Patch0: 0001-use-right-python-path.patch
+
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: g++