summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-14 15:21:31 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-14 15:21:31 +0000
commit8c29ab34b28e00ea649bb5db5c8cdeb40c4fe3b3 (patch)
tree9136410999c42c997b3fecb7a42bdbe8fc348435
parentad9c051318733a12a0a8a144b9b4ed4f3c4eac14 (diff)
automatic import of python-av
-rw-r--r--0001-use-right-python-path.patch11
-rw-r--r--python-av.spec4
2 files changed, 2 insertions, 13 deletions
diff --git a/0001-use-right-python-path.patch b/0001-use-right-python-path.patch
deleted file mode 100644
index ed87597..0000000
--- a/0001-use-right-python-path.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile 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 570ab16..b5d82db 100644
--- a/python-av.spec
+++ b/python-av.spec
@@ -14,8 +14,6 @@ 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++
@@ -44,6 +42,8 @@ Summary: %{pkg_summary}
%{pkg_description}
%prep
+# python is python3
+ln -s /usr/bin/python3 /usr/bin/python
%autosetup -p1 -n PyAV-%{pypi_version}
%build