-BRANCH ?= master
-
-all:
- $(MAKE) clean_build build
- $(MAKE) clean_build package
-
-clean: clean_build
- rm -rf .build
-
-clean_build:
- rm -rf build
- find osm_nbi -name '*.pyc' -delete
- find osm_nbi -name '*.pyo' -delete
-
-prepare:
- mkdir -p build/
- cp tox.ini build/
- cp MANIFEST.in build/
- cp requirements.txt build/
- cp README.rst build/
- cp setup.py build/
- cp stdeb.cfg build/
- cp -r osm_nbi build/
- cp LICENSE build/osm_nbi
-
-
-package: prepare
-# apt-get install -y python-stdeb
- cd build && python3 setup.py --command-packages=stdeb.command sdist_dsc # --with-python2=False
- cd build/deb_dist/osm-nbi-* && dpkg-buildpackage -rfakeroot -uc -us
+package:
+ python3 setup.py --command-packages=stdeb.command sdist_dsc
+ cp python3-osm-nbi.postinst deb_dist/osm-nbi*/debian
+ cd deb_dist/osm-nbi*/debian && echo "osm-common python3-osm-common" > py3dist-overrides
+ # cd deb_dist/osm-nbi*/debian && echo "pip3 python3-pip" >> py3dist-overrides
+ cd deb_dist/osm-nbi*/ && dpkg-buildpackage -rfakeroot -uc -us