diff --git a/debian/changelog b/debian/changelog index 3a6b6de..23b9f3a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +flit (3.7.1-ok2) yangtze; urgency=medium + + * Apply patches + + debian_installer_allowed_root.patch + + 0002-use-system-tomli.patch + + build-with-local-flit_core.patch + + -- Lu zhiping Tue, 06 Sep 2022 17:49:09 +0800 + flit (3.7.1-ok1) yangtze; urgency=low * Build for openKylin. diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..f181a8b --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +flit_3.7.1-ok2_source.buildinfo python optional diff --git a/debian/rules b/debian/rules index 21a8476..7f33aa2 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,20 @@ include /usr/share/dpkg/pkg-info.mk %: dh $@ --with python3 --buildsystem=pybuild +execute_before_dh_auto_clean: + set -e; \ + if [ -e _removed ]; then \ + mv _removed/vendor flit_core/flit_core/; \ + rmdir _removed; \ + fi + +execute_before_dh_auto_configure: + set -e; \ + if [ -e flit_core/flit_core/vendor ]; then \ + mkdir -p _removed; \ + mv flit_core/flit_core/vendor _removed/; \ + fi + execute_after_dh_auto_build: # Workaround #1018952: pybuild doesn't make it easy to built multiple packages PYBUILD_BEFORE_BUILD="mv {build_dir}/scripts-{version} {build_dir}/flit-scripts-{version} && rm {build_dir}/../*.whl" \