From 76160de6694ae68d3409eeeb5f1fd051f8d4137c Mon Sep 17 00:00:00 2001 From: wangbiao Date: Tue, 26 Mar 2024 18:43:41 +0900 Subject: [PATCH] use python2-* isntead of python-* if installing python, it will install python-is-python2, it will set python2 as default python interpeter. Change-Id: Iaec8a2e0955d54313ecfb2c42216b6bce31a5626 Signed-off-by: wangbiao --- debian/control | 7 ++++--- debian/rules | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/control b/debian/control index ae6f694..6fc59df 100755 --- a/debian/control +++ b/debian/control @@ -4,10 +4,10 @@ Priority: optional Maintainer: Daniel Stender Build-Depends: debhelper (>= 11), - python-dev, + python2-dev, dh-python, libssl-dev, - python-all-dev, + python2, python-setuptools, swig (>= 1.3.40), openssl @@ -17,8 +17,9 @@ Homepage: http://www.tizen.org Package: python-m2crypto Architecture: any Depends: + python-typing, ${misc:Depends}, - ${python:Depends}, + ${python2:Depends}, ${shlibs:Depends} Provides: m2crypto, diff --git a/debian/rules b/debian/rules index 0fa0995..c0d33f2 100755 --- a/debian/rules +++ b/debian/rules @@ -6,7 +6,7 @@ build: build-stamp build-stamp: dh_testdir - python setup.py build + python2 setup.py build clean: dh_testdir dh_testroot @@ -22,7 +22,7 @@ install: build # Installing package mkdir -p $(CURDIR)/debian/tmp - python setup.py install --prefix=/usr --root=$(CURDIR)/debian/tmp + python2 setup.py install --prefix=/usr --root=$(CURDIR)/debian/tmp binary-indep: build install dh_testdir dh_testroot -- 2.34.1