1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed
PYTHON_CPPFLAGS_PKGCONFIG := $(shell pkg-config --cflags python3-embed)
PYTHON_LIB_PKGCONFIG := $(shell pkg-config --libs python3-embed)
%:
dh $@ --with gnome,python3
override_dh_clean:
rm -f debian/glom.1
dh_clean
override_dh_auto_configure:
dh_auto_configure -- \
--disable-update-mime-database \
--with-postgres-utils=$(shell pg_config --bindir) \
--with-boost-python=boost_python$(shell py3versions -dv|sed 's/\.//') \
PYTHON_CPPFLAGS="$(PYTHON_CPPFLAGS_PKGCONFIG)" \
PYTHON_LIBS="-L/usr/lib/$(DEB_HOST_MULTIARCH) $(PYTHON_LIB_PKGCONFIG)" \
PYTHON=python3 PYTHON_VERSION=3
override_dh_auto_build:
dh_auto_build
/usr/bin/docbook-to-man debian/glom.sgml > debian/glom.1
# Don't fail the build for test failures yet
override_dh_auto_test:
-xvfb-run dh_auto_test
override_dh_compress:
dh_compress -X.glom -X.js
override_dh_install-arch:
rm -f debian/*/usr/share/mime/{subclasses,globs,magic,XMLnamespaces,aliases,mime.cache}
rm -f debian/*/usr/lib/python*/*-packages/glom*.la
rm -f debian/*/usr/lib/python*/*-packages/glom*.a
rm -f debian/*/usr/share/pyshared/glom*.a
rm -f debian/*/usr/share/pyshared/glom*.la
dh_python3 -p glom
dh_install -a
override_dh_install-indep:
find debian/tmp -type f -name jquery.js -print -delete
find debian/tmp -type f -name underscore.js -print -delete
ln -sf /usr/share/javascript/jquery/jquery.js \
debian/tmp/usr/share/doc/pyglom_1_30/reference/html/_static/jquery.js
ln -sf /usr/share/javascript/underscore/underscore.js \
debian/tmp/usr/share/doc/pyglom_1_30/reference/html/_static/underscore.js
dh_install -i
override_dh_missing:
dh_missing --list-missing
override_dh_gencontrol:
dh_gencontrol -- -Vpostgresql:Depends=postgresql-$(shell pg_config --bindir | grep -o "[[:digit:]]*")
|