31 lines
1018 B
Makefile
31 lines
1018 B
Makefile
#!/usr/bin/make -f
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
#DH_VERBOSE = 1
|
|
|
|
export PYBUILD_NAME = lemur
|
|
export PYBUILD_DISABLE_python3 = test
|
|
|
|
%:
|
|
# suppression requirements version of package
|
|
# only last version are supported by lemur
|
|
# but Ubuntu has not last version
|
|
sed -i "s/==\(\([[:digit:]]\)*\(\.\)*\)*//g" requirements.txt
|
|
# unecessary dependency
|
|
sed -i "s/zope.deferredimport/#zope.deferredimport/g" requirements.txt
|
|
dh $@ --with python3 --buildsystem=pybuild
|
|
|
|
override_dh_install:
|
|
rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/lemur/static/
|
|
rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/lemur/tests/
|
|
rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/trustores
|
|
mkdir -p debian/lemur/usr
|
|
mv debian/python3-lemur/usr/bin debian/lemur/usr
|
|
dh_install
|
|
|
|
override_dh_auto_build:
|
|
npm install --unsafe-perm
|
|
node_modules/.bin/gulp build
|
|
node_modules/.bin/gulp package --urlContextPath=lemur
|
|
dh_auto_build
|