包打出来了,在这里记载一下怎么做的
Debian 13
- 把依赖装上,
sudo apt install python3-{all,pil,pycryptodome,numpy}
- 作为上游
python3 -m build .
构建得到源码包ssfconv-1.2.0.tar.gz
- 解压,cd进去执行
debmake -b':py3' -x0
生成模板 debuild
就完成了,lintian有些报错,但是能用,得到ssfconv_1.2.0-1_amd64.deb
修改debian/rules,像教程中一样添加
export PYBUILD_NAME=ssfconv
export PYBUILD_VERBOSE=1
export DH_VERBOSE=1
再次 debuild
,消去了一部分报错,得到 ssfconv_1.2.0-1_all.deb
,剩下的报错似乎都是没有填写手册代码仓库等元信息所致
Ubuntu 24.04
要做的修改更多些
dh $@ --with python3 --buildsystem=pybuild
control 的 Build-Depends 补充 pybuild-plugin-pyproject