从已经包含 /debian 文件夹的源构建 Debian 软件包

Building a Debian package from source that DOES contain the /debian folder already

我想尝试一下 Debian 打包。我找到了一个关于我喜欢使用的程序的很好的 RFP,但它已经有包含所有必需文件的 debian/ 文件夹。

那么我现在该怎么做才能尝试将此程序提交到官方 debian 存储库?

尝试说服上游从他们的发布压缩包中删除 debian/,如前所述 here:

If upstream has a debian directory in their releases, you should contact them and ask if they can remove the debian/ directory from their tarball releases. There's no need to remove the debian directory from their revision control system (although if it's out of date they may decide to do so anyway), but at the very least the directory shouldn't appear in releases. If you are upstream yourself, well, you can ask yourself to do it.

如果他们不想这样做,您应该重新打包 上游 tarball 以排除 debian/ 目录,并使用稍微修改过的版本。

例如如果上游已经发布 1.666.3 那么你重新打包的上游 tarball 将是 1.666.3~repack0(Debian 包将有类似 1.666.3~repack0-1 的版本)。