summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--0001-use-right-python-path.patch10
-rw-r--r--python-av.spec8
2 files changed, 12 insertions, 6 deletions
diff --git a/0001-use-right-python-path.patch b/0001-use-right-python-path.patch
new file mode 100644
index 0000000..3e18374
--- /dev/null
+++ b/0001-use-right-python-path.patch
@@ -0,0 +1,10 @@
+--- a/Makefile 2024-03-21 15:50:49.000000000 +0800
++++ b/Makefile 2024-04-14 22:59:47.417807442 +0800
+@@ -1,7 +1,7 @@
+ LDFLAGS ?= ""
+ CFLAGS ?= "-O0"
+
+-PYAV_PYTHON ?= python
++PYAV_PYTHON ?= python3
+ PYTHON := $(PYAV_PYTHON)
+
diff --git a/python-av.spec b/python-av.spec
index 128d848..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++
@@ -42,12 +44,6 @@ Summary: %{pkg_summary}
%{pkg_description}
%prep
-
-cat << EOF | tee -a ~/.bashrc
-alias python=python3
-EOF
-
-source ~/.bashrc
%autosetup -p1 -n PyAV-%{pypi_version}
%build