From b4af52bcb5918116c34c51a342c496a94b1eb3ad Mon Sep 17 00:00:00 2001
From: Thomas Moulard <thomas.moulard@gmail.com>
Date: Thu, 20 Dec 2012 02:50:12 +0900
Subject: [PATCH] Test package on Sid and fix glitches.

---
 debian/copyright | 45 ++++++++++++++++++++++++++++++++++++++++++++-
 debian/rules     |  5 +++++
 2 files changed, 49 insertions(+), 1 deletion(-)

diff --git a/debian/copyright b/debian/copyright
index 17fb89c5..d3c08451 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -11,16 +11,59 @@ License: GPL-2
 Files: CMakeModules/GNUInstallDirs.cmake
 Copyright: 2011, Nikita Krupen'ko <krnekit@gmail.com>
 License: BSD
- See `/usr/share/common-licenses/BSD'.
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ . 
+ * Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ .
+ * The names of Kitware, Inc., the Insight Consortium, or the names of
+   any consortium members, or of any contributors, may not be used to
+   endorse or promote products derived from this software without
+   specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Files: src/tools/io/vpParseArgv.h
 Copyright: 1989-1992 Regents of the University of California
 License: BSD
+ Copyright 1989-1992 Regents of the University of California.
+ Permission to use, copy, modify, and distribute this
+ software and its documentation for any purpose and without
+ fee is hereby granted, provided that the above copyright
+ notice appear in all copies.  The University of California
+ makes no representations about the suitability of this
+ software for any purpose.  It is provided "as is" without
+ express or implied warranty.
 
 Files: src/tools/io/vpParseArgv.cpp
 Copyright: 1990 Regents of the University of California
 License: BSD
+ Copyright 1990 Regents of the University of California
+ Permission to use, copy, modify, and distribute this
+ software and its documentation for any purpose and without
+ fee is hereby granted, provided that the above copyright
+ notice appear in all copies.  The University of California
+ makes no representations about the suitability of this
+ software for any purpose.  It is provided "as is" without
+ express or implied warranty.
+
 
 Files: debian/*
 Copyright: 2012, Thomas Moulard <thomas.moulard@gmail.com>
 License: GPL-2
+ See `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/rules b/debian/rules
index d6a8ccb5..bb5d51c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,11 @@ export DH_VERBOSE=1
 
 .PHONY: override_dh_auto_configure override_dh_strip override_dh_auto_test
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f doc/mainpage.doc
+	rm -rf .pc
+
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		-DBUILD_DEMOS=ON -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON \
-- 
GitLab