--- indi-apogee-1.0.orig/debian/changelog
+++ indi-apogee-1.0/debian/changelog
@@ -0,0 +1,72 @@
+indi-apogee (1.0-0ubuntu11) yakkety; urgency=medium
+
+  * No-change rebuild for cfitsio soname change.
+
+ -- Matthias Klose <doko@ubuntu.com>  Fri, 29 Apr 2016 18:16:18 +0000
+
+indi-apogee (1.0-0ubuntu10) wily; urgency=medium
+
+  * Rebuild with libindi-dev 1.0.0
+
+ -- Harald Sitter <sitter@kde.org>  Thu, 27 Aug 2015 12:00:59 +0200
+
+indi-apogee (1.0-0ubuntu9) vivid; urgency=medium
+
+  * Rebuild against libcfitsio2.
+
+ -- Colin Watson <cjwatson@ubuntu.com>  Thu, 04 Dec 2014 15:09:00 +0000
+
+indi-apogee (1.0-0ubuntu8) utopic; urgency=medium
+
+  * Rebuild with libindo 0.9.8
+
+ -- Jonathan Riddell <jriddell@ubuntu.com>  Thu, 14 Aug 2014 12:56:23 +0200
+
+indi-apogee (1.0-0ubuntu7) trusty; urgency=medium
+
+  * Rebuild on new libindi
+
+ -- Jonathan Riddell <jriddell@ubuntu.com>  Wed, 12 Feb 2014 14:08:56 +0000
+
+indi-apogee (1.0-0ubuntu6) raring; urgency=low
+
+  * Added missing lib to link, fixing FTBFS.
+
+ -- Daniel T Chen <crimsun@ubuntu.com>  Mon, 22 Apr 2013 12:00:56 -0400
+
+indi-apogee (1.0-0ubuntu5) quantal; urgency=low
+
+  * Remove hardcoded depdendencies from debian/control.
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Wed, 20 Jun 2012 16:57:33 -0600
+
+indi-apogee (1.0-0ubuntu4) quantal; urgency=low
+
+  * Rebuild for the libindi0 -> libindi0b transition.
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Wed, 20 Jun 2012 14:09:56 -0600
+
+indi-apogee (1.0-0ubuntu3) quantal; urgency=low
+
+  * Rebuild against new indi libs.
+
+ -- Bhavani Shankar <bhavi@ubuntu.com>  Wed, 20 Jun 2012 20:12:32 +0530
+
+indi-apogee (1.0-0ubuntu2) precise; urgency=low
+
+  * Import changes from bzr rev. 25 to fix compilation issues with 
+    [-Werror=format-security] and hence fix FTBFS
+
+ -- Bhavani Shankar <bhavi@ubuntu.com>  Mon, 13 Feb 2012 21:01:20 +0530
+
+indi-apogee (1.0-0ubuntu1) jaunty; urgency=low
+
+  * Update packaging for Ubuntu
+
+ -- Jonathan Riddell <jriddell@ubuntu.com>  Fri, 13 Feb 2009 23:12:53 +0000
+
+indi-apogee (1.0) gutsy; urgency=low
+
+  * Initial release
+
+ -- Jasem Mutlaq <mutlaqja@ikarustech.com>  Fri, 3 Oct 2008 21:00:00 +0300
--- indi-apogee-1.0.orig/debian/compat
+++ indi-apogee-1.0/debian/compat
@@ -0,0 +1 @@
+6
--- indi-apogee-1.0.orig/debian/control
+++ indi-apogee-1.0/debian/control
@@ -0,0 +1,15 @@
+Source: indi-apogee
+Section: devel
+Priority: extra
+Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
+XSBC-Original-Maintainer: Jasem Mutlaq <mutlaqja@ikarustech.com>
+Build-Depends: debhelper (>= 6), cmake, cdbs, libindi-dev (>= 1.0.0~), libapogee-dev, libusb-dev, libcfitsio3-dev, zlib1g-dev
+Standards-Version: 3.8.0
+
+Package: indi-apogee
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: driver for INDI Apogee Alta
+ Driver for INDI Apogee Alta (U & E) CCD.
+ .
+ This driver is compatible with any INDI client such as KStars or Xephem.
--- indi-apogee-1.0.orig/debian/copyright
+++ indi-apogee-1.0/debian/copyright
@@ -0,0 +1,25 @@
+This package was debianized by Jasem Mutlaq <mutlaqja@ikarustech.com> on
+Wed,08 Oct 2008 02:44:13 +0300.
+
+Copyright: 
+
+    Copyright (C) 2007 Elwood Downey (ecdowney@clearskyinstitute.com)
+
+License:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+The Debian packaging is (C) 2008, Jasem Mutlaq <mutlaqja@ikarustech.com> and
+is licensed under the LGPL License.
--- indi-apogee-1.0.orig/debian/patches/fix-lib-underlinkage.patch
+++ indi-apogee-1.0/debian/patches/fix-lib-underlinkage.patch
@@ -0,0 +1,14 @@
+diff -Nur -x '*.orig' -x '*~' indi-apogee-1.0/CMakeLists.txt indi-apogee-1.0.new/CMakeLists.txt
+--- indi-apogee-1.0/CMakeLists.txt	2008-11-18 04:43:03.000000000 -0500
++++ indi-apogee-1.0.new/CMakeLists.txt	2013-04-22 12:03:44.019671390 -0400
+@@ -38,8 +38,8 @@
+ add_executable(indi_apogeeu_ccd ${indiapogee_SRCS})
+ add_executable(indi_apogeee_ccd ${indiapogee_SRCS})
+ 
+-target_link_libraries(indi_apogeeu_ccd ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES} ${CFITSIO_LIBRARIES} ${APOGEEU_LIBRARIES} z)
+-target_link_libraries(indi_apogeee_ccd ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES} ${CFITSIO_LIBRARIES} ${APOGEEE_LIBRARIES} z)
++target_link_libraries(indi_apogeeu_ccd ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES} ${CFITSIO_LIBRARIES} ${APOGEEU_LIBRARIES} z m)
++target_link_libraries(indi_apogeee_ccd ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES} ${CFITSIO_LIBRARIES} ${APOGEEE_LIBRARIES} z m)
+ 
+ if (NOVA_FOUND)
+   target_link_libraries(indi_apogeeu_ccd ${NOVA_LIBRARIES})
--- indi-apogee-1.0.orig/debian/rules
+++ indi-apogee-1.0/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/cmake.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
--- indi-apogee-1.0.orig/indialta.c
+++ indi-apogee-1.0/indialta.c
@@ -314,7 +314,7 @@
 				IUResetSwitch (&FanSpeedSP);
 				FanSpeedSP.sp[fs].s = ISS_ON;
 				FanSpeedSP.s = IPS_OK;
-				IDSetSwitch (&FanSpeedSP, smsg);
+				IDSetSwitch (&FanSpeedSP, "%s", smsg);
 		    	}
 
 		    break;
@@ -854,7 +854,7 @@
 	}
 
 	TemperatureRNP.np[0].value = cnow;
-	IDSetNumber (&TemperatureRNP, msg);
+	IDSetNumber (&TemperatureRNP, "%s", msg);
 
 	lasts = status;
 
