| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/ndparker/rjsmin.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
export PYBUILD_NAME=rjsmin |
| 7 |
|
| 8 |
ARCH:=$(shell dpkg-architecture -qDEB_TARGET_GNU_CPU) |
| 9 |
OS:=$(shell dpkg-architecture -qDEB_TARGET_ARCH_OS) |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild --with python3 |
| 13 |
|
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install |
| 16 |
rm -rf $(CURDIR)/debian/python*/usr/share/doc/rjsmin* |
| 17 |
|
| 18 |
override_dh_auto_test: |
| 19 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 20 |
env |
| 21 |
set -e ; for pyvers in $(PYTHON3S); do \ |
| 22 |
PYTHONPATH=$(CURDIR):$(CURDIR)/build/lib.$(OS)-$(ARCH)-$$pyvers python$$pyvers \ |
| 23 |
bench/main.py bench/bootstrap.js bench/DateTimeShortcuts.js bench/jquery-1.7.1.js \ |
| 24 |
bench/knockout-2.0.0.js bench/markermanager.js; \ |
| 25 |
done |
| 26 |
endif |