Fix up the Debian process for python

This commit is contained in:
Bradlee Speice 2012-08-13 14:03:31 -04:00
parent 3d8f411d46
commit 0f832d4923
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
usr/lib/*
usr/lib/*.so*
usr/share/man/man3/*
usr/include/*

2
debian/rules vendored
View File

@ -16,11 +16,11 @@
# This has to be exported to make some magic below work.
export DH_OPTIONS
%:
dh $@
override_dh_install:
find debian/tmp/usr/lib -name "*.la" -exec \
sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} \;
find debian/tmp/usr/lib -name "*.pyc" -exec rm {} \;
dh_install

View File

@ -1,7 +1,7 @@
EXTRA_DIST = libcvautomation.py
install-data-local: setup.py
$(Python) setup.py install --prefix=$(RPM_BUILD_ROOT)/$(prefix) --exec-prefix=$(RPM_BUILD_ROOT)/$(exec_prefix)
$(Python) setup.py install --prefix=$(DESTDIR)/$(prefix) --exec-prefix=$(DESTDIR)/$(exec_prefix)
##Unfortunately, we can't really uninstall the python file.
##The python dist-utils don't tell us where it got installed