--- sm-2.2-4.1.orig/debian/compat
+++ sm-2.2-4.1/debian/compat
@@ -0,0 +1 @@
+5
--- sm-2.2-4.1.orig/debian/r-cran-sm.lintian-overrides
+++ sm-2.2-4.1/debian/r-cran-sm.lintian-overrides
@@ -0,0 +1,2 @@
+r-cran-sm: executable-not-elf-or-script ./usr/lib/R/site-library/sm/history.txt
+r-cran-sm: executable-not-elf-or-script ./usr/lib/R/site-library/sm/CITATION
--- sm-2.2-4.1.orig/debian/changelog
+++ sm-2.2-4.1/debian/changelog
@@ -0,0 +1,116 @@
+sm (2.2-4.1-1) unstable; urgency=low
+
+ * New upstream release
+
+ * debian/control: Set (Build-)Depends: to current R version
+
+ -- Dirk Eddelbuettel <edd@debian.org> Wed, 05 May 2010 15:54:44 -0500
+
+sm (2.2-4-1) unstable; urgency=low
+
+ * New upstream release
+
+ * debian/control: Set (Build-)Depends: to current R version
+ * debian/control: Set Standards-Version: to current version
+
+ -- Dirk Eddelbuettel <edd@debian.org> Tue, 02 Mar 2010 20:01:08 -0600
+
+sm (2.2-3-2) unstable; urgency=low
+
+ * Rebuilt for R 2.10.0 to work with new R-internal help file conversion
+
+ * debian/control: Set (Build-)Depends: to current R version
+ * debian/control: Set Standards-Version: to current version
+
+ * debian/control: Changed Section: to section 'gnu-r'
+
+ -- Dirk Eddelbuettel <edd@debian.org> Mon, 02 Nov 2009 21:06:41 -0600
+
+sm (2.2-3-1) unstable; urgency=low
+
+ * New upstream release
+
+ * debian/control: (Build-)Depends: updated to r-base-core (>= 2.7.2)
+ * debian/control: Standards-Version: upgradeded to 3.8.0
+
+ -- Dirk Eddelbuettel <edd@debian.org> Tue, 30 Sep 2008 19:20:36 -0500
+
+sm (2.2-2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Tue, 09 Oct 2007 17:34:03 -0500
+
+sm (2.2-1-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Sun, 23 Sep 2007 21:08:05 -0500
+
+sm (2.2-0-1) unstable; urgency=low
+
+ * New upstream release
+ * Built with R 2.6.0 release candidate, setting (Build-)Depends: to
+ 'r-base-(core|dev) >> 2.5.1' to prevent move to testing before R 2.6.0
+
+ * debian/rules: Simplified to cdbs-based one-liner sourcing r-cran.mk
+ * debian/control: Standards-Version: increased to 3.7.2
+
+ -- Dirk Eddelbuettel <edd@debian.org> Wed, 12 Sep 2007 20:56:00 -0500
+
+sm (2.1-0-1) unstable; urgency=low
+
+ * New upstream release
+
+ * debian/control: Standards-Version: upgradeded to 3.6.2
+ * debian/post{inst,rm}: No longer call R to update html index
+
+ -- Dirk Eddelbuettel <edd@debian.org> Wed, 9 Nov 2005 18:46:32 -0600
+
+sm (2.0.14-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Mon, 7 Feb 2005 20:54:26 -0600
+
+sm (2.0.13-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Sun, 14 Nov 2004 09:32:19 -0600
+
+sm (2.0.12-2) unstable; urgency=low
+
+ * Rebuilt under R 2.0.0
+ * debian/control: Updated Build-Depends: and Depends: accordingly
+ * debian/watch: Added watch file
+
+ -- Dirk Eddelbuettel <edd@debian.org> Fri, 8 Oct 2004 18:08:07 -0500
+
+sm (2.0.12-1) unstable; urgency=low
+
+ * New upstream release
+ * debian/control: Updated Builds-Depends and Depends to R 1.9.1
+
+ -- Dirk Eddelbuettel <edd@debian.org> Sat, 11 Sep 2004 17:35:04 -0500
+
+sm (2.0.11-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Wed, 4 Aug 2004 21:32:25 -0500
+
+sm (2.0.10-1) unstable; urgency=low
+
+ * New upstream release
+ * debian/post{inst,rm}: Call build-help.pl to update package.html list
+
+ -- Dirk Eddelbuettel <edd@debian.org> Mon, 2 Aug 2004 17:22:48 -0500
+
+sm (2.0.9-1) unstable; urgency=low
+
+ * Initial Debian Release
+
+ -- Dirk Eddelbuettel <edd@debian.org> Mon, 26 Apr 2004 20:52:23 -0500
+
+
--- sm-2.2-4.1.orig/debian/rules
+++ sm-2.2-4.1/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# debian/rules file for the Debian/GNU Linux r-cran-sm package
+# Copyright 2003 - 2007 by Dirk Eddelbuettel <edd@debian.org>
+
+include /usr/share/R/debian/r-cran.mk
+
+
--- sm-2.2-4.1.orig/debian/copyright
+++ sm-2.2-4.1/debian/copyright
@@ -0,0 +1,74 @@
+This is the Debian GNU/Linux r-cran-sm package of sm, a set of
+functions for kernel smoothing methods for GNU R. Sm was written by
+Adrian W. Bowman and Adelchi Azzalini, and ported to R by B. D. Ripley.
+
+This package was created by Dirk Eddelbuettel <edd@debian.org>.
+The sources were downloaded from
+ http://cran.us.r-project.org/src/contrib/
+
+The package was renamed from its upstream name 'sm to 'r-cran-sm to
+highlight the fact that is it a CRAN package for R.
+
+Sm is copyright Adrian W. Bowman, Adelchi Azzalini and Brian
+D. R. Ripley, and released under the GNU General Public License (GPL).
+
+On a Debian GNU/Linux system, the GPL license (v2) is included in the file
+/usr/share/common-licenses/GPL-2.
+
+For reference, the upstream DESCRIPTION file is included below:
+
+ Package: sm
+ Version: 2.0-9
+ Date: 2004-01-17
+ Author: Adrian W. Bowman and Adelchi Azzalini.
+ Ported to R by B. D. Ripley <ripley@stats.ox.ac.uk>.
+ Maintainer: Brian Ripley <ripley@stats.ox.ac.uk>
+ Description: This is software linked to the book
+ `Applied Smoothing Techniques for Data Analysis:
+ The Kernel Approach with S-Plus Illustrations' Oxford University Press.
+ Title: kernel smoothing methods: Bowman & Azzalini (1997)
+ License: GPL (version 2)
+ Packaged: Sun Jan 18 08:46:09 2004; ripley
+
+The source package also includes the following file License (which,
+being included here, we do ship as an individual file in the Debian
+package):
+
+ Licence agreement
+ -----------------
+
+ This software is associated with the book
+
+ "Applied Smoothing Techniques for Data Analysis:
+ the kernel approach with S-Plus illustrations"
+ by Adrian W. Bowman & Adelchi Azzalini,
+ published by Oxford University Press, 1997.
+
+ It consists of two parts: the `sm library', and the `scripts'.
+ The sm library is a suite of S-Plus routines. The scripts form
+ a layer of software above the sm library, and provide examples
+ of its applications.
+
+ The `sm` library is copyright of A.W.Bowman & A.Azzalini (1997,
+ 2000) except for the exceptions below.
+
+ The function sm.density calls the function sm.density.3d
+ to produce contour plots of three-dimensional density estimates.
+ This function was originally written by Stuart Young and has
+ been amended by Adrian Bowman. The copyright of this function
+ and its subsidiary functions remains with Stuart Young. The
+ copyright of the Fortran code in the file routines.f is also
+ held by Stuart Young.
+
+ The function sm.sphere was written jointly by Adrian Bowman
+ and Adrian Hines and copyright is held jointly.
+
+ The scripts are copyright of Oxford University Press (1997).
+
+ Irrespective of the individual copyrights, this software is usable
+ under the `GNU GENERAL PUBLIC LICENSE', a copy of which is distributed
+ together with this software. This essentially means that this software
+ can be freely used and re-distributed, but no warranty of any sort is
+ provided for it.
+
+
--- sm-2.2-4.1.orig/debian/watch
+++ sm-2.2-4.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/sm_(.*)\.tar\.gz
--- sm-2.2-4.1.orig/debian/control
+++ sm-2.2-4.1/debian/control
@@ -0,0 +1,15 @@
+Source: sm
+Section: gnu-r
+Priority: optional
+Maintainer: Dirk Eddelbuettel <edd@debian.org>
+Build-Depends: debhelper (>> 4.1.0), cdbs, r-base-dev (>= 2.11.0)
+Standards-Version: 3.8.4
+
+Package: r-cran-sm
+Architecture: any
+Depends: ${shlibs:Depends}, r-base-core (>= 2.11.0)
+Description: GNU R package for kernel smoothing methods
+ This CRAN package provides functions and documentation for kernel smoothing
+ methods for GNU R. The functions are described in the book "Applied
+ Smoothing Techniques for Data Analysis: The kernel approach with S-Plus
+ illustrations" by Adrian W. Bowman & Adelchi Azzalini, Oxford UP, 1997.