From 0f832d49235621c407316eaa1205c49dedfa808d Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 13 Aug 2012 14:03:31 -0400 Subject: [PATCH] Fix up the Debian process for python --- debian/libcvautomation-dev.install | 2 +- debian/rules | 2 +- python/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/libcvautomation-dev.install b/debian/libcvautomation-dev.install index dc060b2..9971488 100644 --- a/debian/libcvautomation-dev.install +++ b/debian/libcvautomation-dev.install @@ -1,3 +1,3 @@ -usr/lib/* +usr/lib/*.so* usr/share/man/man3/* usr/include/* diff --git a/debian/rules b/debian/rules index 8947d0d..959a008 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/python/Makefile.am b/python/Makefile.am index 5e4b796..544bb2b 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -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